Options

BMP with "transparent" background

PeterDPeterD Member Posts: 66
edited 2001-03-21 in Navision Financials
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?

Comments

  • Options
    Dennis_DecoeneDennis_Decoene Member Posts: 123
    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.be
  • Options
    PeterDPeterD Member Posts: 66
    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?
  • Options
    mfabianmfabian Member Posts: 187
    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 72
    With best regards from Switzerland

    Marcus Fabian
  • Options
    mfabianmfabian Member Posts: 187
    Dennis,
    Could you please reduce the you 14-line signature? Netiquette recommends 4-6 lines maximum. Thanks.

    Marcus
    With best regards from Switzerland

    Marcus Fabian
  • Options
    PeterDPeterD Member Posts: 66
    Marcus,

    Correct me if I'm wrong but as far as I know only a BMP can be loaded into a PictureBox.
  • Options
    mfabianmfabian Member Posts: 187
    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)?

    Marcus
    With best regards from Switzerland

    Marcus Fabian
  • Options
    PeterDPeterD Member Posts: 66
    True, but that doesn't answer my question, does it?
  • Options
    mpenningsmpennings Member Posts: 2
    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
    Martin Pennings
    Sittard - Netherlands
  • Options
    KristopherKristopher Member Posts: 1
    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.).
    Kristopher
  • Options
    PeterDPeterD Member Posts: 66
    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.
  • Options
    pdjpdj Member Posts: 643
    Try with a pure green colour...
    Regards
    Peter
  • Options
    PeterDPeterD Member Posts: 66
    Thanks for the suggestion but doesn't work either.

    [This message has been edited by PeterD (edited 20-03-2001).]
  • Options
    dbdb Member Posts: 82
    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.
Sign In or Register to comment.