SaveBrush() - artefacts

Report any Hollywood bugs here
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: SaveBrush() - artefacts

Post by airsoftsoftwair »

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:

Code: Select all

CreateBrush(1,200,100,#green)
RotateBrush(1,45)
ChangeBrushTransparency(1, #ALPHACHANNEL)
SaveBrush(1,"ram:brush.png",#BLACK,#IMGFMT_PNG)
Then it'll work.
evil
Posts: 177
Joined: Mon Jun 14, 2010 1:38 pm

Re: SaveBrush() - artefacts

Post by evil »

Buhh... Shame on me...
I really read the comple documentation of Hollywood twice... at least...
But never saw the command ChangeBrushTransparency().

Thanks for the hint... That helps a lot...
Best regards

Evil
Post Reply