public ImgCCITT(int width, int height, bool reverseBits, int typeCCITT, int parameters, byte[] data)
: base((Uri)null)
{
if (typeCCITT != Element.CCITTG4 && typeCCITT != Element.CCITTG3_1D && typeCCITT != Element.CCITTG3_2D)
throw new BadElementException(MessageLocalization.GetComposedMessage("the.ccitt.compression.type.must.be.ccittg4.ccittg3.1d.or.ccittg3.2d"));
if (reverseBits)
TIFFFaxDecoder.ReverseBits(data);
type = Element.IMGRAW;
scaledHeight = height;
this.Top = scaledHeight;
scaledWidth = width;
this.Right = scaledWidth;
colorspace = parameters;
bpc = typeCCITT;
rawData = data;
plainWidth = this.Width;
plainHeight = this.Height;
}