else
ic = ImageCodec.CreateReader(format);
+ if (ic == null)
+ throw new ArgumentException ("Parameter is not valid.");
+
try {
ic.NativeStream = input;
PlainImage pi = ic.ReadPlainImage();
public BitmapData LockBits (Rectangle rect, ImageLockMode flags, PixelFormat format) {
throw new NotImplementedException();
}
+
+#if NET_2_0
+ public
+#endif
+ BitmapData LockBits (Rectangle rect, ImageLockMode flags, PixelFormat format, BitmapData bitmapData) {
+ throw new NotImplementedException();
+ }
#endregion
#region MakeTransparent
case 11://JavaImage.TYPE_USHORT_GRAY:
return PixelFormat.Format16bppGrayScale;
case 10://JavaImage.TYPE_BYTE_GRAY:
- return PixelFormat.Format1bppIndexed;
+ return PixelFormat.Format8bppIndexed;
case 1: //JavaImage.TYPE_INT_RGB
return PixelFormat.Format32bppRgb;
case 2: //JavaImage.TYPE_INT_ARGB: