/// <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)); }
/// <summary> /// 获取纯色图片 /// </summary> /// <param name="color"></param> /// <returns></returns> public static Image image(this Color color) { return(ImageUtil.imageWithColor(color)); }
/// <summary> /// 将彩色图片转换为灰色图片 /// </summary> /// <param name="original"></param> /// <returns></returns> public static Image grayImage(this Image original) { return(ImageUtil.transToGrayImage(original)); }