I'm trying to make the background of a picture transparent, so I use
paint to fill the background with blue (0,0,255), then set the
transparent colour to it. I found a custom control that can do the
job.
Now the problem is the paint program can't seem to save the file with
the exact colour i need. every time I open the picture file again , I
see the blue background has a range of colours (<30,<30,>230)
I tried in Java and I was able to set a range of colours transparent.
How do I do it with vb.net?
I will need to have the image in the picturebox control at the end. 2 2416
On Feb 6, 6:29 am, "wanwan" <ericwa...@yaho o.comwrote:
I'm trying to make the background of a picture transparent, so I use
paint to fill the background with blue (0,0,255), then set the
transparent colour to it. I found a custom control that can do the
job.
Now the problem is the paint program can't seem to save the file with
the exact colour i need. every time I open the picture file again , I
see the blue background has a range of colours (<30,<30,>230)
I tried in Java and I was able to set a range of colours transparent.
How do I do it with vb.net?
I will need to have the image in the picturebox control at the end.
If you are saving the image as a JPG you may lose the EXACT colour you
want to use. I think png image format is much better for this sort of
thing. TIFF images would also work but would be quite large.
Also, the .jpg graphic format doesn't support transparency. Another format
that would is the .gif format, but it can really make a good looking graphic
look awful if you aren't careful in how you create it.
Bruce
<lo*********@gm ail.comwrote in message
news:11******** **************@ m58g2000cwm.goo glegroups.com.. .
On Feb 6, 6:29 am, "wanwan" <ericwa...@yaho o.comwrote:
>I'm trying to make the background of a picture transparent, so I use paint to fill the background with blue (0,0,255), then set the transparent colour to it. I found a custom control that can do the job.
Now the problem is the paint program can't seem to save the file with the exact colour i need. every time I open the picture file again , I see the blue background has a range of colours (<30,<30,>230)
I tried in Java and I was able to set a range of colours transparent. How do I do it with vb.net? I will need to have the image in the picturebox control at the end.
If you are saving the image as a JPG you may lose the EXACT colour you
want to use. I think png image format is much better for this sort of
thing. TIFF images would also work but would be quite large. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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)
Anyway. I have a basic image and I need to overlay an image on top of
it and let some of the basic image show through. Just as an aside the
images are not of the same size and the top image needs to be pasted
|
by: Thomas Wieser |
last post by:
Hi,
my problem: I have some tables with transparent backgrounds, which are
changed in colours within a JavaScript DOM function to have a roll-over
effect.
Now, i can't get them back transparent when leaving the mouse out of the
rollover-box - background-color: none; seems not to work.
Isn't it possible to do this with CSS?
|
by: Mr Colin J Cotter |
last post by:
Hi,
I am having some trouble using css correctly and I was wondering if a
subscriber to this newsgroup might be able to offer some suggestions.
The problem refers to the page
http://www.gloworms.org.uk/index.htm
My intention was to put the whole page in a dark box which sits on a
|
by: Doug Laidlaw |
last post by:
I tried to grab an image from a Web page the other day. It turned out that
the page was made up of three horizontal bands, and part of the image was
in each. One band was a JPEG, another was a GIF and I have forgotten what
the main page was.
Apart from lining up the parts of the image, there was no discrepancy in
colours between the two formats. Is that what "Web-safe" means? I thought
that it just meant that the colours would be the...
|
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 IE or Firefox. I have tried
GIF and PNG with 'binary' transparency and PNG24 with 'alpha'
transparency (obviously the latter won't work in IE without the
AlphaImageLoader trick).
Here is a test page for you to see it not working in action:
| |
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 information, in one case the alpha
information is used to display a shadow, and the other has a shadow and a
few other things. One of these images will change on a random basis (every
five minutes or so) and the other is the background for display data.
...
|
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 transparent parts: If
Image1 is over Image2, I cannot see Image2. The transparent parts of
the images are coloured with the background colour of the form, so it
seems that the transparency is somewhat respected - how do I get the
transparent part to show...
|
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 overkill, but you can see what I mean. The watermark
image (a png image) is included separately below the photo.
I tried using a class from phpclasses.org
<http://www.phpclasses.org/browse/package/1580.html...
|
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 to the picturebox unfortunately there only seems
to be the picturebox option in the toolbox of Express 2008?
any ideas/help PLEASE :o)
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |