private void UpdateImage()
 {
     Image = _icon.ToBitmap(_size, _color);
 }
Beispiel #2
0
 public static void AddIcon(this ImageList imageList, IconChar icon, int size, Color color)
 {
     imageList.Images.Add(icon.ToString(), icon.ToBitmap(size, color));
 }
Beispiel #3
0
 public static Bitmap GetImage(IconChar iconChar, Color color, int size = 16)
 {
     return(iconChar.ToBitmap(size, color));
 }
Beispiel #4
0
 /// <summary>
 /// Shortcut helper method to quickly add a rendered icon to the specified image list
 /// </summary>
 /// <param name="imageList">The image list to add to</param>
 /// <param name="icon">The icon to render and add</param>
 /// <param name="color">The icon color</param>
 /// <param name="size">The icon size in pixels</param>
 public static void AddIcon(this ImageList imageList, IconChar icon,
                            Color?color = null, int size = IconHelper.DefaultSize)
 {
     imageList.Images.Add(icon.ToString(), icon.ToBitmap(color, size));
 }
Beispiel #5
0
 public static Bitmap GetImage(this IconChar icon)
 {
     return(icon.ToBitmap(color: Color.Black, size: 48, rotation: 0, flip: FlipOrientation.Normal));
 }
Beispiel #6
0
 private Image GetArrowIcon(IconChar icn) => icn.ToBitmap(Color.Black, 50);