[Cdlib-users] how to use GDI+ ?
Antonio Scuri
scuri at tecgraf.puc-rio.br
Thu Apr 20 12:18:40 GMT+3 2006
At 07:00 20/4/2006, Pavol Severa wrote:
>Hi
>this is another newbie question
>as a first trial, I tried to draw an antialiased circle this way:
>
>-------------------------------
>cd.UseContextPlus(1)
>
>cv = iup.canvas{size="300x200"}
>dg = iup.dialog{cv}
>dg:show()
>
>canv = cd.CreateCanvas(cd.IUP,cv)
>cd.Activate(canv)
>
>cd.LineWidth(3)
>cd.Arc(200,200,200,200,0,360)
>------------------------------
>
>(using iup2.5/lua5.1 binary from luaforge on winxp)
>
>The circle came out pixelated however (I also tried transparency and
>other features of GDI+, they didn't work either). What am I doing
>wrong?
Nothing wrong. The "iuplua51.exe" binary does not link to GdiPlus.
If you are using the "lua5.1.exe" executable then you can use
"loadlib" to load "cdgdiplus.dll" and call cdInitGdiPlus, and load
load "cdiupgdiplus.dll" and call cdInitGdiPlusIUP.
Which one are you using?
Best,
scuri
More information about the cdlib-users
mailing list