Re: Transparent color in GIF ignored
From: Paul Pedersen (prpeders_at_nospam.pacbell.net)
Date: 04/05/04
- Next message: Olaf Doschke: "Re: Transparent color in GIF ignored"
- Previous message: Vernandy: "Re: Project manager, compile before saving?"
- In reply to: Willianto: "Re: Transparent color in GIF ignored"
- Next in thread: Olaf Doschke: "Re: Transparent color in GIF ignored"
- Reply: Olaf Doschke: "Re: Transparent color in GIF ignored"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Apr 2004 03:18:48 -0700
Maybe I made them wrong. I'll try again. Thanks for the tips.
Although treating gif transparent colors properly would be easier to use...
"Willianto" <willianto@remove-me.telkom-and-me.net> wrote in message
news:eQGIWdrGEHA.3776@tk2msftngp13.phx.gbl...
> Works OK for me; either with theme off or on and in Win98, ME, and 2000.
> Are you sure you created the .msk the way it should be?
>
> From vfp help:
> Using Picture Masks
> Often, a .bmp picture contains white space you do not want to appear on
> your controls. A white border around an irregularly shaped image could
> make your control look bad. To avoid this problem, Visual FoxPro creates
> a temporary default mask for your picture. White areas are given a
> transparent attribute so that the underlying color of the button or
> background shows through. To keep certain white areas of your .bmp
> white, create a mask for it that will override the default.
>
> To create a mask for a .bmp
>
> 1.. Open the .bmp file in Paint or another bitmap utility.
> 2.. Blacken all areas of the picture that you want to be displayed
> exactly as they are in the .bmp file. Leave the areas you want to be
> transparent as white.
> 3.. Save the file in the same directory and with the same name as the
> .bmp file but with an .msk extension.
> When Visual FoxPro loads a .bmp file specified by the Picture property
> for a command button, option button, or check box, it looks in the same
> directory for a matching .msk file. If an .msk file with the same name
> as the .bmp is in the directory, Visual FoxPro uses it as a mask for the
> picture. All white areas in the .msk picture are made transparent in the
> .bmp. All black areas in the .msk picture are displayed exactly as they
> are in the .bmp.
>
> hope this helps.
>
> Willianto
>
> "Paul Pedersen" <prpeders@nospam.pacbell.net> wrote in message
> news:ueBn2BqGEHA.2408@TK2MSFTNGP10.phx.gbl...
> > I tried that, and that didn't work either. I didn't try it with themes
> off,
> > though.
> >
> >
> >
> > "Willianto" <willianto@remove-me.telkom-and-me.net> wrote in message
> > news:%23T6VrakGEHA.712@tk2msftngp13.phx.gbl...
> > > Hi Paul,
> > >
> > > I prefer to use bmp instead of gif. With .bmp, I can create a mask
> file
> > > (.msk) that 'marks' parts of the image that I want to set as
> > > transparant. I found that the transparancy effect is more reliable
> in
> > > various os (98, me, 2000, xp).
> > >
> > > Anyway, other poster might have better answer for you.
> > >
> > > hth,
> > > Willianto
> > >
> > > "Paul Pedersen" <prpeders@nospam.pacbell.net> wrote in message
> > > news:#y1xxUcGEHA.264@TK2MSFTNGP12.phx.gbl...
> > > > When I put a gif file on a form or button, the gif's transparent
> color
> > > shows
> > > > as white. FoxPro seems to ignore the transparent attribute. It
> doesn't
> > > seem
> > > > to matter whether form.themes is on or off, or the setting of
> > > > form.colorsource, or anything else that I can see.
> > > >
> > > > Anyone know how to make this work?
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Olaf Doschke: "Re: Transparent color in GIF ignored"
- Previous message: Vernandy: "Re: Project manager, compile before saving?"
- In reply to: Willianto: "Re: Transparent color in GIF ignored"
- Next in thread: Olaf Doschke: "Re: Transparent color in GIF ignored"
- Reply: Olaf Doschke: "Re: Transparent color in GIF ignored"
- Messages sorted by: [ date ] [ thread ]