svn path=/trunk/mcs/; revision=15729
else {
}
break;
+ case 32:
+ info.Format = PixelFormat.Format32bppArgb;
+ if (bmfh.bfOffBits != 0L) stream.Seek (startPosition + bmfh.bfOffBits,SeekOrigin.Begin);
+ if (bmih.biCompression == (uint)BitmapCompression.BI_RGB) {
+ info.RawImageBytes = new byte[bmih.biSizeImage];
+ stream.Read(info.RawImageBytes, 0, (int)bmih.biSizeImage);
+ }
+ else {
+ }
+ break;
default:
throw new NotImplementedException(String.Format("This format is not yet supported : {0} bpp", bmih.biBitCount));
break;
+2003-06-29 Alexandre Pigolkine
+ * BmpCodec.cs handle 32bpp images
+ * JPEGCodec.cs small fix
+
2003-06-27 Alexandre Pigolkine <pigolkine@gmx.de>
* JPEGCodec.cs encode 32 bpp images
break;
}
}
- if (!structureFound) throw new Exception("JPEG Codec cannot work with existing libjpeg");
+ if (!structureFound){
+ throw new Exception(String.Format("JPEG Codec cannot work with existing libjpeg.Structure size {0}.", size));
+ }
}
public byte[] raw_struct {