Click to See Complete Forum and Search --> : Image Renderin Problem


Saurabh Gupta
September 11th, 2003, 03:39 AM
Hi,
I am using WIN API's to Render a BMP format. But now i want to render that picture in a polygon shape.
Any body knows about it.
Thnaks in advanced.

Doctor Luz
September 11th, 2003, 06:45 AM
I don't know if this is what you want to do. I guess you want to display a BMP in the bounding rectangle of a polygonal region. Then only the portions of the bitmap inside the polygonal region will be shown.

You only need to set the poligon shape as the clipping region of your DC. You can define a HRGN or a path and make it the current clipping region in your DC. After this display the bitmap in the bounding rectangle of the clipping area.