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  -  MAKECOL15_DITHER (3)

NAME

makecol15_dither, makecol16_dither - Calculates a dithered 15 or 16-bit RGB value. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

int makecol15_dither(int r, int g, int b, int x, int y);

int makecol16_dither(int r, int g, int b, int x, int y);

DESCRIPTION

Given both a color value and a pixel coordinate, calculate a dithered 15 or 16-bit RGB value. This can produce better results when reducing images from truecolor to hicolor. In addition to calling these functions directly, hicolor dithering can be automatically enabled when loading graphics by calling the set_color_conversion() function, for example set_color_conversion(COLORCONV_REDUCE_TRUE_TO_HI | COLORCONV_DITHER).

Example:

   int pixel1, pixel2;
  
   /* The following two color values MAY be different. */
   pixel1 = makecol16_dither(255, 192, 64, 0, 0);
   pixel2 = makecol16_dither(255, 192, 64, 1, 0);

RETURN VALUE

Returns the RGB value dithered for the specified coordinate.

SEE ALSO

makecol(3), makecol8(3), set_color_conversion(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro MAKECOL15_DITHER (3) version 4.4.2

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