|
iText 9.8.1 API
|
Describes encoded image data and the attributes needed to embed it in a document. More...
Public Member Functions |
|
| virtual bool | IsRawImage () |
| Indicates whether this instance represents raw sample data. More... |
|
| virtual Uri | GetUrl () |
| Gets the source URL. More... |
|
| virtual void | SetUrl (Uri url) |
| Sets the source URL used to load image bytes. More... |
|
| virtual int[] | GetTransparency () |
| Gets the component-value pairs that define transparent ranges. More... |
|
| virtual void | SetTransparency (int[] transparency) |
| Sets component-value pairs that define transparent ranges. More... |
|
| virtual bool | IsInverted () |
| Checks whether image samples are inverted. More... |
|
| virtual void | SetInverted (bool inverted) |
| Sets whether image samples are inverted. More... |
|
| virtual float | GetRotation () |
| Gets the clockwise rotation applied to the image. More... |
|
| virtual void | SetRotation (float rotation) |
| Sets the clockwise rotation applied to the image. More... |
|
| virtual IccProfile | GetProfile () |
| Gets the associated ICC color profile. More... |
|
| virtual void | SetProfile (IccProfile profile) |
| Sets the associated ICC color profile. More... |
|
| virtual int | GetDpiX () |
| Gets the horizontal image resolution. More... |
|
| virtual int | GetDpiY () |
| Gets the vertical image resolution. More... |
|
| virtual void | SetDpi (int dpiX, int dpiY) |
| Sets the image resolution. More... |
|
| virtual int | GetColorTransform () |
| Gets the color-transform selector. More... |
|
| virtual void | SetColorTransform (int colorTransform) |
| Sets the color-transform selector. More... |
|
| virtual bool | IsDeflated () |
| Checks whether image bytes are already deflate-compressed. More... |
|
| virtual void | SetDeflated (bool deflated) |
| Sets whether image bytes are already deflate-compressed. More... |
|
| virtual ImageType | GetOriginalType () |
| Gets the source image format. More... |
|
| virtual int | GetColorEncodingComponentsNumber () |
| Gets the number of components used to encode colorspace. More... |
|
| virtual void | SetColorEncodingComponentsNumber (int colorEncodingComponentsNumber) |
| Sets the number of components used to encode colorspace. More... |
|
| virtual byte[] | GetData () |
| Gets the encoded image bytes. More... |
|
| virtual bool | CanBeMask () |
| Checks whether this image can be converted to an image mask. More... |
|
| virtual bool | IsMask () |
| Checks whether this image is an image mask. More... |
|
| virtual iText.IO.Image.ImageData | GetImageMask () |
| Gets the mask image associated with this image. More... |
|
| virtual void | SetImageMask (iText.IO.Image.ImageData imageMask) |
| Associates a mask image with this image. More... |
|
| virtual bool | IsSoftMask () |
| Checks whether this image is a soft mask. More... |
|
| virtual void | MakeMask () |
| Converts this image to an image mask. More... |
|
| virtual float | GetWidth () |
| Gets the image width. More... |
|
| virtual void | SetWidth (float width) |
| Sets the image width. More... |
|
| virtual float | GetHeight () |
| Gets the image height. More... |
|
| virtual void | SetHeight (float height) |
| Sets the image height. More... |
|
| virtual int | GetBpc () |
| Gets the number of bits used for each color component. More... |
|
| virtual void | SetBpc (int bpc) |
| Sets the number of bits used for each color component. More... |
|
| virtual bool | IsInterpolation () |
| Checks whether interpolation should be requested while rendering. More... |
|
| virtual void | SetInterpolation (bool interpolation) |
| Sets whether interpolation should be requested while rendering. More... |
|
| virtual float | GetXYRatio () |
| Gets the pixel aspect ratio. More... |
|
| virtual void | SetXYRatio (float XYRatio) |
| Sets the pixel aspect ratio. More... |
|
| virtual IDictionary< String, Object > | GetImageAttributes () |
| Gets additional image attributes. More... |
|
| virtual void | SetImageAttributes (IDictionary< String, Object > imageAttributes) |
| Sets additional image attributes. More... |
|
| virtual String | GetFilter () |
| Gets the PDF filter name used for the image data. More... |
|
| virtual void | SetFilter (String filter) |
| Sets the PDF filter name used for the image data. More... |
|
| virtual IDictionary< String, Object > | GetDecodeParms () |
| Gets image decoder parameters. More... |
|
| virtual float[] | GetDecode () |
| Gets the image decode array. More... |
|
| virtual void | SetDecode (float[] decode) |
| Sets the image decode array. More... |
|
| virtual bool | CanImageBeInline () |
| Checks if image can be inline More... |
|
Package Functions |
|
| ImageData (Uri url, ImageType type) | |
| Creates image data whose bytes are available from a URL. More... |
|
| ImageData (byte[] bytes, ImageType type) | |
| Creates image data from encoded bytes. More... |
|
| virtual void | LoadData () |
| Load data from URL. More... |
|
Package Attributes |
|
| Uri | url |
Source URL from which the image bytes can be loaded, or null when bytes were supplied directly. More... |
|
| int[] | transparency |
Component-value pairs defining transparent ranges, or null when no range is specified. More... |
|
| ImageType | originalType |
| Detected or declared format of the source image. More... |
|
| float | width |
| Image width in pixels. More... |
|
| float | height |
| Image height in pixels. More... |
|
| byte[] | data |
Encoded image bytes, or null until data is loaded from url. More... |
|
| int | imageSize |
| Size of the image data in bytes when known. More... |
|
| int | bpc = 1 |
| Bits per color component. More... |
|
| int | colorEncodingComponentsNumber = -1 |
| Is the number of components used to encode colorspace. More... |
|
| float[] | decode |
Decode array applied to image samples, or null when no decode array is specified. More... |
|
| IDictionary< String, Object > | decodeParms |
Parameters associated with the image decoder, or null. More... |
|
| bool | inverted = false |
| Whether the image samples are inverted. More... |
|
| float | rotation |
| Clockwise rotation to apply to the image, in degrees. More... |
|
| IccProfile | profile |
ICC color profile associated with the image, or null. More... |
|
| int | dpiX = 0 |
Horizontal resolution in dots per inch, or 0 when unspecified. More... |
|
| int | dpiY = 0 |
Vertical resolution in dots per inch, or 0 when unspecified. More... |
|
| int | colorTransform = 1 |
| Color-transform selector used by formats that support it. More... |
|
| bool | deflated |
| Whether data is already deflate-compressed. More... |
|
| bool | mask = false |
| Whether this image is used as an image mask. More... |
|
| iText.IO.Image.ImageData | imageMask |
Mask image associated with this image, or null. More... |
|
| bool | interpolation |
| Whether interpolation should be requested when rendering the image. More... |
|
| float | XYRatio = 0 |
Pixel aspect ratio, or 0 when unspecified. More... |
|
| String | filter |
PDF filter name used to decode the image data, or null. More... |
|
| IDictionary< String, Object > | imageAttributes |
Additional image attributes, or null. More... |
|
| long? | mySerialId = GetSerialId() |
Describes encoded image data and the attributes needed to embed it in a document.
|
inlinepackage |
Creates image data whose bytes are available from a URL.
| url | source URL, not null |
| type | source image format |
|
inlinepackage |
Creates image data from encoded bytes.
| bytes | encoded image bytes; the array is retained |
| type | source image format |
|
inlinevirtual |
Checks whether this image can be converted to an image mask.
true if the color encoding permits masking
|
inlinevirtual |
Checks if image can be inline
Reimplemented in iText.IO.Image.Jpeg2000ImageData, and iText.IO.Image.Jbig2ImageData.
|
inlinevirtual |
Gets the number of bits used for each color component.
|
inlinevirtual |
Gets the number of components used to encode colorspace.
|
inlinevirtual |
Gets the color-transform selector.
|
inlinevirtual |
Gets the encoded image bytes.
null until loaded
|
inlinevirtual |
Gets the image decode array.
null
|
inlinevirtual |
Gets image decoder parameters.
null
|
inlinevirtual |
Gets the horizontal image resolution.
0 when unspecified
|
inlinevirtual |
Gets the vertical image resolution.
0 when unspecified
|
inlinevirtual |
Gets the PDF filter name used for the image data.
null
|
inlinevirtual |
Gets the image height.
|
inlinevirtual |
Gets additional image attributes.
null
|
inlinevirtual |
Gets the mask image associated with this image.
null
|
inlinevirtual |
Gets the source image format.
|
inlinevirtual |
Gets the associated ICC color profile.
null
|
inlinevirtual |
Gets the clockwise rotation applied to the image.
|
inlinevirtual |
Gets the component-value pairs that define transparent ranges.
null
|
inlinevirtual |
Gets the source URL.
null when the image was created from bytes
|
inlinevirtual |
Gets the image width.
|
inlinevirtual |
Gets the pixel aspect ratio.
0 when unspecified
|
inlinevirtual |
Checks whether image bytes are already deflate-compressed.
true when the image bytes are deflated
|
inlinevirtual |
Checks whether interpolation should be requested while rendering.
true to request interpolation
|
inlinevirtual |
Checks whether image samples are inverted.
true if samples are inverted
|
inlinevirtual |
Checks whether this image is an image mask.
true if this image is a mask
|
inlinevirtual |
Indicates whether this instance represents raw sample data.
true for raw image data; false otherwise
Reimplemented in iText.IO.Image.RawImageData.
|
inlinevirtual |
Checks whether this image is a soft mask.
true if this image is a soft mask
|
inlinepackagevirtual |
Load data from URL.
Load data from URL. url must be not null. Note, this method doesn't check if data or url is null.
|
inlinevirtual |
Converts this image to an image mask.
|
inlinevirtual |
Sets the number of bits used for each color component.
| bpc | bits per component |
|
inlinevirtual |
Sets the number of components used to encode colorspace.
| colorEncodingComponentsNumber | the number of components used to encode colorspace |
|
inlinevirtual |
Sets the color-transform selector.
| colorTransform | color-transform selector |
|
inlinevirtual |
Sets the image decode array.
| decode | decode array to retain, or null |
|
inlinevirtual |
Sets whether image bytes are already deflate-compressed.
| deflated |
true when the image bytes are deflated
|
inlinevirtual |
Sets the image resolution.
| dpiX | horizontal resolution in dots per inch |
| dpiY | vertical resolution in dots per inch |
|
inlinevirtual |
Sets the PDF filter name used for the image data.
| filter | PDF filter name, or null |
|
inlinevirtual |
Sets the image height.
| height | height in pixels |
|
inlinevirtual |
Sets additional image attributes.
| imageAttributes | attribute map to retain, or null |
|
inlinevirtual |
Associates a mask image with this image.
| imageMask | image that has been made a mask |
|
inlinevirtual |
Sets whether interpolation should be requested while rendering.
| interpolation |
true to request interpolation
|
inlinevirtual |
Sets whether image samples are inverted.
| inverted |
true to invert samples
|
inlinevirtual |
Sets the associated ICC color profile.
| profile | ICC profile to associate, or null |
|
inlinevirtual |
Sets the clockwise rotation applied to the image.
| rotation | rotation in degrees |
|
inlinevirtual |
Sets component-value pairs that define transparent ranges.
| transparency | transparency array to retain, or null |
|
inlinevirtual |
Sets the source URL used to load image bytes.
| url | source URL, or null |
|
inlinevirtual |
Sets the image width.
| width | width in pixels |
|
inlinevirtual |
Sets the pixel aspect ratio.
| XYRatio | pixel aspect ratio |
|
package |
Bits per color component.
|
package |
Is the number of components used to encode colorspace.
|
package |
Color-transform selector used by formats that support it.
|
package |
Encoded image bytes, or null until data is loaded from url.
|
package |
Decode array applied to image samples, or null when no decode array is specified.
|
package |
Parameters associated with the image decoder, or null.
|
package |
Whether data is already deflate-compressed.
|
package |
Horizontal resolution in dots per inch, or 0 when unspecified.
|
package |
Vertical resolution in dots per inch, or 0 when unspecified.
|
package |
PDF filter name used to decode the image data, or null.
|
package |
Image height in pixels.
|
package |
Additional image attributes, or null.
|
package |
Mask image associated with this image, or null.
|
package |
Size of the image data in bytes when known.
|
package |
Whether interpolation should be requested when rendering the image.
|
package |
Whether the image samples are inverted.
|
package |
Whether this image is used as an image mask.
|
package |
Detected or declared format of the source image.
|
package |
ICC color profile associated with the image, or null.
|
package |
Clockwise rotation to apply to the image, in degrees.
|
package |
Component-value pairs defining transparent ranges, or null when no range is specified.
|
package |
Source URL from which the image bytes can be loaded, or null when bytes were supplied directly.
|
package |
Image width in pixels.
|
package |
Pixel aspect ratio, or 0 when unspecified.