Re: SaveBrush() - artefacts
Posted: Tue Dec 11, 2018 8:58 pm
Well, that's because the brush doesn't have an alpha channel. For PNG images, only alpha channel transparency is supported so you first have to convert the mask transparency to an alpha channel one, like so:
Then it'll work.
Code: Select all
CreateBrush(1,200,100,#green)
RotateBrush(1,45)
ChangeBrushTransparency(1, #ALPHACHANNEL)
SaveBrush(1,"ram:brush.png",#BLACK,#IMGFMT_PNG)