RasterImage Class

Represents a raster image supporting raster graphics operations.
Inheritance Hierarchy

Namespace:  Aspose.CAD
Assembly:  Aspose.CAD (in Aspose.CAD.dll) Version: 20.9
Syntax
public abstract class RasterImage : Image, 
	IRasterImageArgb32PixelLoader, IRasterImageRawDataLoader

The RasterImage type exposes the following members.

Constructors
  NameDescription
Protected methodRasterImage
Initializes a new instance of the RasterImage class.
Protected methodRasterImage(IColorPalette)
Initializes a new instance of the RasterImage 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.
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.
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.
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.
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.
Public propertyIsCached
Gets a value indicating whether object's data is cached currently and no data readig is required.
(Inherited from DataStreamSupporter.)
Public propertyIsRawDataAvailable
Gets a value indicating whether raw data loading is available.
Public propertyCode examplePalette
Gets or sets the color palette.
(Inherited from Image.)
Public propertyRawCustomColorConverter
Gets or sets the custom color converter
Public propertyRawDataFormat
Gets the raw data format.
Public propertyRawDataSettings
Gets the current raw data settings. Note when using these settings the data loads without conversion.
Public propertyRawFallbackIndex
Gets or sets the fallback index to use when palette index is out of bounds
Public propertyRawIndexedColorConverter
Gets or sets the indexed color converter
Public propertyRawLineSize
Gets the raw line size in bytes.
Public propertyCode exampleSize
Gets the image size.
(Inherited from Image.)
Public propertyTransparentColor
Gets the image transparent color.
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.
Public propertyCode exampleWidth
Gets the image width.
(Inherited from Image.)
Public propertyXmpData
Gets or sets the XMP metadata.
Methods
  NameDescription
Public methodAdjustBrightness
Adjust of a brightness for image.
Public methodAdjustContrast
Image contrasting
Public methodAdjustGamma(Single)
Gamma-correction of an image.
Public methodAdjustGamma(Single, Single, Single)
Gamma-correction of an image.
Public methodBinarizeBradley
Binarization of an image using Bradley's adaptive thresholding algorithm using the integral image thresholding
Public methodBinarizeFixed
Binarization of an image with predefined threshold
Public methodBinarizeOtsu
Binarization of an image with Otsu thresholding
Public methodCacheData
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
(Inherited from DataStreamSupporter.)
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.
Public methodCrop(Int32, Int32, Int32, Int32)
Crop image with shifts.
Public methodDispose
Disposes the current instance.
(Inherited from DisposableObject.)
Public methodDither(DitheringMethod, Int32)
Performs dithering on the current image.
Public methodDither(DitheringMethod, Int32, IColorPalette)
Performs dithering on the current image.
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.
Protected methodFinalize
Finalizes an instance of the DisposableObject class.
(Inherited from DisposableObject.)
Public methodGetArgb32Pixel
Gets an image 32-bit ARGB pixel.
Public methodCode exampleGetAttributeValue
Gets attribute value.
(Inherited from Image.)
Public methodGetDefaultArgb32Pixels
Gets the default 32-bit ARGB pixels array.
Public methodGetDefaultPixels
Gets the default pixels array using partial pixel loader.
Public methodGetDefaultRawData(Rectangle, RawDataSettings)
Gets the default raw data array.
Public methodGetDefaultRawData(Rectangle, IPartialRawDataLoader, RawDataSettings)
Gets the default raw data array using partial pixel loader.
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.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodGrayscale
Transformation of an image to its grayscale representation
Public methodLoadArgb32Pixels
Loads 32-bit ARGB pixels.
Public methodLoadCmykPixels
Loads pixels in CMYK format.
Public methodLoadPartialArgb32Pixels
Loads 32-bit ARGB pixels partially by packs.
Public methodLoadPartialPixels
Loads pixels partially by packs.
Public methodLoadPixels
Loads pixels.
Protected methodLoadPixelsInternal
Loads pixels (format specific method).
Public methodLoadRawData
Loads raw data.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDataStreamContainerChanging
Called when data stream container is changing.
(Inherited from DataStreamSupporter.)
Protected methodOnPaletteChanged
Called when palette is changed.
(Inherited from Image.)
Protected methodOnPaletteChanging
Called when palette is changing.
(Inherited from Image.)
Public methodReadScanLine
Reads the whole scan line by the specified scan line index.
Public methodReadScanLineArgb
Reads the whole scan line by the specified scan line index.
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.
(Overrides ImageReleaseManagedResources.)
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.
Public methodResize(Int32, Int32, ResizeType)
Resizes the image.
Public methodRotate
Rotate image around the center.
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.
Public methodSaveCmykPixels
Saves the pixels.
Protected methodSaveData
Saves the data.
(Inherited from DataStreamSupporter.)
Public methodSavePixels
Saves the pixels.
Protected methodSavePixelsInternal
Saves pixels (format specific method).
Public methodSaveRawData
Saves the raw data.
Public methodSetArgb32Pixel
Sets an image 32-bit ARGB pixel for the specified position.
Public methodSetPalette
Sets the image palette.
Public methodSetPixel
Sets an image pixel for the specified position.
Public methodSetResolution
Sets the resolution for this RasterImage.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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.
Public methodWriteScanLine(Int32, Int32)
Writes the whole scan line to the specified scan line index.
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