像大多数的图片转换工具一样,C#的重绘功能也可以实现相同的效果.

C#中图片的重绘Graphics g = this.CreateGraphics();
C#中图片的重绘g.Clear(Color.White);
C#中图片的重绘Bitmap image 
= new Bitmap("test.jpg");
C#中图片的重绘
int Width = image.Width - 1;
C#中图片的重绘
int Height = image.Height - 1;
C#中图片的重绘
C#中图片的重绘            
//绘制原图   
C#中图片的重绘
g.DrawImage(image, 00);
C#中图片的重绘g.TranslateTransform(image.Width, 
0);
C#中图片的重绘
image2、image3分别用来保存最大值法   
            和加权平均法处理的灰度图像
*/
C#中图片的重绘Bitmap image2 
= image.Clone(new Rectangle(00, image.Width,image.Height),PixelFormat.DontCare);
C#中图片的重绘Bitmap image3 
= image.Clone(new Rectangle(00, image.Width,image.Height),PixelFormat.DontCare);
C#中图片的重绘
C#中图片的重绘Color color;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-10-09
  • 2021-10-12
  • 2022-01-13
猜你喜欢
  • 2021-04-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
相关资源
相似解决方案