Shirish11
Shirish11

Reputation: 1617

GDI object HBRUSH translucent

I am working with GDI and VS 6.0 for my application.
In my application the drawn polygons are overlapping , and I am filling each polygon with a specific color using CreateSolidBrush.The Regions are created using the CRgn class
enter image description here
Now my problem is I want to make the underlying polygon to be some what visible ( by making the overlapping layer translucent). Same goes for underlying other shapes like ellipses,lines,text.enter image description here
Here I have used a CreateHatchBrush.

I know that the HBRUSH object can be assigned with a color or can be made transparent.
But what I want is something similar to Opacity or GDI+'s Color(Alpha) property
GDI+ seemed to be an option but its not available with VS 6.0.

Any views on how can I achieve this is appreciated.

Upvotes: 1

Views: 1739

Answers (1)

Roman Ryltsov
Roman Ryltsov

Reputation: 69687

AlphaBlend Example

Upvotes: 2

Related Questions