By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,654 Members | 1,842 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,654 IT Pros & Developers. It's quick & easy.

transparancy doesn't work

P: n/a
Hi,

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

Thanks,

Susan
Sep 22 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Sep 22 '08 #2

P: n/a
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)
http://www.lebans.com/transparent.htm


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
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"susan" <vd*@hotmail.comwrote in message
news:ae***************************@cache4.tilbu1.n b.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

Sep 22 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.