PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

"GDLINEFX "?

hello..
i can't find any information about "GDLINEFX" in forum or document in the web site of GApiDraw. Someone can help me to get the infomation about "GDLINEFX". tks a lot.
promethus · 31 May 2002, 08:20 UTC — i have got it.
as title
Hi,

GDLINEFX is specified in the file GapiDraw.h. Perhaps I should update the documentation to reflect this.

/Johan
promethus · 04 Jun 2002, 02:12 UTC — that's good idea
It's a good idea to update the document. :) I'll wait the new version of document.
GDLINEFX struct has one param which is dwOpacity. The only time you will want to use this is if you want to draw transparent lines.

To draw normal lines pass in 0 for the dwFlags param on the line drawing functions and NULL for the pGDLineFx param.

If you want to draw transparent or semi-transparent lines then create on of these structs and set the dwOpacity to the amount of transparency you want.

Then pass the address of that struct as the pGDLineFx param and GDDRAWLINE_OPACITY as the dwFlags param.

The dwOpacity is the amount of transparency you want where 255 is solid and 0 is totally transparent (invisible.) So if you want something 50% transparent set this value to 128.