GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GENERATE_OPTIMIZED_PALETTE (3)

NAME

generate_optimized_palette - Generates an optimized palette for a bitmap. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

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 version 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 values 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 bitmap, 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)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro GENERATE_OPTIMIZED_PALETTE (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.