protected bool Equals(ShortcutItemImage other)
 {
     return(Equals(Bytes, other.Bytes) && X == other.X && Y == other.Y && Width == other.Width &&
            Height == other.Height);
 }
예제 #2
0
 private void UpdatePictureBoxImage(PannablePictureBox pannablePictureBox, ShortcutItemImage shortcutItemImage)
 {
     pannablePictureBox.SetImage(shortcutItemImage.CachedImage(),
         shortcutItemImage.Width,
         shortcutItemImage.Height,
         shortcutItemImage.X,
         shortcutItemImage.Y);
 }
예제 #3
0
 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));
 }
예제 #4
0
 protected bool Equals(ShortcutItemImage other)
 {
     return Equals(Bytes, other.Bytes) && X == other.X && Y == other.Y && Width == other.Width &&
            Height == other.Height;
 }