pdfOptimizer 3.0.1 API
|
Class allows to process pixels of the bitmap image stored as byte array according to PDF specification. More...
Public Member Functions |
|
BitmapImagePixels (int width, int height, int bitsPerComponent, int numberOfComponents) | |
Creates a representation of empty image. More... |
|
BitmapImagePixels (PdfImageXObject image) | |
Creates a representation of an image presented as iText.Kernel.Pdf.Xobject.PdfImageXObject. More... |
|
BitmapImagePixels (int width, int height, int bitsPerComponent, int numberOfComponents, byte[] data) | |
Creates a representation of an image presented as bytes array. More... |
|
virtual double[] | GetPixel (int x, int y) |
Gets pixel of the image. More... |
|
virtual long[] | GetPixelAsLongs (int x, int y) |
Gets pixel of the image presented as long values. More... |
|
virtual void | SetPixel (int x, int y, double[] value) |
Updates a pixel of the image. More... |
|
virtual void | SetPixel (int x, int y, long[] value) |
Updates a pixel of the image. More... |
|
virtual int | GetWidth () |
Getter for a width of the image. More... |
|
virtual int | GetHeight () |
Getter for a height of the image. More... |
|
virtual int | GetBitsPerComponent () |
Getter for bits per component parameter of the image. More... |
|
virtual int | GetNumberOfComponents () |
Getter for number of components parameter of the image. More... |
|
virtual byte[] | GetData () |
Getter for byte representation of the image. More... |
|
virtual int | GetMaxComponentValue () |
Gets the maximum value for the component. More... |
|
Class allows to process pixels of the bitmap image stored as byte array according to PDF specification.
|
inline |
Creates a representation of empty image.
width | is a width of the image |
height | is a height of the image |
bitsPerComponent | is an amount of bits representing each color component of a pixel |
numberOfComponents | is a number of components representing a pixel |
|
inline |
Creates a representation of an image presented as iText.Kernel.Pdf.Xobject.PdfImageXObject.
image | is an image as iText.Kernel.Pdf.Xobject.PdfImageXObject |
|
inline |
Creates a representation of an image presented as bytes array.
width | is a width of the image |
height | is a height of the image |
bitsPerComponent | is an amount of bits representing each color component of a pixel |
numberOfComponents | is a number of components representing a pixel |
data | is an image data |
|
inlinevirtual |
Getter for bits per component parameter of the image.
|
inlinevirtual |
Getter for byte representation of the image.
|
inlinevirtual |
Getter for a height of the image.
|
inlinevirtual |
Gets the maximum value for the component.
|
inlinevirtual |
Getter for number of components parameter of the image.
|
inlinevirtual |
Gets pixel of the image.
x | is an x-coordinate of a pixel to update |
y | is a y-coordinate of a pixel to update |
|
inlinevirtual |
Gets pixel of the image presented as long values.
x | is an x-coordinate of a pixel to update |
y | is a y-coordinate of a pixel to update |
|
inlinevirtual |
Getter for a width of the image.
|
inlinevirtual |
|
inlinevirtual |
Updates a pixel of the image.
x | is an x-coordinate of a pixel to update |
y | is a y-coordinate of a pixel to update |
value | is a pixel color. Pixel should be presented as long array according to used color space. Each value should be in range [0, 2 ^ bitsPerComponent - 1] (otherwise negative value will be replaced with 0. and large numbers are replaced with maximum allowed value.) |