[原创]C#图像处理
亮度设置
| 1 | public Bitmap SetBrightness(Bitmap image, int brightness) | 
RGB设置
| 1 | //私有方法 | 
对比度设置
| 1 | public Bitmap SetContrast(Bitmap image, double contrast) | 
转换成黑白
| 1 | public Bitmap SetGrayscale(Bitmap image) | 
图像倒置
| 1 | public Bitmap SetInvert(Bitmap image) | 
重新设定图像大小
| 1 | public Bitmap Resize(Bitmap image, int newWidth, int newHeight) | 
旋转图像
| 1 | public Bitmap RotateFlip(Bitmap image, RotateFlipType rotateFlipType) | 
裁剪图像
| 1 | public Bitmap Crop(Bitmap image, int xPosition, int yPosition, int width, int height) | 
画出外裁剪区域
| 1 | public Bitmap DrawOutCropArea(Bitmap image, int xPosition, int yPosition, int width, int height) | 
添加文字
| 1 | public Bitmap InsertText(Bitmap image, string text, int xPosition, int yPosition, string fontName, float fontSize, string fontStyle, string colorName1, string colorName2) | 
添加图像
| 1 | public Bitmap InsertImage(Bitmap image, Bitmap image2, string imagePath, int xPosition, int yPosition) | 
添加形状
| 1 | public Bitmap InsertShape(Bitmap image, string shapeType, int xPosition, int yPosition, int width, int height, string colorName) | 
彩色滤镜
| 1 | public Bitmap SetBitmapColorFilter(Bitmap image, Color Filter) | 
底片效果
| 1 | public Bitmap SetFilmEffect(Bitmap image) | 
浮雕效果
| 1 | public Bitmap SetEmbossEffect(Bitmap image) | 
转圆形图像
| 1 | public Bitmap CutEllipse(Bitmap image, Rectangle rec, Size size) | 
添加椒盐噪声
| 1 | //Pa=Pb0.2 | 
马赛克
| 1 | public Bitmap SetMosaic(Bitmap image, int RIDIO = 50) | 
添加暗角
| 1 | public Bitmap SetVignetting(Bitmap image) | 

