473,323 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

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
Sep 22 '08 #1
2 1947
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: dan glenn | last post by:
(PHP4.3.4, GD2) How can I save a PNG using GD2 and insure that it saves as a palette-based (8-bit, 256-color) single-color transparancy?? Saving this way, I could be sure that an image loaded from...
7
by: AnnMarie | last post by:
My JavaScript Form Validation doesn't work at all in Netscape, but it works fine in IE. I made some of the suggested changes which enabled it to work in IE. I couldn't make all the changes...
39
by: Mark Johnson | last post by:
It doesn't seem possible. But would the following also seem a violation of the general notions behind css? You have a DIV, say asociated with class, 'topdiv'. Inside of that you have an anchor...
4
by: Keon | last post by:
Hoi Do someone know how i can make the background of a iframe transparancy? I already tried it with filter: Alpha(Opacity=50,); but it also make the text transperancy. do someone know how to...
149
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? --...
1
by: pnp | last post by:
Hi all, I'm developing a win app in C# and I am drawing by myself the icons that I'm going to use in Corel Draw 11, then turn them to icons by using Axialis and then use them from an imagelist in...
3
by: John Devlon | last post by:
Hi, does anyone know how to set the BackColor of a label to transparant ? A have a picture as background image and I would like some labels on top. These labels must be transparant so that...
2
by: Tym | last post by:
How on earth does one set the background property of a label to transparant, a la VB6? I have a label which overlays a picturebox, and I don't want the horrible grey background - I just want the...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.