php man page for draw_character_ex

Query: draw_character_ex

OS: php

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

draw_character_ex(3alleg4)					  Allegro manual					draw_character_ex(3alleg4)

NAME
draw_character_ex - Draws non transparent pixels of the sprite with a color. Allegro game programming library.
SYNOPSIS
#include <allegro.h> void draw_character_ex(BITMAP *bmp, BITMAP *sprite, int x, int y, color, bg);
DESCRIPTION
Draws a copy of the sprite bitmap onto the destination bitmap at the specified position, drawing transparent pixels in the background color (or skipping them if the background color is -1) and setting all other pixels to the specified color. Transparent pixels are marked by a zero in 256-color modes or bright pink for truecolor data (maximum red and blue, zero green). The sprite must be an 8-bit image, even if the destination is a truecolor bitmap. Example: BITMAP *logo; ... /* Draw the logo silhouette in red. */ draw_character_ex(screen, logo, SCREEN_W / 2, SCREEN_H / 2, makecol(255, 0, 0), -1);
SEE ALSO
draw_sprite(3alleg4), bitmap_mask_color(3alleg4) Allegro version 4.4.2 draw_character_ex(3alleg4)
Related Man Pages
draw_sprite(3alleg4) - opendarwin
bitmap_mask_color(3alleg4) - centos
draw_sprite(3alleg4) - netbsd
draw_sprite(3alleg4) - plan9
draw_sprite(3alleg4) - redhat
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
Please Welcome Nicki Paul to the Moderator Team!