/// <summary> /// Renders an icon, representing a square of the specified color with a black border. /// </summary> /// <param name="c">The color to use.</param> /// <param name="w">The width of the icon. By default, 16.</param> /// <param name="h">The height of the icon. By default, 16.</param> /// <returns>The icon.</returns> public static Icon RenderIcon(RgbColor c, int w = 16, int h = 16) { return(RenderIcon(c.ToGdiColor(), w, h)); }
/// <summary> /// Renders a bitmap, representing a square of the specified color with a black border. /// </summary> /// <param name="c">The color to use.</param> /// <param name="w">The width of the bitmap. By default, 16.</param> /// <param name="h">The height of the bitmap. By default, 16.</param> /// <returns>The bitmap.</returns> public static Bitmap RenderBitmap(RgbColor c, int w = 16, int h = 16) { return(RenderBitmap(c.ToGdiColor(), w, h)); }