iTextSharp.text.ImgRaw.ImgRaw C# (CSharp) Метод

ImgRaw() публичный Метод

Creats an Image in raw mode.
public ImgRaw ( int width, int height, int components, int bpc, Array data ) : System
width int the exact width of the image
height int the exact height of the image
components int 1,3 or 4 for GrayScale, RGB and CMYK
bpc int bits per component. Must be 1,2,4 or 8
data Array data the image data
Результат System
        public ImgRaw(int width, int height, int components, int bpc, byte[] data) : base((Uri)null) {
            type = Element.IMGRAW;
            scaledHeight = height;
            this.Top = scaledHeight;
            scaledWidth = width;
            this.Right = scaledWidth;
            if (components != 1 && components != 3 && components != 4)
                throw new BadElementException(MessageLocalization.GetComposedMessage("components.must.be.1.3.or.4"));
            if (bpc != 1 && bpc != 2 && bpc != 4 && bpc != 8)
                throw new BadElementException(MessageLocalization.GetComposedMessage("bits.per.component.must.be.1.2.4.or.8"));
            colorspace = components;
            this.bpc = bpc;
            rawData = data;
            plainWidth = this.Width;
            plainHeight = this.Height;
        }
    }

Same methods

ImgRaw::ImgRaw ( Image image ) : System
ImgRaw