Click here to Skip to main content
15,887,293 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
My requirement is to create specific region of image (given x,y coordinates & width, height of region of image) from the given IImage.

I am able to drawRegion using IImage->Draw(handle, destRect, srcRect) method. However, I should be able to save this image in another IImage object rather than just drawing it on screen.

I tried using ExtCreateRegion() however, I am not able to generate proper HRGN. Also please tell me if generating IImage object from HRGN is possible or not.

Can anyone help me as soon as possible?

Regards,
Aahna
Posted

1 solution

I don't have any experience with Windows Mobile, but I did some searches and this is what I came up with:

Also, might I suggest that the IImage instance you have a reference to might actually be a derived class that has different functions. Perhaps you could use the debugger to figure out which derived type it is, cast it as that type, then use the functions on that casted variable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900