Draw transparent image to screen

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
lakan
Posts: 3
Joined: Fri Nov 30, 2007 10:56 pm

Draw transparent image to screen

Post by lakan »

This is my first post on this forum, so hello everyone :)

I'm writing a game for the PSP, and I need to draw a image with a transparent color.
I want to draw brian, but the green color should just be skipped

http://img266.imageshack.us/img266/1777/briantq2.png

I followed a tutorial that showed me a simple draw function. Is there any other (better) way?

blitAlphaImageToScreen(0, 0,91 ,92, ball.image, ball.x, ball.y);
Team-3GO
Posts: 17
Joined: Wed Nov 21, 2007 7:40 am
Location: PSP-Development

Post by Team-3GO »

just make a png with transparent background and cut the green away. ;)
"Ignorance is the night of the mind, but a night without moon and star."
lakan
Posts: 3
Joined: Fri Nov 30, 2007 10:56 pm

Post by lakan »

Team-3GO wrote:just make a png with transparent background and cut the green away. ;)
And "transparent background" is?
2.6,CRACKED!
Posts: 18
Joined: Thu Jul 26, 2007 9:02 pm

Post by 2.6,CRACKED! »

on photoshop, the eraser tool will make it transparent. or gimp or anything decent which isn't paint.

I assume there is an animation as single images for walking look primitive... Anywho i done the first for you. Enjoy

Image
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

as long as you save your textures to have an alpha
channel (4bit or 8bit) then you should have no problem
calling the blending functions
10011011 00101010 11010111 10001001 10111010
Post Reply