请调用API:StretchBlt下面是在C#中的声明。
[DllImport("gdi32.dll")]
static public extern bool StretchBlt(IntPtr hDCDest, int XOriginDest, int YOriginDest, int WidthDest, int HeightDest,IntPtr hDCSrc, int XOriginScr, int YOriginSrc, int WidthScr, int HeightScr, uint Rop);每个参数的用法,就查一下MSDN啦:)我GF在旁边催我,我得先走了。:)
[DllImport("gdi32.dll")]
static public extern bool StretchBlt(IntPtr hDCDest, int XOriginDest, int YOriginDest, int WidthDest, int HeightDest,IntPtr hDCSrc, int XOriginScr, int YOriginSrc, int WidthScr, int HeightScr, uint Rop);每个参数的用法,就查一下MSDN啦:)我GF在旁边催我,我得先走了。:)
就算不是,那也得是Image吧?那就:
Bitmap b = new Bitmap(size);
Graphics gb = Graphics.FromImage(b);
b.DrawImage(original_image, source_rect_you_want, b.GetBounds(GraphicsUnit.Pixel));大致写一下的,具体要查MSDN。自己动手,丰衣足食。