Здравствуйте, sus, Вы писали:
sus>Каким образом скопировать из одного System.Drawing.Bitmap заданную область (для простоты — прямоугольник) в другой Bitmap, в заданное место.
static public Bitmap Copy(Bitmap srcBitmap, Rectangle section)
{
// Create the new bitmap and associated graphics object
Bitmap bmp = new Bitmap(section.Width, section.Height);
Graphics g = Graphics.FromImage(bmp);
// Draw the specified section of the source bitmap to the new one
g.DrawImage(srcBitmap, 0, 0, section, GraphicsUnit.Pixel);
// Clean up
g.Dispose();
// Return the bitmap
return bmp;
}
Ы? Аль не Ы?