473,325 Members | 2,671 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,325 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 1591
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.