473,396 Members | 1,703 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 BackGround

vbt
I am having difficult time drawing a image using Visual Studio Image Editor.

I can draw the image and save it as .bmp file load it into a pictureBox
image

but when the program is run the background of the bmp is not Transparent.

How can I achieve a transparent background?

Thanks

tb
Oct 20 '06 #1
11 8288
The bitmap format has no alpha, therefore no transparency. You should try a
gif, tiff, or icon.

--
Thiele Enterprises - The Power Is In Your Hands Now!

--
"vbt" <tb***@cwnet.comwrote in message
news:eT**************@TK2MSFTNGP05.phx.gbl...
I am having difficult time drawing a image using Visual Studio Image Editor.

I can draw the image and save it as .bmp file load it into a pictureBox
image

but when the program is run the background of the bmp is not Transparent.

How can I achieve a transparent background?

Thanks

tb

Oct 20 '06 #2
32bit bitmaps actually do have alpha

"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:Bqd_g.41$%T3.20@trndny03...
The bitmap format has no alpha, therefore no transparency. You should try
a
gif, tiff, or icon.

--
Thiele Enterprises - The Power Is In Your Hands Now!

--
"vbt" <tb***@cwnet.comwrote in message
news:eT**************@TK2MSFTNGP05.phx.gbl...
I am having difficult time drawing a image using Visual Studio Image
Editor.

I can draw the image and save it as .bmp file load it into a pictureBox
image

but when the program is run the background of the bmp is not Transparent.

How can I achieve a transparent background?

Thanks

tb

Oct 21 '06 #3
How do you then make a 32bit bitmap transparent? Does Visual Studio save
bitmaps in 32 bit format. How do you convert another format to 32bit format?
--
Dennis in Houston
"Smokey Grindel" wrote:
32bit bitmaps actually do have alpha

"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:Bqd_g.41$%T3.20@trndny03...
The bitmap format has no alpha, therefore no transparency. You should try
a
gif, tiff, or icon.

--
Thiele Enterprises - The Power Is In Your Hands Now!

--
"vbt" <tb***@cwnet.comwrote in message
news:eT**************@TK2MSFTNGP05.phx.gbl...
I am having difficult time drawing a image using Visual Studio Image
Editor.

I can draw the image and save it as .bmp file load it into a pictureBox
image

but when the program is run the background of the bmp is not Transparent.

How can I achieve a transparent background?

Thanks

tb



Oct 21 '06 #4
vbt
Well, I have tried creating the drawing using the following formats with no
success

..gif, .tiff. and .icon

What program would I use to draw a 32 bitmap?

This drawing will be loaded into a pictureBox. Is this the correct control
for these image types?

vbt
Oct 21 '06 #5
Do you have the background of the picturebox set to transparent?

--
Thiele Enterprises - The Power Is In Your Hands Now!

--
"vbt" <tb***@cwnet.comwrote in message
news:Og****************@TK2MSFTNGP04.phx.gbl...
Well, I have tried creating the drawing using the following formats with no
success

..gif, .tiff. and .icon

What program would I use to draw a 32 bitmap?

This drawing will be loaded into a pictureBox. Is this the correct control
for these image types?

vbt

Oct 21 '06 #6
vbt
Yes, Transparent is set.
Oct 21 '06 #7
Are you placing the image in the background property? or the imagfe
property. I belive the Background doesn't support transparency. But placing
the image into the image property. it will have transparency.

Give it a try.

--
Thiele Enterprises - The Power Is In Your Hands Now!

--
"vbt" <tb***@cwnet.comwrote in message
news:ew**************@TK2MSFTNGP03.phx.gbl...
Yes, Transparent is set.

Oct 22 '06 #8
On Sat, 21 Oct 2006 15:23:35 -0700, "vbt" <tb***@cwnet.comwrote:
>Well, I have tried creating the drawing using the following formats with no
success

.gif, .tiff. and .icon

What program would I use to draw a 32 bitmap?

This drawing will be loaded into a pictureBox. Is this the correct control
for these image types?

vbt
Only stable success I have had with transparent background images in picture boxes
was with either proper 32 bit "XP Style" icons (other icons don't work), or .png
format images created in PhotoShop with a transparent background. With the .png
images, they only seem to work properly when loaded into a picture box from a
resource at runtime. In Design, there is usually no transparency (which may change
with SP1) and usually no transparency at runtime if loaded in Design.

Gene

Oct 22 '06 #9
vbt
Ryan, I Have placed the Image in the Image Property.
Still no Luck.

vbt
Oct 22 '06 #10
vbt
Gene, I have tried loading the image using Application.StartupPath & "\" &
myFileName.
The image loads just fine but still no transparent background.

vbt
Oct 22 '06 #11
On Sun, 22 Oct 2006 07:45:06 -0700, "vbt" <tb***@cwnet.comwrote:
>Gene, I have tried loading the image using Application.StartupPath & "\" &
myFileName.
The image loads just fine but still no transparent background.

vbt
It sounds like the image you are trying to use is not a proper 32 bit image with a
transparent background versus a 24 or 32 bit image with a non-transparent background.
This has nothing to do with transparent key color by the way.

Gene
Oct 22 '06 #12

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

Similar topics

5
by: Paul Schnitter | last post by:
Update: My custom control is based on the article "Creating Visual Basic .NET controls from scratch" in "Adventures in .NET" on MSDN. It is designed to be a replacement for the VB6 shape...
7
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...
1
by: Efkas | last post by:
My application have some level : 1. MyButton class with Label inheritance 2. MyComponent as User Control loading and positionning some of MyButtons 3. MyApp loading and positionning MyComponent ...
5
by: Mark Deibert | last post by:
I'm a former VB6 coder. Quit a few years ago. Now I'm back and trying to teach myself VB.NET. I don't remember having this much difficulty learning VB6. I'm totally stuck on something and need your...
8
by: Grahammer | last post by:
Is it possible to set the background of a usercontrol as transparent? I tried setting the background image of the usercontrol to a transparent GIF, but that caused MAJOR problems. I'm making...
4
by: jcrouse | last post by:
I am using the following code to move a label on a form at runtime: If myMousedown = lblP1JoyRight.Name Then If lblP1JoyRight.BackColor.Equals(Color.Transparent) Then bTransCk = True ...
2
by: Dean Slindee | last post by:
It appears that I have two routines that don't play well together! First routine: a form's background is shaded with a gradient color. Second routine: then, the background of all labels on the...
9
by: Rhino | last post by:
I've been updating some CSS today and got one odd error from the validator at http://jigsaw.w3.org/css-validator/. Every time I had 'background: transparent;' (or background-color: transparent;)...
2
by: Martin | last post by:
I've been complaing about the VB2005 Help-Information (or rather the lack of it) before, but when I was looking how to set the backstyle of a label control to "Transparent" I found that the VB2005...
8
by: Brian Ward | last post by:
I am looking for a simple way to set the image transparency in a PictureBox. I have a moving PictureBox containing a graphic image .. moving by incrementing its Left property. The background...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.