15,979
社区成员
发帖
与我相关
我的任务
分享
Bitmap bmp(ii.Width,ii.Height);
Graphics bmpGraphics(&bmp);
bmpGraphics.SetSmoothingMode(SmoothingModeAntiAlias);
bmpGraphics.DrawImage(OnPaintImage,0,0,ii.Width,ii.Height);
/*Important! Create a CacheBitmap object for quick drawing*/
CachedBitmap cachedBmp(&bmp,graphics);
//graphics->DrawCachedBitmap(&cachedBmp,Pos.X,Pos.Y);
graphics->DrawImage(&bmp,Pos.X,Pos.Y);