While playing with BMP's on a form I discovered that the predefined bitmaps in Navision have a "transparent" background. Any idea how Navision made this possible?
That's correct. I was just mentioning icons as this is the most popular case where opaque background is being used.
I mean: What is an icon if not a bitmap with a specific size (32*32 mostly)?
How about the color of the pixel at the most left at the bottem as tramsparent color? I didn't try, but it often is a standard.
Martin Pennings
Sittard - Netherlands
BMP file format does not support transparent colours at all. Icon formats may, as well as proprietary file formats (Paint Shop Pro, Corel Photo-Draw, etc.).
Let use one bug of NF. I founded it in NF 1.30 but I hope <img border="0" title="" alt="" src="images/smiles/icon_wink.gif" /> it alive until now. So meke one form with stored bitmap. Make report and include the same bitmap. Now the bug:
1. run form. you see bitmap OK
2. now run report - bitmap OK
3. run form again - bitmap background in white !!!
The bitmap is repaired then you rerun NF.
Depending on this expirience we can say that NF changing background. But in forms we see true transparentcy !?
I think that NF use special algorythm (bugy?) for stored bitmaps and don't think that exist transparent color for you. <img border="0" title="" alt="" src="images/smiles/icon_sad.gif" />
Comments
Dennis Decoene
Navision Software Engineer
MicroComputing NV
Nijverheidsweg 1
9820 Merelbeke
Belgium
Tel: +32 (0)9/231.26.88
Fax: +32 (0)9/231.77.57
http://www.microcomputing.be
Maybe Navision uses a specific background color to filter out when a BMP is displayed. If so, which color?
Marcus
Marcus Fabian
m.fabian@thenet.ch
+41 79 439 78 72
Marcus Fabian
Could you please reduce the you 14-line signature? Netiquette recommends 4-6 lines maximum. Thanks.
Marcus
Marcus Fabian
Correct me if I'm wrong but as far as I know only a BMP can be loaded into a PictureBox.
I mean: What is an icon if not a bitmap with a specific size (32*32 mostly)?
Marcus
Marcus Fabian
Martin Pennings
Sittard - Netherlands
Sittard - Netherlands
My BMP was all background except for a small figure in the center. So this isn't the trick Navision uses to simulate a transparent background.
Peter
[This message has been edited by PeterD (edited 20-03-2001).]
1. run form. you see bitmap OK
2. now run report - bitmap OK
3. run form again - bitmap background in white !!!
The bitmap is repaired then you rerun NF.
Depending on this expirience we can say that NF changing background. But in forms we see true transparentcy !?
I think that NF use special algorythm (bugy?) for stored bitmaps and don't think that exist transparent color for you. <img border="0" title="" alt="" src="images/smiles/icon_sad.gif" />
P.S.: I hope I'm wrong.