Page 1 of 1

SetGadgetAttribute() #PB_Canvas_Image

Posted: Sat Nov 17, 2012 12:10 am
by IdeasVacuum
Using the SetGadgetAttribute() method to apply an image to a Canvas is fast, but limited. It would be great if the function could be enhanced to use the DrawingMode Constants, especially #PB_2DDrawing_AlphaBlend

Re: SetGadgetAttribute() #PB_Canvas_Image

Posted: Sat Nov 17, 2012 1:24 am
by STARGĂ…TE
then use a drawing function ^^

Code: Select all

If StartDrawing(CanvasOutput(#Gadget))
	DrawingMode(#PB_2DDrawing_AlphaBlend)
	DrawImage(ImageID, X, Y)
	StopDrawing()
EndIf