Click to See Complete Forum and Search --> : Image crop


Maejie
July 9th, 2010, 03:19 AM
I have an image saved in CImage,

I'd like to get from that saved CImage a cropped part defined by input CRect


Thank you

hoxsiew
July 9th, 2010, 07:38 AM
Look at CImage::BitBlt()

http://msdn.microsoft.com/en-us/library/c431046z(VS.71).aspx

Create a new CImage with the same parameters and BitBlt one to the other.

Maejie
July 9th, 2010, 12:39 PM
Look at CImage::BitBlt()

http://msdn.microsoft.com/en-us/library/c431046z(VS.71).aspx

Create a new CImage with the same parameters and BitBlt one to the other.

Thanks,

I attach some of my code and an error while executing the program
I don\t know why, the code shows correct data passed in (no NULL/odd values) during debug
The pop up message appears when the debug runs into predefined source code

Maejie
July 9th, 2010, 01:56 PM
???????????????????????//

hoxsiew
July 9th, 2010, 03:50 PM
What is CImageDC?

inzamam
January 20th, 2011, 01:30 AM
if you want crop any image, than i will suggest you to visit the link below
http://www.raiseitsolutions.com/forum/viewtopic.php?f=4&t=2
if you visit this link, you will know how to crop an image easily
thank you very much. :)