I start with a transparent image add a box then try to clear the image but the box remains.
the code I am using:
Code: Select all
StartVectorDrawing(ImageVectorOutput(DrawImg))
VectorSourceColor(RGBA(255,255,255,0))
FillVectorOutput()
AddPathBox(0,50,50,50)
VectorSourceColor(#DrawOpaque|#DarkGray)
FillPath()
StopVectorDrawing()
A little more digging and found that Vector drawing always blends but found this:
Code: Select all
StartDrawing(ImageOutput(DrawImg))
DrawingMode(#PB_2DDrawing_AlphaChannel )
Box(0, 0, 200, 200, RGBA(0,0,0,0))
StopDrawing()