473,396 Members | 2,081 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,396 software developers and data experts.

Transparent images

Im trying to place an image on my form, which is transparent in parts like
an icon. My page refuses to display the transparent areas in the color of
the page background but keeps replacing it with white, causing the image to
sit in a white square.

Is there something I'm missing here like a property that needs to be set?

I've tried Icons, PNG file with transparency and Bitmap with transparency,
none seem to work.

Any help appreciated

Kind regards
MW
Nov 19 '05 #1
3 1389
MW de Jager wrote:
I've tried Icons, PNG file with transparency and Bitmap with
transparency, none seem to work.


Bitmap (.bmp) files don't support transparency, so that's not going to work.

I'm fairly sure Internet Explorer doesn't render transparent PNGs properly.
Firefox should do this fine, though. If you're using IE, that's probably the
reason that doesn't work.

I've no idea how web browsers would render .ico files (if at all).

Your best bet for images with transparent areas is to use a .gif file. This
is rendered correctly by all (relevant) browsers and does support
transparency.

Hope that helps,

--

(O)enone
Nov 19 '05 #2
Exactly right. IE even upto version 6 doesnot properly render the
transparency of png files. Gif files are at present the only real
multi-browser solution.

br,

Mark.
"Oenone" <oe****@nowhere.com> wrote in message
news:Oz****************@tk2msftngp13.phx.gbl...
MW de Jager wrote:
I've tried Icons, PNG file with transparency and Bitmap with
transparency, none seem to work.


Bitmap (.bmp) files don't support transparency, so that's not going to
work.

I'm fairly sure Internet Explorer doesn't render transparent PNGs
properly. Firefox should do this fine, though. If you're using IE, that's
probably the reason that doesn't work.

I've no idea how web browsers would render .ico files (if at all).

Your best bet for images with transparent areas is to use a .gif file.
This is rendered correctly by all (relevant) browsers and does support
transparency.

Hope that helps,

--

(O)enone

Nov 19 '05 #3
I'm currently using icon files which seems to work fine. Will probably have
to change to gif files for multi browser support.

Thanks for your help

MW

"Mark Broadbent" <no****@nospam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Exactly right. IE even upto version 6 doesnot properly render the
transparency of png files. Gif files are at present the only real
multi-browser solution.

br,

Mark.
"Oenone" <oe****@nowhere.com> wrote in message
news:Oz****************@tk2msftngp13.phx.gbl...
MW de Jager wrote:
I've tried Icons, PNG file with transparency and Bitmap with
transparency, none seem to work.


Bitmap (.bmp) files don't support transparency, so that's not going to
work.

I'm fairly sure Internet Explorer doesn't render transparent PNGs
properly. Firefox should do this fine, though. If you're using IE, that's
probably the reason that doesn't work.

I've no idea how web browsers would render .ico files (if at all).

Your best bet for images with transparent areas is to use a .gif file.
This is rendered correctly by all (relevant) browsers and does support
transparency.

Hope that helps,

--

(O)enone


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fearless Freep | last post by:
I know there's a PIL mailing list but I thought I would try the question here as well. I'm using PIL on Python 1.5.2 (stop laughing, it's what the ISP has for CGI and I don't have a choice) ...
5
by: Jim | last post by:
Now this is just weird. And yes, I validated the html and the stylesheet. I created a transparent gif image in Paint Shop Pro 7. I made the mistake of making a transparent png and went along...
8
by: djmanmaster | last post by:
Am I right in thinking that images with transparent areas (GIFs or PNGs) should allow clicks to "pass through" to any underlying elements behind them? I have had no luck getting this to work in...
2
by: Allan | last post by:
I've been trying to get this to work for days. I have a form which needs to be transparent (only the form background). On the form there are two images (32 bit PNGs) with alpha channel...
3
by: Christopher Kurtis Koeber | last post by:
Dear All, I know that I am asking a lot about images lately, but it is just that new issues keep arising. My issue now has to do with transparent images. When I display transparent images,...
0
by: MLH | last post by:
My question is not how to paste images in Access with transparent backgrounds. I've researched 4-6 year old postings adequately describing how to achieve this. Lebans' site does a good job of...
2
by: lord.zoltar | last post by:
I have a couple of images I'm using to try and pretty up some forms. They are PNG images with transparent parts. I have one of them partly overlaying the other, but my problem is with the...
9
by: Chuck Anderson | last post by:
Is it possible to overlay a transparent watermark on an image - dynamically? I'd like the result to look like this example: <http://www.cycletourist.com/temp/photo.php> That is a bit of...
11
by: Marge | last post by:
After importing a VB6 project into Express 2008 I have two gif's with transparency do not display correctly. In VB6 these pictures where used with the image object which had different properties...
2
by: neovantage | last post by:
Hey all, I have created transparent PNG images from text dynamically. But it edges are pixel-ate or we can say edges are distorted. Here is my LINK which shows my generated transparent PNG image....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.