Dec 29, 2003 #1 C comcrack Well-known member Joined Jun 14, 2003 Messages 52 Location Canada How can I take a part(rectangle) of an image and print it on a graphics? ComCrack Thank
Dec 30, 2003 #2 A AndreRyan Well-known member Joined Jan 23, 2002 Messages 366 Use the graphics objects DrawImage function, and give it a source rectangle(Look through the overloads to see the one you want)
Use the graphics objects DrawImage function, and give it a source rectangle(Look through the overloads to see the one you want)
Dec 30, 2003 #3 D dannyres Well-known member Joined Aug 29, 2003 Messages 67 The easiest way todo this is: Code: Dim b as New Bitmap("C:\test.bmp") Dim b2 as Bitmap = b.Clone(new Rectangle(0, 0, 20, 20), b.PixelFormat) b.Dispose That will get 20x20 pixels from the top corner of the image Dan
The easiest way todo this is: Code: Dim b as New Bitmap("C:\test.bmp") Dim b2 as Bitmap = b.Clone(new Rectangle(0, 0, 20, 20), b.PixelFormat) b.Dispose That will get 20x20 pixels from the top corner of the image Dan
Jan 1, 2004 #4 C comcrack Well-known member Joined Jun 14, 2003 Messages 52 Location Canada Thank you