473,399 Members | 3,888 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,399 software developers and data experts.

Using Transparent Colors in Dynamic pictures. (GDI+)

I am trying to create an image using GDI+ in VB.NET. I want to have the
background be transparent, but when I do run the following:

myGraphicsObject.clear(color.transparent)

the resulting background color is black, not transparent. I am saving the
image to the output stream as an "image/gif". Is there anything I should
know about this, any reason that the result would be black?

--

Thanks,
Chris Tremblay
www.mtgfanatic.com, Inc.
Nov 18 '05 #1
1 1865
Jos
Chris Tremblay wrote:
I am trying to create an image using GDI+ in VB.NET. I want to have
the background be transparent, but when I do run the following:

myGraphicsObject.clear(color.transparent)

the resulting background color is black, not transparent. I am saving
the image to the output stream as an "image/gif". Is there anything I
should know about this, any reason that the result would be black?


Transparent GIFs are not (yet) supported in GDI+.
Neither are animated GIFs, for that matter.

--

Jos
Nov 18 '05 #2

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

Similar topics

2
by: °Ë´óɽÈË | last post by:
Hi, everybody Have you every realize the transparent control by C#? I want to customer some controls to support transparent, can you tell me how to realize me? Thank you! Jerry
4
by: Efkas | last post by:
I am trying to build a MDI windows form, with child including some stuff, but it seems to be impossible to have BackColor property set to Color.Transparent. Is it existing any solution to have...
4
by: felix | last post by:
Hi, I tried google and searched the old posts -- with no success. Like a zillion of people before I have a problem when rendering transparent PNGs with GDI+ and the C# Graphics class. The image...
2
by: Matthew | last post by:
I created a transparent form, but the text in my label has a black border around it. I created a new form with a label with the text color "red" and the background color of "Transparent." I added...
2
by: thowle | last post by:
Okay, here is what I have, I designed a GUI that has rounded edges at the top (left and right). I want them to be transparent (Like Windows XP is when you have the Luna themes enabled). The...
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...
4
by: Simon Tamman {Uchiha Jax} | last post by:
Scenario: Two System.Windows.Forms: Form1 and Form2. Form1 is displayed, Form2 is hidden. At this juncture, is it possible to take the graphics from Form2 and output that to Form1's display...
2
by: ofiras | last post by:
Hello everyone, I always wonderd if transparent colors are possible in html, so i asked here once about it and they answerd that it's not possible to do it. Today i thought of something to make...
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: 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?
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.