Check if a Bitmap has tranparency

Check if a Bitmap has tranparency

am 16.01.2008 12:01:37 von danny

Hi all,

So I have a Bitmap field, now I want to save it to disk, BUT if it has
some transparent pixels, I want to save it as a gif, else save as
jpg.
Sounds reasonable?
How can I do that?

Thanks in advance,
Danny

Re: Check if a Bitmap has tranparency

am 16.01.2008 16:50:29 von Kevin Spencer

Check the PixelFormat.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Danny" wrote in message
news:d21122d6-c78f-405e-a2d0-540f07ec6644@i29g2000prf.google groups.com...
> Hi all,
>
> So I have a Bitmap field, now I want to save it to disk, BUT if it has
> some transparent pixels, I want to save it as a gif, else save as
> jpg.
> Sounds reasonable?
> How can I do that?
>
> Thanks in advance,
> Danny