transparancy doesn't work

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • susan

    transparancy doesn't work

    Hi,

    When I place a picture with a transparant background on a form, the
    background shows white. How is this possible?

    Thanks,

    Susan


  • Rick Brandt

    #2
    Re: transparancy doesn't work

    susan wrote:
    Hi,
    >
    When I place a picture with a transparant background on a form, the
    background shows white. How is this possible?
    Access doesn't support transparency. At least not normally. I seem to
    recall that there were some steps one could take to get an image to retain a
    transparent color, but I read that a long time ago.

    --
    Rick Brandt, Microsoft Access MVP
    Email (as appropriate) to...
    RBrandt at Hunter dot com


    Comment

    • Stephen Lebans

      #3
      Re: transparancy doesn't work

      Here are 2 solutions:

      (A)
      1) Load and convert the desired Image as a Transparent Gif file. Save the
      converted Image to disk as you would normally.


      2) Open Microsoft Word. Menu-_Insert->Picture->From File
      Browse to your converted Image you previously saved and select it.


      3) After the Image appears on the page Click once on the Image to select it.


      4) Right click and select Copy from the Popup menu or click on the ToolBar
      to select COPY


      5) Open an Access Form and Select Paste from the Menu or ToolBar. The
      Image is pasted as an unbound OLE frame.


      6) On the Access Form-Format menu select Change To->Image control.


      7) Change the new converted Image control's Back Style Prop to Transparent.


      (B)





      Transparent.zip is a database containing functions to allow for the
      conversion of Bitmap, Gif, Jpeg, Enhanced Metafile and Metafile to an
      Enhanced Metafile format supporting Transparent backgrounds.
      This function only works on pictures that have "WHITE" as their background
      color. Many GIF files use the standard system GREY instead. You will have
      to load any files into a Paint program that do not have white for a
      background color and make the necessary changes. I spent 10 hours trying to
      implement a Transparent function to allow the user to select which color
      they want to appear transparent. The problem here is that in the normal
      course of events, the program rendering a picture to the screen can
      obviously grab whatever is currently on the screen to form the basis of a
      transparency function. Since there is no "Paint" event in Access we rely on
      the Access to redraw all of the controls. I could not find a method to
      encode a transparent color in the Metafile other than background white. You
      would think you could just set the DC's Background color to the chosen
      Transparency value to form the "mask". Unfortunately I tried this with
      limited success. I could make any color Transparent except the current
      background color. The easiest method would be to remap the user's choice for
      a Transparent color to the background and make it White. But I spent so much
      time experimenting that I'm going to leave it for now
      --

      HTH
      Stephen Lebans

      Access Code, Tips and Tricks
      Please respond only to the newsgroups so everyone can benefit.


      "susan" <vdb@hotmail.co mwrote in message
      news:aede9$48d7 6a51$524b0b79$1 0753@cache4.til bu1.nb.home.nl. ..
      Hi,
      >
      When I place a picture with a transparant background on a form, the
      background shows white. How is this possible?
      >
      Thanks,
      >
      Susan
      >

      Comment

      Working...