RasterCachedImage Class

Represents a raster image supporting raster graphics operations. This image caches pixel data when required.
Inheritance Hierarchy

Namespace:  Aspose.CAD
Assembly:  Aspose.CAD (in Aspose.CAD.dll) Version: 20.9
Syntax
public abstract class RasterCachedImage : RasterImage

The RasterCachedImage type exposes the following members.

Constructors
  NameDescription
Protected methodRasterCachedImage
Initializes a new instance of the RasterCachedImage class.
Protected methodRasterCachedImage(IColorPalette)
Initializes a new instance of the RasterCachedImage class.
Properties
  NameDescription
Public propertyCode exampleAttributes
Gets the attributes collection.
(Inherited from Image.)
Public propertyBackgroundColor Obsolete.
Gets or sets a value for the background color.
(Inherited from Image.)
Public propertyBitsPerPixel
Gets the image bits per pixel count.
(Inherited from RasterImage.)
Public propertyCode exampleBounds
Gets the image bounds.
(Inherited from Image.)
Public propertyCode exampleContainer
Gets the Image container.
(Inherited from Image.)
Protected propertyDataLoader
Gets or sets the data loader.
(Inherited from RasterImage.)
Public propertyDataStreamContainer
Gets the object's data stream.
(Inherited from DataStreamSupporter.)
Public propertyDisposed
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.)
Public propertyHasAlpha
Gets a value indicating whether this instance has alpha.
(Inherited from RasterImage.)
Public propertyHasBackgroundColor Obsolete.
Gets or sets a value indicating whether image has background color.
(Inherited from Image.)
Public propertyHasTransparentColor
Gets a value indicating whether image has transparent color.
(Inherited from RasterImage.)
Public propertyCode exampleHeight
Gets the image height.
(Inherited from Image.)
Public propertyHorizontalResolution
Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage.
(Inherited from RasterImage.)
Public propertyIsCached
Gets a value indicating whether image data is cached currently.
(Overrides DataStreamSupporterIsCached.)
Public propertyIsRawDataAvailable
Gets a value indicating whether raw data loading is available.
(Inherited from RasterImage.)
Public propertyCode examplePalette
Gets or sets the color palette.
(Inherited from Image.)
Public propertyRawCustomColorConverter
Gets or sets the custom color converter
(Inherited from RasterImage.)
Public propertyRawDataFormat
Gets the raw data format.
(Inherited from RasterImage.)
Public propertyRawDataSettings
Gets the current raw data settings. Note when using these settings the data loads without conversion.
(Inherited from RasterImage.)
Public propertyRawFallbackIndex
Gets or sets the fallback index to use when palette index is out of bounds
(Inherited from RasterImage.)
Public propertyRawIndexedColorConverter
Gets or sets the indexed color converter
(Inherited from RasterImage.)
Public propertyRawLineSize
Gets the raw line size in bytes.
(Inherited from RasterImage.)
Public propertyCode exampleSize
Gets the image size.
(Inherited from Image.)
Public propertyTransparentColor
Gets the image transparent color.
(Inherited from RasterImage.)
Public propertyUnitlessDefaultUnitType
Assumed unit type when UnitType is set to Unitless
(Inherited from Image.)
Public propertyCode exampleUnitType
Gets current unit type.
(Inherited from Image.)
Public propertyVerticalResolution
Gets or sets the vertical resolution, in pixels per inch, of this RasterImage.
(Inherited from RasterImage.)
Public propertyCode exampleWidth
Gets the image width.
(Inherited from Image.)
Public propertyXmpData
Gets or sets the XMP metadata.
(Inherited from RasterImage.)
Methods
  NameDescription
Public methodAdjustBrightness
Adjust of a brightness for image.
(Overrides RasterImageAdjustBrightness(Int32).)
Public methodAdjustContrast
Image contrasting
(Overrides RasterImageAdjustContrast(Single).)
Public methodAdjustGamma(Single)
Gamma-correction of an image.
(Overrides RasterImageAdjustGamma(Single).)
Public methodAdjustGamma(Single, Single, Single)
Gamma-correction of an image.
(Overrides RasterImageAdjustGamma(Single, Single, Single).)
Public methodBinarizeBradley
Binarization of an image using Bradley's adaptive thresholding algorithm using the integral image thresholding
(Overrides RasterImageBinarizeBradley(Double).)
Public methodBinarizeFixed
Binarization of an image with predefined threshold
(Overrides RasterImageBinarizeFixed(Byte).)
Public methodBinarizeOtsu
Binarization of an image with Otsu thresholding
(Overrides RasterImageBinarizeOtsu.)
Public methodCacheData
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
(Overrides DataStreamSupporterCacheData.)
Public methodCode exampleCanSave
Determines whether image can be saved to the specified file format represented by the passed save options.
(Inherited from Image.)
Public methodCrop(Rectangle)
Cropping the image.
(Overrides RasterImageCrop(Rectangle).)
Public methodCrop(Int32, Int32, Int32, Int32)
Crop image with shifts.
(Inherited from RasterImage.)
Public methodDispose
Disposes the current instance.
(Inherited from DisposableObject.)
Public methodDither(DitheringMethod, Int32)
Performs dithering on the current image.
(Inherited from RasterImage.)
Public methodDither(DitheringMethod, Int32, IColorPalette)
Performs dithering on the current image.
(Overrides RasterImageDither(DitheringMethod, Int32, IColorPalette).)
Protected methodDoAfterSave
Does the after save.
(Inherited from DataStreamSupporter.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFilter
Filters the specified rectangle.
(Inherited from RasterImage.)
Protected methodFinalize
Finalizes an instance of the DisposableObject class.
(Inherited from DisposableObject.)
Public methodGetArgb32Pixel
Gets an image 32-bit ARGB pixel.
(Inherited from RasterImage.)
Public methodCode exampleGetAttributeValue
Gets attribute value.
(Inherited from Image.)
Public methodGetDefaultArgb32Pixels
Gets the default 32-bit ARGB pixels array.
(Inherited from RasterImage.)
Public methodGetDefaultPixels
Gets the default pixels array using partial pixel loader.
(Inherited from RasterImage.)
Public methodGetDefaultRawData(Rectangle, RawDataSettings)
Gets the default raw data array.
(Inherited from RasterImage.)
Public methodGetDefaultRawData(Rectangle, IPartialRawDataLoader, RawDataSettings)
Gets the default raw data array using partial pixel loader.
(Inherited from RasterImage.)
Protected methodGetFitRectangle(Rectangle)
Gets rectangle which fits the current image.
(Inherited from Image.)
Protected methodGetFitRectangle(Rectangle, Int32)
Gets rectangle which fits the current bitmap taking into account the pixels passed. The passed pixels array count should be equal to the fitting rectangle size.
(Inherited from Image.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetPixel
Gets an image pixel.
(Inherited from RasterImage.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodGrayscale
Transformation of an image to its grayscale representation
(Overrides RasterImageGrayscale.)
Public methodLoadArgb32Pixels
Loads 32-bit ARGB pixels.
(Inherited from RasterImage.)
Public methodLoadCmykPixels
Loads pixels in CMYK format.
(Inherited from RasterImage.)
Public methodLoadPartialArgb32Pixels
Loads 32-bit ARGB pixels partially by packs.
(Inherited from RasterImage.)
Public methodLoadPartialPixels
Loads pixels partially by packs.
(Inherited from RasterImage.)
Public methodLoadPixels
Loads pixels.
(Inherited from RasterImage.)
Protected methodLoadPixelsInternal
Loads pixels (format specific method).
(Inherited from RasterImage.)
Public methodLoadRawData
Loads raw data.
(Inherited from RasterImage.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnCached
Called when data is cached and all related resources may be de-allocated.
Protected methodOnDataStreamContainerChanging
Called when data stream container is changing.
(Inherited from DataStreamSupporter.)
Protected methodOnPaletteChanged
Called when palette is changed.
(Overrides ImageOnPaletteChanged(IColorPalette, IColorPalette).)
Protected methodOnPaletteChanging
Called when palette is changing.
(Inherited from Image.)
Public methodReadScanLine
Reads the whole scan line by the specified scan line index.
(Inherited from RasterImage.)
Public methodReadScanLineArgb
Reads the whole scan line by the specified scan line index.
(Inherited from RasterImage.)
Protected methodReleaseContents
Releases the contents of image - all entities, objects, etc, so it won't hold any references so memory could be collected
(Inherited from Image.)
Protected methodReleaseManagedResources
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
(Inherited from RasterImage.)
Protected methodReleaseUnmanagedResources
Releases the unmanaged resources. Make sure no managed resources are released here, since they may have been already released.
(Inherited from DisposableObject.)
Public methodResize(Int32, Int32, ImageResizeSettings)
Resizes the image.
(Overrides RasterImageResize(Int32, Int32, ImageResizeSettings).)
Public methodResize(Int32, Int32, ResizeType)
Resizes the image.
(Overrides RasterImageResize(Int32, Int32, ResizeType).)
Public methodRotate
Rotate image around the center.
(Overrides RasterImageRotate(Single, Boolean, Color).)
Public methodCode exampleSave
Saves the image data to the underlying stream.
(Inherited from Image.)
Public methodSave(Stream)
Saves the object's data to the specified stream.
(Inherited from DataStreamSupporter.)
Public methodSave(String)
Saves the object's data to the specified file location.
(Inherited from DataStreamSupporter.)
Public methodSave(String, Boolean)
Saves the object's data to the specified file location.
(Inherited from DataStreamSupporter.)
Public methodCode exampleSave(Stream, ImageOptionsBase)
Saves the image's data to the specified stream in the specified file format according to save options.
(Inherited from Image.)
Public methodCode exampleSave(String, ImageOptionsBase)
Saves the object's data to the specified file location in the specified file format according to save options.
(Inherited from Image.)
Public methodSaveArgb32Pixels
Saves the 32-bit ARGB pixels.
(Inherited from RasterImage.)
Public methodSaveCmykPixels
Saves the pixels.
(Inherited from RasterImage.)
Protected methodSaveData
Saves the data.
(Inherited from DataStreamSupporter.)
Public methodSavePixels
Saves the pixels.
(Inherited from RasterImage.)
Protected methodSavePixelsInternal
Saves pixels (format specific method).
(Overrides RasterImageSavePixelsInternal(Rectangle, Int32).)
Public methodSaveRawData
Saves the raw data.
(Inherited from RasterImage.)
Public methodSetArgb32Pixel
Sets an image 32-bit ARGB pixel for the specified position.
(Inherited from RasterImage.)
Public methodSetPalette
Sets the image palette.
(Inherited from RasterImage.)
Public methodSetPixel
Sets an image pixel for the specified position.
(Inherited from RasterImage.)
Public methodSetResolution
Sets the resolution for this RasterImage.
(Inherited from RasterImage.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUpdateDimensions
Updates the image dimensions.
Protected methodVerifyNotDisposed
Verifies that the current instance is not disposed.
(Inherited from DisposableObject.)
Public methodWriteScanLine(Int32, Color)
Writes the whole scan line to the specified scan line index.
(Inherited from RasterImage.)
Public methodWriteScanLine(Int32, Int32)
Writes the whole scan line to the specified scan line index.
(Inherited from RasterImage.)
Fields
  NameDescription
Protected fieldloadOptions
Options this image was loaded with.
(Inherited from Image.)
Protected fieldTimeout
The timeout to wait for synchronization
(Inherited from DataStreamSupporter.)
Protected fieldunitType
Unit type of an image.
(Inherited from Image.)
See Also