Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Samir H.
  Where is Samir H.?
 Yogyakarta
 Indonesia
 Samir H.
 To: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 Tags
Subject: RE: Bmp/png transparency?
Thread ID: 311025 Message ID: 311055 # Views: 36 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Tuesday, June 28, 2011 2:40:21 PM         
   


> > Hi everybody
> >
> >
> >
> > In the picture above, you can see that the images have partial transparency. When the form has a different backColor, you can notice that. I have done that with image controls and png pictures, but I can't achieve that with a bitmap.
> > Can somebody confirm that it is not possible with bitmaps?
> >
> > PS: I discovered some bad side effects when using png, that's why I'm asking.
> > Thank you.
> >
> > Regards
> > Samir
>
> To make a transparent bitmap you must make sure that the bitmap has been converted to Indexed 256 colour. 24bit Bitmaps will not make a transparent image. Make sure that pixel (0,0) in the top left most part of the picture has the colour you want to be transparent.
>
>
>
> Mike Gagnon
> Refox XI +(English version)

Did you get that from VFP's help file? I couldn't find it. Anyway, how could 1 color (pixel 0,0) ever be enough? If you look at my picture, there are dozens of colors in 1 pic, and they all must be semi-transparent.
I did a small test with 256 but can't get yet the pic transparent. Still testing...


Regards
Samir

ENTIRE THREAD

Bmp/png transparency? Posted by Samir H. @ 6/28/2011 10:36:17 AM
RE: Bmp/png transparency? Posted by Martin Krivka @ 6/28/2011 12:01:57 PM
RE: Bmp/png transparency? Posted by Samir H. @ 6/28/2011 2:53:05 PM
RE: Bmp/png transparency? Posted by Martin Krivka @ 6/28/2011 3:32:58 PM
RE: Bmp/png transparency? Posted by Samir H. @ 6/28/2011 3:40:50 PM
RE: Bmp/png transparency? Posted by onytoo @ 6/28/2011 9:12:28 PM
RE: Bmp/png transparency? Posted by Samir H. @ 6/29/2011 4:35:16 AM
RE: Bmp/png transparency? Posted by Mike Gagnon @ 6/28/2011 12:05:58 PM
RE: Bmp/png transparency? Posted by Samir H. @ 6/28/2011 2:40:21 PM
RE: Bmp/png transparency? Posted by Mike Gagnon @ 6/28/2011 9:03:00 PM
RE: Bmp/png transparency? Posted by onytoo @ 6/28/2011 12:26:57 PM