473,386 Members | 1,752 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,386 software developers and data experts.

Draw without Alpha Channel?

Hello

Please excuse me if this should've been posted elsewhere, but I
couldn't find a GDI+ specific forum, and since the classes are part of
..NET, I thought maybe someone here would have more experience with
GDI+ than I have.

Does anyone know a way to temporarily turn off the alpha channel in a
"PixelFormat32bppARGB" bitmap ?
Tell GDI+ that all pixels are opaque, rather than modify my bitmap's
pixels

I'd hoped that PixelFormat32bppRGB would work, but it does not.
Apparently 32-RGB is RGBx and 32-ARGB is ARGB so they are not
compatible.

Is there a pixel format I have not discovered, or must I shuffle bytes
back and forth in my memory block?

Thank you for any suggestions or pointers
ray
Jul 21 '05 #1
1 1595
You might consider posting this to
microsoft.public.dotnet.framework.drawing, as that is the GDI+ group.


"Raymond Walsh" <fu********@gmail.com> wrote in message
news:bd*************************@posting.google.co m...
Hello

Please excuse me if this should've been posted elsewhere, but I
couldn't find a GDI+ specific forum, and since the classes are part of
.NET, I thought maybe someone here would have more experience with
GDI+ than I have.

Does anyone know a way to temporarily turn off the alpha channel in a
"PixelFormat32bppARGB" bitmap ?
Tell GDI+ that all pixels are opaque, rather than modify my bitmap's
pixels

I'd hoped that PixelFormat32bppRGB would work, but it does not.
Apparently 32-RGB is RGBx and 32-ARGB is ARGB so they are not
compatible.

Is there a pixel format I have not discovered, or must I shuffle bytes
back and forth in my memory block?

Thank you for any suggestions or pointers
ray

Jul 21 '05 #2

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

Similar topics

0
by: Sam Fisher | last post by:
Hi, I'm currently using a ListView- control in my VB.NET app, that shall look nice and therefore contains some 24 bit icons (plus 8 bit alpha channel). But the icons are not displayed correctly in...
3
by: Bill English | last post by:
Does C# Support Alpha Channel Backgrounds? I have an image made in Photoshop, which has an alpha channel. I save it as a PNG file, then set the form's BG image to that file. Now it shows up fine...
3
by: instruo | last post by:
I'm using the System.Drawing.Bitmap class for loading a 32-bit bmp file which includes an alpha channel. The problem is, when it gets loaded (just using the Bitmap(string filename) constructor),...
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...
10
by: Lespaul36 | last post by:
I want to extract associated folder icons durring runtime and show them in a treeview control. The XP alpha channel messes that up. Is there a fix or a way to remove the alpha channel?
1
by: André Nogueira | last post by:
Hi there guys. I have some 32 Bits PNGs with an Alpha channel, and added them as icons on Toolbar buttons. However, the pixels affected by the Alpha channel (those that have some transparency)...
1
by: Raymond Walsh | last post by:
Hello Please excuse me if this should've been posted elsewhere, but I couldn't find a GDI+ specific forum, and since the classes are part of ..NET, I thought maybe someone here would have more...
0
by: yxq | last post by:
Hello, I use the API ExtractIcon to get icon from Shell32, but the returned icon lost alpha channel, how get back the alpha channel? thank you. ...
1
by: Vic.Dong | last post by:
Hello, all: How to draw a icon of alpha channel from CImagelist to listview control on Windows XP? B.R. VIC
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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
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,...

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.