Hello,
Is it possible to add support save png 8 bits indexed ?
Thank you
SaveBrush() => png 8 bits indexed
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: SaveBrush() => png 8 bits indexed
Sure it's possible but I'm not sure if it's worth wasting time and energy on this. Why not use GIF?
Re: SaveBrush() => png 8 bits indexed
Otherwise is it possible to add at the function GetAttribute() => get palette of brush ?
Actually is not possible to get palette picture 8bit with Hollywood. Is very important for my project
Actually is not possible to get palette picture 8bit with Hollywood. Is very important for my project
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: SaveBrush() => png 8 bits indexed
Actually, there is a little undocumented function called GetPen(). This can be used to get a palette entry but it will only work with IFF ILBM images. It is needed by Malibu, that's why it is there. And since it only works with IFF ILBM it is undocumented. You have to pass the desired palette index to GetPen(), e.g.
Code: Select all
rgb = GetPen(0) ; return color of palette entry 0
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: SaveBrush() => png 8 bits indexed
That's not possible because Hollywood doesn't store images as chunky pixels. But if you carefully read the to do section you'll see that palette support has been on the agenda for quite some time now
Re: SaveBrush() => png 8 bits indexed
Ok nice thank you