SaveBrush() => png 8 bits indexed

Feature requests for future versions of Hollywood can be voiced here

SaveBrush() => png 8 bits indexed

Postby sinisrus » Wed Jan 03, 2018 5:11 pm

Hello,

Is it possible to add support save png 8 bits indexed ?

Thank you
sinisrus
 
Posts: 201
Joined: Tue Apr 21, 2015 5:43 pm

Re: SaveBrush() => png 8 bits indexed

Postby airsoftsoftwair » Sat Jan 06, 2018 1:17 pm

Sure it's possible but I'm not sure if it's worth wasting time and energy on this. Why not use GIF?
User avatar
airsoftsoftwair
 
Posts: 2282
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: SaveBrush() => png 8 bits indexed

Postby sinisrus » Mon Jan 08, 2018 12:43 am

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
sinisrus
 
Posts: 201
Joined: Tue Apr 21, 2015 5:43 pm

Re: SaveBrush() => png 8 bits indexed

Postby airsoftsoftwair » Wed Jan 10, 2018 12:41 am

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
User avatar
airsoftsoftwair
 
Posts: 2282
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to Wishlist

Who is online

Users browsing this forum: No registered users and 2 guests