protected bool Equals(ShortcutItemImage other) { return(Equals(Bytes, other.Bytes) && X == other.X && Y == other.Y && Width == other.Width && Height == other.Height); }
private void UpdatePictureBoxImage(PannablePictureBox pannablePictureBox, ShortcutItemImage shortcutItemImage) { pannablePictureBox.SetImage(shortcutItemImage.CachedImage(), shortcutItemImage.Width, shortcutItemImage.Height, shortcutItemImage.X, shortcutItemImage.Y); }
private static void BuildShortcutItemIcon(string fullIconPath, Size outputSize, ShortcutItemImage shortcutItemImage, XyRatio xyRatio) { BuildIcon(fullIconPath, outputSize.Width, outputSize.Height, shortcutItemImage.Bytes, (int) Math.Round(shortcutItemImage.Width*xyRatio.X, 0), (int) Math.Round(shortcutItemImage.Height*xyRatio.Y, 0), (int) Math.Round(shortcutItemImage.X*xyRatio.X, 0), (int) Math.Round(shortcutItemImage.Y*xyRatio.Y, 0)); }
protected bool Equals(ShortcutItemImage other) { return Equals(Bytes, other.Bytes) && X == other.X && Y == other.Y && Width == other.Width && Height == other.Height; }