sample code as follows: Bitmap bit = new Bitmap( 20, 20 ); Graphics g = Graphics.FromImage( bit ); g.DrawImage ( yourBaseImage, new Rectangle( 0, 0, 20,20 ), new Rectangle( 100, 100, 20,20 )/*Copy a 20*20 part from source image */, GraphicsUnit.Pixel ); yourPictureBox.Image = bit;
Image image,
Rectangle destRect,
Rectangle srcRect,
GraphicsUnit srcUnit
);
Bitmap bit = new Bitmap( 20, 20 );
Graphics g = Graphics.FromImage( bit );
g.DrawImage ( yourBaseImage,
new Rectangle( 0, 0, 20,20 ),
new Rectangle( 100, 100, 20,20 )/*Copy a 20*20 part from source image */,
GraphicsUnit.Pixel ); yourPictureBox.Image = bit;