|
|
| newbie question about bitmap |
|
qqq m
Member #7,373
June 2006
|
Hi, and I have notic in one on the TuT ther is a command for that call "maske..." but I didn't understanding what it's do. onther thing in the "blit" command the is the "screen" variable what his purpose |
|
SonShadowCat
Member #1,548
September 2001
|
If you're using something other than 8bit, then change the black to magic pink and use masked_blit(...) to make it transparent. I'm sure you can find more info in the manual about 8bit if not a simple search. |
|
Green Grasshopper
Member #5,933
June 2005
|
Hi there, Welcome aboard. The colors in computers are organized in ways that are presentable to the users and on backstage, there are arrangements for the color to show up to viewers that must be learned - this is up to you to program and make them look good. The first thing I would suggest you, is SEARCH and BROWSE the forum, because it may be already answered there and you do not have to wait. But about your question: blit - Copies a rectangular area from one bitmap to another. It is in the manual.(http://www.allegro.cc/manual). screen is a special bitmap, which is your screen. So when you blit to screen, you will have your bitmap on the screen at runtime. Again, color depht, size, etc. masked_blit will do the same, but a "magic colour" wich is called "MAGENTA" or RGB (maximum red and blue, zero green). The magenta will not superimpose on the previous bitmap, thus will be transparent. Good luck. |
|
Lucid Nightmare
Member #5,982
July 2005
|
why dont u do urself a favor and read the allegro documents which come with the allegro zip package after u've compiled them... Two Golden Rules of life- Firstly, I'm always right and secondly, if you think otherwise, slap your face and read rule number one again! |
|
miran
Member #2,407
June 2002
|
Quote: why dont u do urself a favor and read the allegro documents which come with the allegro zip package after u've compiled them...
y dont u do urself a favor and lrn how too speel? -- |
|
|