RasterCachedImage class
RasterCachedImage class
Represents a raster image supporting raster graphics operations. This image caches pixel data when required.
Inheritance: RasterCachedImage →
RasterImage →
Image →
DataStreamSupporter →
DisposableObject
The RasterCachedImage type exposes the following members:
Properties
| Property | Description |
|---|---|
| disposed | Gets a value indicating whether this instance is disposed. |
| data_stream_container | Gets the object’s data stream. |
| is_cached | Gets a value indicating whether image data is cached currently. |
| bounds | Gets the image bounds. |
| container | Gets the Image container. |
| height | Gets the image height. |
| palette | Gets or sets the color palette. |
| size | Gets the image size. |
| width | Gets the image width. |
| has_background_color | Gets or sets a value indicating whether image has background color. |
| background_color | Gets or sets a value for the background color. |
| unit_type | Gets current unit type. |
| unitless_default_unit_type | Assumed unit type when UnitType is set to Unitless |
| xmp_data | Gets or sets the XMP metadata. |
| raw_indexed_color_converter | Gets or sets the indexed color converter |
| raw_custom_color_converter | Gets or sets the custom color converter |
| raw_fallback_index | Gets or sets the fallback index to use when palette index is out of bounds |
| raw_data_settings | Gets the current raw data settings. Note when using these settings the data loads without conversion. |
| raw_data_format | Gets the raw data format. |
| raw_line_size | Gets the raw line size in bytes. |
| is_raw_data_available | Gets a value indicating whether raw data loading is available. |
| bits_per_pixel | Gets the image bits per pixel count. |
| horizontal_resolution | Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage. |
| vertical_resolution | Gets or sets the vertical resolution, in pixels per inch, of this RasterImage. |
| has_transparent_color | Gets a value indicating whether image has transparent color. |
| has_alpha | Gets a value indicating whether this instance has alpha. |
| transparent_color | Gets the image transparent color. |
Methods
| Method | Description |
|---|---|
| save | Saves the image data to the underlying stream. |
| save | Saves the object’s data to the specified file location in the specified file format according to save options. |
| save | Saves the image’s data to the specified stream in the specified file format according to save options. |
| save | Saves the object’s data to the specified stream. |
| save | Saves the object’s data to the specified file location. |
| save | Saves the object’s data to the specified file location. |
| can_load | Determines whether image can be loaded from the specified file path. |
| can_load | Determines whether an image can be loaded from the specified file path and optionally using the specified open options |
| can_load | Determines whether image can be loaded from the specified stream. |
| can_load | Determines whether image can be loaded from the specified stream and optionally using the specified load_options. |
| get_file_format | Gets the file format. |
| get_file_format | Gets the file format. |
| load | Loads a new image from the specified file. |
| load | Loads a new image from the specified file. |
| load | Loads a new image from the specified stream. |
| load | Loads a new image from the specified stream. |
| dither | Performs dithering on the current image. |
| dither | Performs dithering on the current image. |
| resize | Resizes the image. |
| resize | Resizes the image. |
| crop | Cropping the image. |
| crop | Crop image with shifts. |
| adjust_gamma | Gamma-correction of an image. |
| adjust_gamma | Gamma-correction of an image. |
| get_default_raw_data | Gets the default raw data array using partial pixel loader. |
| get_default_raw_data | Gets the default raw data array. |
| write_scan_line | Writes the whole scan line to the specified scan line index. |
| write_scan_line | Writes the whole scan line to the specified scan line index. |
| cache_data | Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.data_stream_container. |
| get_strings | Gets all string values from image. |
| can_save | Determines whether image can be saved to the specified file format represented by the passed save options. |
| get_default_pixels | Gets the default pixels array using partial pixel loader. |
| binarize_otsu | Binarization of an image with Otsu thresholding |
| binarize_bradley | Binarization of an image using Bradley’s adaptive thresholding algorithm using the integral image thresholding |
| adjust_brightness | Adjust of a brightness for image. |
| grayscale | Transformation of an image to its grayscale representation |
| binarize_fixed | Binarization of an image with predefined threshold |
| rotate | Rotate image around the center. |
| adjust_contrast | Image contrasting |
| get_default_argb_32_pixels | Gets the default 32-bit ARGB pixels array. |
| get_argb_32_pixel | Gets an image 32-bit ARGB pixel. |
| get_pixel | Gets an image pixel. |
| set_argb_32_pixel | Sets an image 32-bit ARGB pixel for the specified position. |
| set_pixel | Sets an image pixel for the specified position. |
| read_scan_line | Reads the whole scan line by the specified scan line index. |
| read_scan_line_argb | Reads the whole scan line by the specified scan line index. |
| load_partial_argb_32_pixels | Loads 32-bit ARGB pixels partially by packs. |
| load_partial_pixels | Loads pixels partially by packs. |
| load_argb_32_pixels | Loads 32-bit ARGB pixels. |
| load_pixels | Loads pixels. |
| load_cmyk_pixels | Loads pixels in CMYK format. |
| load_raw_data | Loads raw data. |
| save_raw_data | Saves the raw data. |
| save_argb_32_pixels | Saves the 32-bit ARGB pixels. |
| save_pixels | Saves the pixels. |
| save_cmyk_pixels | Saves the pixels. |
| set_resolution | Sets the resolution for this RasterImage. |
| set_palette | Sets the image palette. |
| filter | Filters the specified rectangle. |
See Also
- module
aspose.cad - class
DataStreamSupporter - class
DisposableObject - class
Image - class
RasterCachedImage - class
RasterImage