[Win32API] Transparency of JPG image?

Hello,

how can I make a part of the image transparent, I mean, let's say I have normal image, like ball, and I want to make everyting except it transparent, ball is red and everything else is white, also how can I make it with different colors? so I can change like pink color will be transparent etc?
That is generally refered to as the alpha value of a pixel. JPEG does not generally support an alpha channel (http://www.faqs.org/faqs/jpeg-faq/part1/section-12.html)

Use an image format that does support this.
so how can I make choosen color of gif or w/e transparent in win api?
It's part of the image data. You make pixels transparent in the image, and then when you display it on screen, whatever you're using to display it handles the transparency.

Get an image editor.
Last edited on
Topic archived. No new replies allowed.