Пример #1
0
 /// <summary>
 /// 获取纯色图片
 /// </summary>
 /// <param name="color"></param>
 /// <param name="size"></param>
 /// <returns></returns>
 public static Image image(this Color color, Size size)
 {
     return(ImageUtil.imageWithColor(color, size));
 }
Пример #2
0
 /// <summary>
 /// 获取纯色图片
 /// </summary>
 /// <param name="color"></param>
 /// <returns></returns>
 public static Image image(this Color color)
 {
     return(ImageUtil.imageWithColor(color));
 }
Пример #3
0
 /// <summary>
 /// 将彩色图片转换为灰色图片
 /// </summary>
 /// <param name="original"></param>
 /// <returns></returns>
 public static Image grayImage(this Image original)
 {
     return(ImageUtil.transToGrayImage(original));
 }