RasterCachedImage Class |
Namespace: Aspose.Imaging
The RasterCachedImage type exposes the following members.
Name | Description | |
---|---|---|
![]() | RasterCachedImage |
Initializes a new instance of the RasterCachedImage class.
|
![]() | RasterCachedImage(IColorPalette) |
Initializes a new instance of the RasterCachedImage class.
|
Name | Description | |
---|---|---|
![]() | AutoAdjustPalette |
Gets or sets a value indicating whether automatic adjust palette.
(Inherited from Image.) |
![]() | BackgroundColor |
Gets or sets a value for the background color.
(Inherited from Image.) |
![]() | BitsPerPixel |
Gets the image bits per pixel count.
(Inherited from Image.) |
![]() | Bounds |
Gets the image bounds.
(Inherited from Image.) |
![]() | BufferSizeHint |
Gets or sets the buffer size hint which is defined max allowed size for all internal buffers.
(Inherited from Image.) |
![]() | Container |
Gets the Image container.
(Inherited from Image.) |
![]() | DataLoader |
Gets or sets the data loader.
(Inherited from RasterImage.) |
![]() | DataStreamContainer |
Gets the object's data stream.
(Inherited from DataStreamSupporter.) |
![]() | Disposed |
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.) |
![]() | FileFormat |
Gets a value of file format
(Inherited from Image.) |
![]() ![]() | HasAlpha |
Gets a value indicating whether this instance has alpha.
(Inherited from RasterImage.) |
![]() | HasBackgroundColor |
Gets or sets a value indicating whether image has background color.
(Inherited from Image.) |
![]() | HasTransparentColor |
Gets a value indicating whether image has transparent color.
(Inherited from RasterImage.) |
![]() | Height |
Gets the image height.
(Inherited from Image.) |
![]() ![]() | HorizontalResolution |
Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage.
(Inherited from RasterImage.) |
![]() | ImageOpacity |
Gets opacity of this image.
(Inherited from RasterImage.) |
![]() | InterruptMonitor |
Gets or sets the interrupt monitor.
(Inherited from Image.) |
![]() | IsCached |
Gets a value indicating whether image data is cached currently.
(Overrides DataStreamSupporterIsCached.) |
![]() | IsRawDataAvailable |
Gets a value indicating whether raw data loading is available.
(Inherited from RasterImage.) |
![]() | Palette |
Gets or sets the color palette. The color palette is not used when pixels are represented directly.
(Inherited from Image.) |
![]() ![]() | PremultiplyComponents |
Gets or sets a value indicating whether the image components must be premultiplied.
(Inherited from RasterImage.) |
![]() | RawCustomColorConverter |
Gets or sets the custom color converter
(Inherited from RasterImage.) |
![]() ![]() | RawDataFormat |
Gets the raw data format.
(Inherited from RasterImage.) |
![]() | RawDataSettings |
Gets the current raw data settings. Note when using these settings the data loads without conversion.
(Inherited from RasterImage.) |
![]() | RawFallbackIndex |
Gets or sets the fallback index to use when palette index is out of bounds
(Inherited from RasterImage.) |
![]() | RawIndexedColorConverter |
Gets or sets the indexed color converter
(Inherited from RasterImage.) |
![]() | RawLineSize |
Gets the raw line size in bytes.
(Inherited from RasterImage.) |
![]() ![]() | Size |
Gets the image size.
(Inherited from Image.) |
![]() | TransparentColor |
Gets the image transparent color.
(Inherited from RasterImage.) |
![]() | UpdateXmpData |
Gets or sets a value indicating whether to update the XMP metadata.
(Inherited from RasterImage.) |
![]() | UsePalette |
Gets a value indicating whether the image palette is used.
(Inherited from RasterImage.) |
![]() | UseRawData |
Gets or sets a value indicating whether to use raw data loading when the raw data loading is available.
(Inherited from RasterImage.) |
![]() ![]() | VerticalResolution |
Gets or sets the vertical resolution, in pixels per inch, of this RasterImage.
(Inherited from RasterImage.) |
![]() | Width |
Gets the image width.
(Inherited from Image.) |
![]() | XmpData |
Gets or sets the XMP metadata.
(Inherited from RasterImage.) |
Name | Description | |
---|---|---|
![]() ![]() | AdjustBrightness |
Adjust of a brightness for image.
(Overrides RasterImageAdjustBrightness(Int32).) |
![]() ![]() | AdjustContrast |
Image contrasting
(Overrides RasterImageAdjustContrast(Single).) |
![]() ![]() | AdjustGamma(Single) |
Gamma-correction of an image.
(Overrides RasterImageAdjustGamma(Single).) |
![]() ![]() | AdjustGamma(Single, Single, Single) |
Gamma-correction of an image.
(Overrides RasterImageAdjustGamma(Single, Single, Single).) |
![]() ![]() | BinarizeBradley(Double) |
Binarization of an image using Bradley's adaptive thresholding algorithm using the integral image thresholding
(Overrides RasterImageBinarizeBradley(Double).) |
![]() ![]() | BinarizeBradley(Double, Int32) |
Binarization of an image using Bradley's adaptive thresholding algorithm using the integral image thresholding
(Overrides RasterImageBinarizeBradley(Double, Int32).) |
![]() ![]() | BinarizeFixed |
Binarization of an image with predefined threshold
(Overrides RasterImageBinarizeFixed(Byte).) |
![]() ![]() | BinarizeOtsu |
Binarization of an image with Otsu thresholding
(Overrides RasterImageBinarizeOtsu.) |
![]() ![]() | CacheData |
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
(Overrides DataStreamSupporterCacheData.) |
![]() ![]() | CanSave |
Determines whether image can be saved to the specified file format represented by the passed save options.
(Inherited from Image.) |
![]() ![]() | Crop(Rectangle) |
Cropping the image.
(Overrides RasterImageCrop(Rectangle).) |
![]() ![]() | Crop(Int32, Int32, Int32, Int32) |
Crop image with shifts.
(Inherited from RasterImage.) |
![]() ![]() | Dispose |
Disposes the current instance.
(Inherited from DisposableObject.) |
![]() ![]() | Dither(DitheringMethod, Int32) |
Performs dithering on the current image.
(Inherited from RasterImage.) |
![]() | Dither(DitheringMethod, Int32, IColorPalette) |
Performs dithering on the current image.
(Overrides RasterImageDither(DitheringMethod, Int32, IColorPalette).) |
![]() | DoAfterSave |
Does the after save.
(Inherited from DataStreamSupporter.) |
![]() | DoUseRecursion |
Gets value indicating whether use recursion for synchronization.
(Inherited from RasterImage.) |
![]() | Equals | (Inherited from Object.) |
![]() ![]() | Filter |
Filters the specified rectangle.
(Inherited from RasterImage.) |
![]() | Finalize | (Inherited from DisposableObject.) |
![]() ![]() | GetArgb32Pixel |
Gets an image 32-bit ARGB pixel.
(Inherited from RasterImage.) |
![]() | GetCanNotSaveMessage |
Gets the can not save message.
(Inherited from Image.) |
![]() | GetDefaultArgb32Pixels |
Gets the default 32-bit ARGB pixels array.
(Inherited from RasterImage.) |
![]() | GetDefaultOptions |
Gets the default options.
(Inherited from Image.) |
![]() | GetDefaultPixels |
Gets the default pixels array using partial pixel loader.
(Inherited from RasterImage.) |
![]() | GetDefaultRawData(Rectangle, RawDataSettings) |
Gets the default raw data array.
(Inherited from RasterImage.) |
![]() | GetDefaultRawData(Rectangle, IPartialRawDataLoader, RawDataSettings) |
Gets the default raw data array using partial pixel loader.
(Inherited from RasterImage.) |
![]() | GetFitRectangle(Rectangle) |
Gets rectangle which fits the current image.
(Inherited from Image.) |
![]() | GetFitRectangle(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.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetImage2Export | Obsolete.
Gets the image to export.
(Inherited from Image.) |
![]() | GetModifyDate |
Gets the date and time the resource image was last modified.
(Inherited from RasterImage.) |
![]() | GetOriginalOptions |
Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
Save(String) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the Save(String, ImageOptionsBase) method as the second parameter.
(Inherited from Image.) |
![]() ![]() | GetPixel |
Gets an image pixel.
(Inherited from RasterImage.) |
![]() | GetSkewAngle |
Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning.
(Inherited from RasterImage.) |
![]() | GetType | Gets the type of the current instance. (Inherited from Object.) |
![]() ![]() | Grayscale |
Transformation of an image to its grayscale representation
(Overrides RasterImageGrayscale.) |
![]() ![]() | LoadArgb32Pixels |
Loads 32-bit ARGB pixels.
(Inherited from RasterImage.) |
![]() ![]() | LoadArgb64Pixels |
Loads 64-bit ARGB pixels.
(Inherited from RasterImage.) |
![]() | LoadCmyk32Pixels |
Loads pixels in CMYK format.
(Inherited from RasterImage.) |
![]() | LoadCmykPixels | Obsolete.
Loads pixels in CMYK format.
This method is deprecated. Please use more effective the LoadCmyk32Pixels(Rectangle) method.
(Inherited from RasterImage.) |
![]() ![]() | LoadPartialArgb32Pixels |
Loads 32-bit ARGB pixels partially by packs.
(Inherited from RasterImage.) |
![]() ![]() | LoadPartialPixels |
Loads pixels partially by packs.
(Inherited from RasterImage.) |
![]() ![]() | LoadPixels |
Loads pixels.
(Inherited from RasterImage.) |
![]() ![]() | LoadRawData(Rectangle, RawDataSettings, IPartialRawDataLoader) |
Loads raw data.
(Inherited from RasterImage.) |
![]() | LoadRawData(Rectangle, Rectangle, RawDataSettings, IPartialRawDataLoader) |
Loads raw data.
(Inherited from RasterImage.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | NormalizeAngle |
Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses GetSkewAngle and Rotate(Single) methods.
(Inherited from RasterImage.) |
![]() ![]() | NormalizeAngle(Boolean, Color) |
Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses GetSkewAngle and Rotate(Single, Boolean, Color) methods.
(Inherited from RasterImage.) |
![]() | OnCached |
Called when data is cached and all related resources may be de-allocated.
|
![]() | OnDataStreamContainerChanging |
Called when data stream container is changing.
(Inherited from DataStreamSupporter.) |
![]() | OnPaletteChanged |
Called when palette is changed.
(Overrides ImageOnPaletteChanged(IColorPalette, IColorPalette).) |
![]() | OnPaletteChanging |
Called when palette is changing.
(Inherited from Image.) |
![]() | ReadArgb32ScanLine |
Reads the whole scan line by the specified scan line index.
(Inherited from RasterImage.) |
![]() | ReadScanLine |
Reads the whole scan line by the specified scan line index.
(Inherited from RasterImage.) |
![]() | ReleaseManagedResources |
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
(Inherited from RasterImage.) |
![]() | ReleaseUnmanagedResources |
Releases the unmanaged resources. Make sure no managed resources are released here, since they may have been already released.
(Inherited from DisposableObject.) |
![]() | ReplaceColor(Int32, Byte, Int32) |
Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges.
(Inherited from RasterImage.) |
![]() | ReplaceColor(Color, Byte, Color) |
Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges.
(Inherited from RasterImage.) |
![]() | ReplaceNonTransparentColors(Int32) |
Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one.
(Inherited from RasterImage.) |
![]() | ReplaceNonTransparentColors(Color) |
Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one.
(Inherited from RasterImage.) |
![]() ![]() | Resize(Int32, Int32) |
Resizes the image. The default NearestNeighbourResample is used.
(Inherited from Image.) |
![]() ![]() | Resize(Int32, Int32, ImageResizeSettings) |
Resizes the image.
(Overrides RasterImageResize(Int32, Int32, ImageResizeSettings).) |
![]() ![]() | Resize(Int32, Int32, ResizeType) |
Resizes the image.
(Overrides RasterImageResize(Int32, Int32, ResizeType).) |
![]() | ResizeHeightProportionally(Int32) |
Resizes the height proportionally. The default NearestNeighbourResample is used.
(Inherited from Image.) |
![]() | ResizeHeightProportionally(Int32, ImageResizeSettings) |
Resizes the height proportionally.
(Inherited from Image.) |
![]() ![]() | ResizeHeightProportionally(Int32, ResizeType) |
Resizes the height proportionally.
(Inherited from Image.) |
![]() | ResizeWidthProportionally(Int32) |
Resizes the width proportionally. The default NearestNeighbourResample is used.
(Inherited from Image.) |
![]() | ResizeWidthProportionally(Int32, ImageResizeSettings) |
Resizes the width proportionally.
(Inherited from Image.) |
![]() ![]() | ResizeWidthProportionally(Int32, ResizeType) |
Resizes the width proportionally.
(Inherited from Image.) |
![]() | Rotate(Single) |
Rotate image around the center.
(Inherited from RasterImage.) |
![]() | Rotate(Single, Boolean, Color) |
Rotate image around the center.
(Overrides RasterImageRotate(Single, Boolean, Color).) |
![]() ![]() | RotateFlip |
Rotates, flips, or rotates and flips the image.
(Overrides ImageRotateFlip(RotateFlipType).) |
![]() ![]() | Save |
Saves the image data to the underlying stream.
(Inherited from Image.) |
![]() | Save(Stream) |
Saves the object's data to the specified stream.
(Inherited from DataStreamSupporter.) |
![]() | Save(String) |
Saves the image to the specified file location.
(Inherited from Image.) |
![]() | Save(String, Boolean) |
Saves the object's data to the specified file location.
(Inherited from DataStreamSupporter.) |
![]() ![]() | Save(Stream, ImageOptionsBase) |
Saves the image's data to the specified stream in the specified file format according to save options.
(Inherited from Image.) |
![]() ![]() | Save(String, ImageOptionsBase) |
Saves the object's data to the specified file location in the specified file format according to save options.
(Inherited from Image.) |
![]() ![]() | Save(String, ImageOptionsBase, Rectangle) |
Saves the object's data to the specified file location in the specified file format according to save options.
(Inherited from Image.) |
![]() | Save(Stream, ImageOptionsBase, Rectangle) |
Saves the image's data to the specified stream in the specified file format according to save options.
(Inherited from RasterImage.) |
![]() ![]() | SaveArgb32Pixels |
Saves the 32-bit ARGB pixels.
(Inherited from RasterImage.) |
![]() ![]() | SaveCmyk32Pixels |
Saves the pixels.
(Inherited from RasterImage.) |
![]() | SaveCmykPixels | Obsolete.
Saves the pixels.
This method is deprecated. Please use more effective the SaveCmyk32Pixels(Rectangle, Int32) method.
(Inherited from RasterImage.) |
![]() | SaveData |
Saves the data.
(Inherited from DataStreamSupporter.) |
![]() ![]() | SavePixels |
Saves the pixels.
(Inherited from RasterImage.) |
![]() | SavePixelsInternal |
Saves pixels (format specific method).
(Overrides RasterImageSavePixelsInternal(Rectangle, Int32).) |
![]() | SaveRawData |
Saves the raw data.
(Inherited from RasterImage.) |
![]() ![]() | SetArgb32Pixel |
Sets an image 32-bit ARGB pixel for the specified position.
(Inherited from RasterImage.) |
![]() | SetPalette |
Sets the image palette.
(Inherited from RasterImage.) |
![]() ![]() | SetPixel |
Sets an image pixel for the specified position.
(Inherited from RasterImage.) |
![]() ![]() | SetResolution |
Sets the resolution for this RasterImage.
(Inherited from RasterImage.) |
![]() | ToBitmap |
Converts raster image to the bitmap.
(Inherited from RasterImage.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UpdateDimensions |
Updates the image dimensions.
|
![]() | UpdateMetadata |
Updates the image metadata.
(Inherited from RasterImage.) |
![]() | VerifyNotDisposed |
Verifies that the current instance is not disposed.
(Inherited from DisposableObject.) |
![]() | WriteArgb32ScanLine |
Writes the whole scan line to the specified scan line index.
(Inherited from RasterImage.) |
![]() | WriteScanLine |
Writes the whole scan line to the specified scan line index.
(Inherited from RasterImage.) |
Name | Description | |
---|---|---|
![]() | Timeout |
The timeout to wait for synchronization
(Inherited from DataStreamSupporter.) |
![]() | xmpData |
The XMP metadata
(Inherited from RasterImage.) |
[C#] string dir = "c:\\temp\\"; using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.png")) { Aspose.Imaging.RasterCachedImage rasterImage = (Aspose.Imaging.RasterCachedImage)image; rasterImage.Grayscale(); rasterImage.Save(dir + "sample.Grayscale.png"); }