Image Transparency

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In Access XP you could paste special an image with a transparent background
and the background would stay transparent. How do you do this in Access
2003. It does not work by pasting special.
 
Try Tools->Options->Forms/Reports
Uncheck the option for Use Windows Themed Controls on Forms

In all versions of Access you could not simply paste an Image with a
transparent background unless it was copied from an Office application such
as Word. Another way arond the issue is here:
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.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
I have already tried this and it still doesn't work. Neither method works
in 2003.
I tried both paste special picture and bitmap in access after I copied it
from word.

I really need this to work like it did in xp.
 
The option I pointed you to on my site still works in Access 2003.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
When it opens it asks if I want to convert or just open. I convert it to
2003. When I import an image the background is black not transparent. Am I
doing something wrong?
 
Ok I gave it another try and some of my .gifs showed up in your program with
a transparent background and I was able to convert them to .emf, but some of
them showed up with a black background. I check to see if the .gif had a
transparent background in other programs and they do. So why would some work
and others not?
 
Did you read the Notes section on the Transparent Web page?

Notes:

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 and get back to the
Animated Gif player. I'll try to come back some day and finish this
properly.


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Ok, got it to work. I took the .gifs that had a transparent background that
did not work and brought them into paint.net. I made their background white
and then saved them as a .bmp file. I then used your program to open them
and save them as a .emf file. I then imported them as an image into Access
and vola! transparent background. Thanks a bunch. This really saved me.
 
Back
Top