Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

How do I create a transparent pen?

davidgraham
Beginner
796 Views
I'm using the CreatePen Function to create a solid red pen

integer*4 linewidth,c,hPen
integer*2 i1,i2,i3

linewidth=1
i1=255
i2=0
i3=0

c=RGB(int1(i1),int1(i2),int1(i3)) ! red
hpen=createpen(PS_SOLID,LineWidth,c)

How do I create a transparent pen?
0 Kudos
3 Replies
GVautier
New Contributor II
796 Views
0 Kudos
davidgraham
Beginner
796 Views
Thanks but I don't think that is what I want.
I want to be a be to see the line but also be able to see that is under the line, so I would set the transparency at say 50%.

You can do this in VB where thare are 4 parameters, 'argb' where a is the transparency.
0 Kudos
IanH
Honored Contributor III
796 Views
I think you need Gdiplus for that. I am not aware of Fortran bindings.
0 Kudos
Reply