GDI Plus - Transparent Color

  • Thread starter Thread starter Rangaraj.P
  • Start date Start date
R

Rangaraj.P

Guest
Hello,

i am using GDI plus with vc++ for displaying transparent color and i tried below code but its not transparent


Code:

Gdiplus::Pen pen_;

pen_(Gdiplus::Color(127,0,0,0), 1);

COLORREFF color = RGB(180,180,0);

pen_.SetColor(Gdiplus::Color(127,GetRValue(color), GetGValue(color),
GetBValue(color)));

graphics->DrawLine(&pen_, startpoint, endpoint); ---> display line color

127 -> alpha value for transparent.


please kindly give your suggestion.




Rangaraj Palanisamy

Continue reading...
 
Back
Top