[英]Transparent sprites in c++ with Allegro
I'm learning to use Allegro. 我正在学习使用Allegro。 I'm trying to make my character cut out.
我正在努力使角色消失。 How do I key out a certain color from my bitmap?
如何从位图中抠出某种颜色? which way is used for allegro?
快板采用哪种方式? Thanks
谢谢
These might be places to start: 这些可能是开始的地方:
http://www.allegro.cc/manual/api/blitting-and-sprites/draw_trans_sprite http://www.allegro.cc/manual/api/blitting-and-sprites/draw_trans_sprite
http://wiki.allegro.cc/index.php?title=Alpha_channel#Drawing_to_the_alpha_channel_in_Allegro http://wiki.allegro.cc/index.php?title=Alpha_channel#Drawing_to_the_alpha_channel_in_Allegro
http://www.allegro.cc/manual/api/blitting-and-sprites/draw_sprite http://www.allegro.cc/manual/api/blitting-and-sprites/draw_sprite
"Transparent pixels are marked by a zero in 256-color modes or bright pink for truecolor data (maximum red and blue, zero green)." “在256色模式下,透明像素用0标记,对于真彩色数据,明亮的粉红色标记(最大红色和蓝色,绿色零)。”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.