Meum Posted March 11, 2010 Posted March 11, 2010 Hi, 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. http://img692.imageshack.us/img692/1939/transparent1.png 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.
Richard Robertson Posted March 11, 2010 Posted March 11, 2010 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 http://msdn.microsoft.com/en-us/library/ms536057%28VS.85%29.aspx 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now