BMP with "transparent" background

PeterD
Member Posts: 66
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?
0
Comments
-
Maybe by selecting the background color the same as the form color...
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.be0 -
I tried that but the “standard gray” background of Windows changes a little if you change the number of colors Windows must display.
Maybe Navision uses a specific background color to filter out when a BMP is displayed. If so, which color?0 -
This has absolutely nothing to do with Navision. In every Icon- or Button-editor you can choose any Background color plus opaque.
Marcus
Marcus Fabian
m.fabian@thenet.ch
+41 79 439 78 72With best regards from Switzerland
Marcus Fabian0 -
Dennis,
Could you please reduce the you 14-line signature? Netiquette recommends 4-6 lines maximum. Thanks.
MarcusWith best regards from Switzerland
Marcus Fabian0 -
Marcus,
Correct me if I'm wrong but as far as I know only a BMP can be loaded into a PictureBox.0 -
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)?
MarcusWith best regards from Switzerland
Marcus Fabian0 -
True, but that doesn't answer my question, does it?0
-
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 - NetherlandsMartin Pennings
Sittard - Netherlands0 -
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.).Kristopher0
-
Martin,
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.0 -
Try with a pure green colour...Regards
Peter0 -
Thanks for the suggestion but doesn't work either.
[This message has been edited by PeterD (edited 20-03-2001).]0 -
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" />
P.S.: I hope I'm wrong.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions