悉野小楼

导航

2011年12月5日

winform双缓冲, 从内存画图到到picturebox

摘要: base.SetStyle(ControlStyles.OptimizedDoubleBuffer,true);privateImageDrawImage(stringstrFilePath){try{Bitmapbitmap=newBitmap(strFilePath);//如果原图片是索引像素格式之列的,则需要转换if(IsPixelFormatIndexed(bitmap.PixelFormat)){Bitmapbmp=newBitmap(bitmap.Width,bitmap.Height,PixelFormat.Format32bppArgb);using(Graphicsg=Gra 阅读全文

posted @ 2011-12-05 16:24 悉野 阅读(2628) 评论(0) 推荐(0) 编辑