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)
Check Out this Related Man Page
draw_sprite(3alleg4) Allegro manual draw_sprite(3alleg4)NAME
draw_sprite - Draws a copy of the sprite onto the destination bitmap. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void draw_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y);
DESCRIPTION
Draws a copy of the sprite bitmap onto the destination bitmap at the specified position. This is almost the same as blit(sprite, bmp, 0, 0,
x, y, sprite->w, sprite->h), but it uses a masked drawing mode where transparent pixels are skipped, so the background image will show
through the masked parts of the sprite. Transparent pixels are marked by a zero in 256-color modes or bright pink for truecolor data (maxi-
mum red and blue, zero green). Example:
BITMAP *spaceship;
...
draw_sprite(screen, spaceship, x, y);
If the GFX_HW_VRAM_BLIT_MASKED bit in the gfx_capabilities flag is set, the current driver supports hardware accelerated sprite drawing
when the source image is a video memory bitmap or a sub-bitmap of the screen. This is extremely fast, so when this flag is set it may be
worth storing some of your more frequently used sprites in an offscreen portion of the video memory.
Warning: if the hardware acceleration flag is not set, draw_sprite() will not work correctly when used with a sprite image in system or
video memory so the latter must be a memory bitmap.
Although generally not supporting graphics of mixed color depths, as a special case this function can be used to draw 256-color source
images onto truecolor destination bitmaps, so you can use palette effects on specific sprites within a truecolor program.
SEE ALSO draw_sprite_v_flip(3alleg4), draw_trans_sprite(3alleg4), draw_lit_sprite(3alleg4), draw_gouraud_sprite(3alleg4), stretch_sprite(3alleg4),
rotate_sprite(3alleg4), draw_character_ex(3alleg4), draw_rle_sprite(3alleg4), draw_compiled_sprite(3alleg4), masked_blit(3alleg4),
blit(3alleg4), bitmap_mask_color(3alleg4), exsprite(3alleg4)Allegro version 4.4.2 draw_sprite(3alleg4)
Hi All
I'm not sure if anyone else notices this or not - however when I view the unix.com forums in Windows, the flash logo at the top of the page absolutely kills my performance - CPU usage rockets to 100%! If you open the task manager and monitor performance, and slowly scroll down so that the... (1 Reply)
hiho,
where are the frisky CDE admins.... ;-)
how can i change the welcome logo?
i found the /usr/dt/config/C/Xresources
and the entry:
Dtlogin*logo*bitmapFile:
but when i enter my own *.bm or *.xpm file the screen use a black logo.... i think i am using the wrong resolution for my picture...... (3 Replies)
If you have a graphic display you see some sort of logo in OpenBoot immediately after a reset or when you run the banner command. With most systems, you see a spiffy multicolor logo generated by a routine on the video card. But if you have a low-rent video card you just see a plain monochrome Sun... (2 Replies)
I saw this on another board, and burst out laughing.
http://www.brandsoftheworld.com/brands/0011/0070/brand.gif
Apparently it's a new logo (may even be a new name) for a clothing line.
Check them out: www.A-Style.it (9 Replies)
Hello everyone,
I have a folder with thousands of images files that I what would like to add a logo in a corner (at the top or bottom)
Anyone knows how to accomplish this with imagemagick or other tool ?
Thanks in advance (1 Reply)
Hello,
If you switch to "seamless mode" in virtualbox, you can see the taskbar of the OS on your screen , like having a transparent background on your VM.
My question: is there a possibility to do the same in VMware's Workstation (7) ? I know and use the "Unity" mode in Workstation/Player, but... (0 Replies)
My first post :)
I deleted all the files within /system/library/startupitems to the trash bin. Now my mac snow leopard won't boot at all. All I got is the gray screen, apple logo and the spinning wheel...just spinning forever. I was able to boot in single-user mode. I'm trying to copy cp command... (14 Replies)
Hello,
this is my contribution to open community (LINK):
tovic.eu/design/logo/gnu-linux/
If you find it interesting, use it ...
Best regards (0 Replies)
It came in a template full of techy-related stickers for laptop (like Docker, K8s, BigData, RHEL, AWS, etc) but I have no clue what it represents. Any idea?
https://i.imgur.com/7ILp105.png
Thanks. (7 Replies)