Domanda

I have one window which is painted with some colorkey(16,0,16). Occasionally some part of window is getting painted by different colorkey. I would like to create a region out of this windows which has only my colorkey(16,0,16).

Please advice what is the best way to achieve this.

Any help will be greatly appreciated!!!!

È stato utile?

Soluzione

If by region you mean an HRGN, then you can render the window to an in-memory bitmap and create an array of RGNDATA elements describing the rectangles where your colored pixels still exist, then pass that array to ExtCreateRegion() to create the HRGN.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top