Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How Transparent Background on BMP ??

0 views
Skip to first unread message

Al Franz

unread,
Mar 21, 2002, 11:50:23 AM3/21/02
to
Can you make transparent background BMP files to be used in a Help File. I
have made transparent background GIF images before, but how is this done for
graphic files within a Help File. Or do you just have to have a colored
background of the image match what you want in the help file ????

Pete Lees

unread,
Mar 21, 2002, 1:31:53 PM3/21/02
to
Al Franz <alb...@netmation.com> wrote:

> Can you make transparent background BMP files to be used in a Help File.

Yes, you can do this, but only for 16-colour bitmaps. The colour that is
made transparent is the highest numbered colour in the palette. That's to
say, if you view the palette for the image in a bitmap editor such as Paint
Shop Pro, the colour numbered 15 is the one that will be replaced by the
background colour of the help window. (The palette numbers run from 0 to
15.) In the standard Windows 16-colour palette, the default colour in this
position is white, but you can trick WinHelp into painting out a
different colour by editing the palette and making your chosen colour the
final one. This is useful if the bitmap contains white areas that you don't
want to make transparent.

When coding the {bmx} statement for the graphic in the source text file for
your WinHelp project, you just add the letter "t" to make the graphic
transparent. For example:

{bmct logo.bmp}

Finally, if the background colour is dithered, WinHelp will pick the solid
colour closest to that dither for the background of the bitmap.

Pete


0 new messages