generate_optimized_palette man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

generate_optimized_palette(3)	Allegro manual	 generate_optimized_palette(3)

NAME
       generate_optimized_palette  - Generates an optimized palette for a bit‐
       map. Allegro game programming library.

SYNOPSIS
       #include <allegro.h>

       int generate_optimized_palette(BITMAP *bmp,  PALETTE  pal,  const  char
       rsvd[PAL_SIZE]);

DESCRIPTION
       Generates  a 256-color palette suitable for making a reduced color ver‐
       sion of the specified truecolor image. The rsvd parameter points	 to  a
       table  indicating  which	 colors it is allowed to modify: zero for free
       colors which may be set to whatever the optimiser likes, negative  val‐
       ues  for	 reserved colors which cannot be used, and positive values for
       fixed palette entries that must not be changed, but can be used in  the
       optimisation.

RETURN VALUE
       Returns	the number of different colors recognised in the provided bit‐
       map, zero if the bitmap is not a truecolor image or there wasn't enough
       memory to perform the operation, and negative if there was any internal
       error in the color reduction code.

SEE ALSO
       generate_332_palette(3), set_color_depth(3)

Allegro				 version 4.4.2	 generate_optimized_palette(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net