Jump to content
Sign in to follow this  

GDI Plus: Overlapping Transparency

Recommended Posts



I habe many Lines. The lines have a transparent color (0x55FFFF00 for example).

But each line should have a seperate Pen-Width.

As you can see on the picture the transparent area whitch is overlapping have another color. I think the color is added.

Now I dont want this effect. It should be always the same color.


I don't know how to solve this with Standard GDI Plus. I guess it is not possible.

And I don't want to define the area as rectangles and fill it.

Share this post

Link to post
Share on other sites
Richard Robertson

What you might consider doing is making a memory bitmap, drawing using solid (not transparent) pens, and then drawing the memory bitmap using a custom alpha value.

(I don't know the AutoIt version of GDI+ but...) You would draw the image using this function


And in the ImageAttributes object, you would add a ColorMap structure that specified to replace the solid color with the transparent color.

There might be an easier way, but this is what I came up with.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.