private void UpdateImage() { Image = _icon.ToBitmap(_size, _color); }
public static void AddIcon(this ImageList imageList, IconChar icon, int size, Color color) { imageList.Images.Add(icon.ToString(), icon.ToBitmap(size, color)); }
public static Bitmap GetImage(IconChar iconChar, Color color, int size = 16) { return(iconChar.ToBitmap(size, color)); }
/// <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)); }
public static Bitmap GetImage(this IconChar icon) { return(icon.ToBitmap(color: Color.Black, size: 48, rotation: 0, flip: FlipOrientation.Normal)); }
private Image GetArrowIcon(IconChar icn) => icn.ToBitmap(Color.Black, 50);