GDI+中的图像处理

主要通过Image实现

 

Image是抽象类,Bitmap从Image派生

 

可以处理BMP,JPEG,GIF,PNG等格式

 

构建

Bitmap bt1 = new Bitmap("D:\\1.bmp");

Bitmap bt2 = new Bitmap(bt1,200,300);

Bitmap bt3;

Bt3.FromFile("name of the file");

 

posted @ 2018-01-22 09:25  奔跑的蒲公英  阅读(204)  评论(0编辑  收藏  举报