getpixel man page on DragonFly

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

getpixel(3)			Allegro manual			   getpixel(3)

NAME
       getpixel	 -  Reads  a  pixel  from  a  bitmap. Allegro game programming
       library.

SYNOPSIS
       #include <allegro.h>

       int getpixel(BITMAP *bmp, int x, int y);

DESCRIPTION
       Reads a pixel from point (x, y) in the bitmap.

RETURN VALUE
       Returns -1 if the point lies outside the bitmap (ignoring the  clipping
       rectangle), otherwise the value of the pixel in the color format of the
       bitmap.

       Warning: -1 is also a valid value for pixels contained in  32-bit  bit‐
       maps  with  alpha  channel  (when  R,G,B,A are all equal to 255) so you
       can't use the test against -1 as a predicate for such bitmaps. In  this
       cases, the only reliable predicate is is_inside_bitmap().

       To  extract  the individual color components, use the getr() / getg() /
       getb() / geta() family of functions.

SEE ALSO
       putpixel(3),  _getpixel(3),  is_inside_bitmap(3),   getr(3),   getg(3),
       getb(3), geta(3), ex12bit(3), exalpha(3), exflame(3), exlights(3)

Allegro				 version 4.4.2			   getpixel(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