Reputation: 69
I just started using ATL::CImage in my MFC project, and this is very basic question about it. I know ATL::CImage members support AlphaBlend() for controlling the transparency, and plgblt() for rotating. But they are all the independent functions for only "Displaying" on DC as I understand. How Can I apply both transparency and rotation of the image and display/save it?
I know GDI+ supports everything what I want, but I wanna know how to realize them with CImage class members too.
Thank you.
Upvotes: 0
Views: 234
Reputation: 15375
This isn't possible in the same way. You can use a temporary DC for each operation.
The better way is always to use GDI+ to perform such operations. CImage is only needed when you need to store the interim result, or need to reuse it.
Upvotes: 1