Getting a particular Portion of Image (Picture)
问题 I want to cut the the specific portion of the the picture and use it to compare the cropped image with another stored in the HDD. The problem is that I don't know how to get a specific section of the source image. I know the location (X,Y) of the image to be cropped. 回答1: This will load the original and create a cropped version starting at (0,0) and with dimensions of 64x64. Bitmap original = new Bitmap( @"C:\SomePath" ); Rectangle srcRect = new Rectangle( 0, 0, 64, 64 ); Bitmap cropped =