I've been playing around with .png images today with a view to creating a new front end to one of my apps.
Anyhoo when using imagegadget the image transparancy is correct.
when I use a web gadget the transparncy is a dull light blue.
And when I use a canvas gadget the transparency is black or white if i use drawalphaimage()
I'd like to use the canvasgadget as all the events i want are easy to use, however this transparancy malarchy is doing my head in.
I think i understand the white background when using the drawalphaimage because the canvasgadget defaults to a white background but how can this be changed
Cheers for any help
Code: Select all
UsePNGImageDecoder()
If OpenWindow(0,0,0,200,200,"")
CanvasGadget(0, 10, 10, 128, 128)
EndIf
StartDrawing(CanvasOutput(0))
DrawingMode(#PB_2DDrawing_Transparent) ; makes no difference
DrawImage(ImageID(LoadImage(#PB_Any, "anypnghere.png")),0, 0)
StopDrawing()
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow