예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <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));
 }