|
Change images colors |
Flávio Silva
Member #16,886
August 2018
|
Please, i need changing images colors. For exemplo, I need change my IMAGE.JPG to green. I need get two images to do anaglyph, is possible with Allegro? How do it? |
Frank Drebin
Member #2,987
December 2002
|
Maybe 'al_draw_tinted_bitmap' is what you are lookig for? |
Flávio Silva
Member #16,886
August 2018
|
Hi, tks for your comment but I used this command. It return an image original and tinted in the same. How separate both and save only the tinted? The image is attached and the code is below: ALLEGRO_BITMAP *bmp = NULL; |
William Labbett
Member #4,486
March 2004
|
It sounds like you want to save a bitmap with <code> ALLEGRO_BITMAP *bitmap_to_save = al_create_bitmap(....,....); al_set_target_bitmap(bitmap_to_save); /* draw tinted bitmap to bitmap_to_save : */ al_draw_tinted_bitmap(bmp, al_map_rgb(255, 0, 0), 0, 0, 0); then al_save_bitmap();
|
|