有一些我很想念。假設我有以下代碼:GDI + DrawImage函數
private Bitmap source = new Bitmap (some_stream);
Bitmap bmp = new Bitmap(100,100);
Rectangle newRect = new Rectangle(0, 0, bmp.Width, bmp.Height);
Rectangle toZoom= new Rectangle(0, 0, 10, 10);
Graphics g = Graphics.FromImage(bmp);
g.DrawImage(source, newRect, toZoom, GraphicsUnit.Pixel);
我的目標是放大源圖片左上角的10x10像素。創建圖形對象g並調用DrawImage之後:所請求的矩形(toZoom)將被複制到bmp中,還是會顯示在屏幕上?我有點困惑,有人可以澄清嗎?