PC Review


Reply
Thread Tools Rate Thread

48BPP PNG Image Exception

 
 
Krish
Guest
Posts: n/a
 
      23rd Feb 2009
Hi,

The issue is reproducible only on a WM 6 emulators, NETCF 2.0.

I am trying to load a 48bpp PNG image to a Picture box, it throws the
below exception

at Microsoft.AGL.Common.MISC.HandleAr()
at System.Drawing.Bitmap._InitFromMemoryStream()
at System.Drawing.Bitmap..ctor()

Can someone shed some light on the issue

Thanks,
Krish
 
Reply With Quote
 
 
 
 
Carsten Unterberg
Guest
Posts: n/a
 
      24th Feb 2009
Hey Krish,

..Net Compact Framework don't supports 48bbp images. The best supported
pixelformat is "Format32bbpRgb". If you want to use the image, you need to
convert it.

[PixelFormat Enumeration]
http://msdn.microsoft.com/en-us/library/system.drawing.imaging.pixelformat(VS.80).aspx

Regards,

Carsten Unterberg | Test-Framework
http://test-framework.blogspot.com/

"Krish" <(E-Mail Removed)> schrieb im Newsbeitrag
news:35c87b4c-b6fa-45af-ae5f-(E-Mail Removed)...
> Hi,
>
> The issue is reproducible only on a WM 6 emulators, NETCF 2.0.
>
> I am trying to load a 48bpp PNG image to a Picture box, it throws the
> below exception
>
> at Microsoft.AGL.Common.MISC.HandleAr()
> at System.Drawing.Bitmap._InitFromMemoryStream()
> at System.Drawing.Bitmap..ctor()
>
> Can someone shed some light on the issue
>
> Thanks,
> Krish



 
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
OutOfMemory Exception on saving image ELandry Microsoft C# .NET 3 27th Oct 2009 09:43 AM
C# Image Array in Exception mcm Microsoft Dot NET Compact Framework 3 6th Feb 2008 02:08 PM
Image File Not getting Deleted (IO Exception) Aryan Microsoft ASP .NET 1 1st Jun 2006 03:57 PM
Image File Not getting Deleted (IO Exception) Aryan Microsoft Dot NET 5 1st Jun 2006 12:38 PM
Exception while set the value of Picture.Image wolf Microsoft C# .NET 0 3rd Mar 2004 03:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 PM.