public ImgJBIG2(int width, int height, byte[] data, byte[] globals)
: base((Uri)null)
{
type = Element.JBIG2;
originalType = ORIGINAL_JBIG2;
scaledHeight = height;
this.Top = scaledHeight;
scaledWidth = width;
this.Right = scaledWidth;
bpc = 1;
colorspace = 1;
rawData = data;
plainWidth = this.Width;
plainHeight = this.Height;
if ( globals != null ) {
this.global = globals;
try {
this.globalHash = DigestAlgorithms.Digest("MD5", this.global);
} catch {
//ignore
}
}
}