PC Review


Reply
Thread Tools Rate Thread

Load a Bitmap : White color becomes gray

 
 
Nicolas Pietrzak
Guest
Posts: n/a
 
      21st Jul 2005
Hello,

I'm trying to load a Bitmap via the System.Drawing.Bitmap object. My file is
a empty white 8bit bmp. The code is the following :

Bitmap bitmap = new Bitmap (filename);
Color color = bitmap.GetPixel (0, 0);
MessageBox.Show (string.Format ("R: {0}, G: {1}, B: {2}", color.R, color.G,
color.B));

On Windows 2003 or a pocketPC 2003 emulator, the MessageBox message is "R:
255, G: 255, B:255". However, it is "R:248, G:248, B:248" on the pocketPC
device.

I have tried with 2 different pocketPCs (QTek and Dell) with different
Bitmap formats (8bit, 16bit, row order flipped). I have also tried to put
the bitmap in a resource file. The white background is still gray ! I need
some help.

Thanks.

--
Nicolas Pietrzak
Aliantiz


 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      21st Jul 2005
I've answered this a number of times.
http://groups-beta.google.com/groups...%3A6%3A5&hl=en
Supposedly it has been fixed in SP3, but I haven't checked

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Nicolas Pietrzak" <nicolas.pietrzak@noSpam> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I'm trying to load a Bitmap via the System.Drawing.Bitmap object. My file
> is a empty white 8bit bmp. The code is the following :
>
> Bitmap bitmap = new Bitmap (filename);
> Color color = bitmap.GetPixel (0, 0);
> MessageBox.Show (string.Format ("R: {0}, G: {1}, B: {2}", color.R,
> color.G, color.B));
>
> On Windows 2003 or a pocketPC 2003 emulator, the MessageBox message is "R:
> 255, G: 255, B:255". However, it is "R:248, G:248, B:248" on the pocketPC
> device.
>
> I have tried with 2 different pocketPCs (QTek and Dell) with different
> Bitmap formats (8bit, 16bit, row order flipped). I have also tried to put
> the bitmap in a resource file. The white background is still gray ! I need
> some help.
>
> Thanks.
>
> --
> Nicolas Pietrzak
> Aliantiz
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
white patches ankles white patches on tonsils white raised patchesskin white patches on skin vitiligoproblem Scanners 0 30th Mar 2009 09:25 PM
white patches ankles white patches on tonsils white raised patchesskin white patches on skin vitiligoproblem Scanners 0 29th Mar 2009 06:50 PM
. Re: image problems and the palette and Re: white bitmap is not 100% white Jon Pawley Microsoft Dot NET Compact Framework 0 5th Mar 2004 04:06 AM
white bitmap is not 100% white Jacco Microsoft Dot NET Compact Framework 7 20th Feb 2004 08:49 AM
Changing the background color in IE to gray from white. Manik Windows XP Internet Explorer 2 9th Jul 2003 05:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:41 PM.