[Mono-list] Format24bppRgb Format16bppRgb555 Format48bppRgb as 32-bit RGB in mono SUSE

Stifu stifu at free.fr
Mon Mar 2 09:26:10 EST 2009


Something is probably wrong with the way Mono clones Bitmaps.
I've encountered the following problem myself: I try to clone a bitmap, and
the resulting bitmap is all black. MS .NET doesn't have this problem. I
didn't get around to making a reduced testcase for this (I think it's
related to the Bitmap being locked)...

Anyway, if you can make a reduced testcase of your problem, you should file
a bug report. I think the problem lies in libgdiplus.


Vandana_hcl wrote:
> 
> Hi,
> 
> I am using the following code in Mono V2.2 on SUSE Linux Enterprise
> Desktop 10:
> 
> Bitmap bmp2 = bmp.Clone(new Rectangle(0, 0, bmp.Width, bmp.Height),
> PixelFormat.Format24bppRgb )
> 
> Same code creates a 24 RGP BMP image in Windows. But in mono it creates a
> 32 bit depth image.
> Not only this, if I am using "Format48bppRgb" or "Format16bppRgb555 " also
> it is generating a same 32 bit image.
> 
> Any help is really appreciated.
> 

-- 
View this message in context: http://www.nabble.com/Format24bppRgb-Format16bppRgb555-Format48bppRgb-as-32-bit-RGB-in-mono-SUSE-tp22286645p22289073.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list