RasterImage
Contents
[
Hide
]RasterImage class
Represents a raster image supporting raster graphics operations.
public abstract class RasterImage : Image, IRasterImageArgb32PixelLoader
Properties
Name | Description |
---|---|
abstract BitsPerPixel { get; } | Gets the image bits per pixel count. |
Bounds { get; } | Gets the image bounds. |
Container { get; } | Gets the Image container. |
DataStreamContainer { get; } | |
Disposed { get; } | |
virtual HasAlpha { get; } | Gets a value indicating whether this instance has alpha. |
virtual HasTransparentColor { get; set; } | Gets a value indicating whether image has transparent color. |
abstract Height { get; } | Gets the image height. |
virtual HorizontalResolution { get; set; } | Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage . |
abstract IsCached { get; } | |
IsRawDataAvailable { get; } | Gets a value indicating whether raw data loading is available. |
Palette { get; set; } | Gets or sets the color palette. |
RawCustomColorConverter { get; set; } | Gets or sets the custom color converter |
virtual RawDataFormat { get; } | Gets the raw data format. |
RawDataSettings { get; } | Gets the current raw data settings. Note when using these settings the data loads without conversion. |
RawFallbackIndex { get; set; } | Gets or sets the fallback index to use when palette index is out of bounds |
RawIndexedColorConverter { get; set; } | Gets or sets the indexed color converter |
virtual RawLineSize { get; } | Gets the raw line size in bytes. |
Size { get; } | Gets the image size. |
virtual TransparentColor { get; set; } | Gets the image transparent color. |
virtual UnitlessDefaultUnitType { get; } | Assumed unit type when UnitType is set to Unitless |
UnitType { get; } | Gets current unit type. |
virtual VerticalResolution { get; set; } | Gets or sets the vertical resolution, in pixels per inch, of this RasterImage . |
abstract Width { get; } | Gets the image width. |
virtual XmpData { get; set; } | Gets or sets the XMP metadata. |
Methods
Name | Description |
---|---|
abstract AdjustBrightness(int) | Adjust of a brightness for image. |
abstract AdjustContrast(float) | Image contrasting |
abstract AdjustGamma(float) | Gamma-correction of an image. |
abstract AdjustGamma(float, float, float) | Gamma-correction of an image. |
abstract BinarizeBradley(double) | Binarization of an image using Bradley’s adaptive thresholding algorithm using the integral image thresholding |
abstract BinarizeFixed(byte) | Binarization of an image with predefined threshold |
abstract BinarizeOtsu() | Binarization of an image with Otsu thresholding |
abstract CacheData() | |
CanSave(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. |
abstract Crop(Rectangle) | Cropping the image. |
virtual Crop(int, int, int, int) | Crop image with shifts. |
Dispose() | |
Dither(DitheringMethod, int) | Performs dithering on the current image. |
abstract Dither(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. |
virtual Filter(Rectangle, FilterOptionsBase) | Filters the specified rectangle. |
GetArgb32Pixel(int, int) | Gets an image 32-bit ARGB pixel. |
GetDefaultArgb32Pixels(Rectangle) | Gets the default 32-bit ARGB pixels array. |
GetDefaultPixels(Rectangle, IPartialArgb32PixelLoader) | Gets the default pixels array using partial pixel loader. |
GetDefaultRawData(Rectangle, RawDataSettings) | Gets the default raw data array. |
GetDefaultRawData(Rectangle, IPartialRawDataLoader, RawDataSettings) | Gets the default raw data array using partial pixel loader. |
GetPixel(int, int) | Gets an image pixel. |
virtual GetStrings() | Gets all string values from image. |
abstract Grayscale() | Transformation of an image to its grayscale representation |
LoadArgb32Pixels(Rectangle) | Loads 32-bit ARGB pixels. |
LoadCmykPixels(Rectangle) | Loads pixels in CMYK format. |
LoadPartialArgb32Pixels(Rectangle, IPartialArgb32PixelLoader) | Loads 32-bit ARGB pixels partially by packs. |
LoadPartialPixels(Rectangle, IPartialPixelLoader) | Loads pixels partially by packs. |
LoadPixels(Rectangle) | Loads pixels. |
LoadRawData(Rectangle, RawDataSettings, IPartialRawDataLoader) | Loads raw data. |
ReadScanLine(int) | Reads the whole scan line by the specified scan line index. |
ReadScanLineArgb(int) | Reads the whole scan line by the specified scan line index. |
abstract Resize(int, int, ImageResizeSettings) | Resizes the image. |
abstract Resize(int, int, ResizeType) | Resizes the image. |
abstract Rotate(float, bool, Color) | Rotate image around the center. |
Save() | Saves the image data to the underlying stream. |
Save(Stream) | |
virtual Save(string) | |
Save(Stream, ImageOptionsBase) | Saves the image’s data to the specified stream in the specified file format according to save options. |
virtual Save(string, bool) | |
virtual Save(string, ImageOptionsBase) | Saves the object’s data to the specified file location in the specified file format according to save options. |
SaveArgb32Pixels(Rectangle, int[]) | Saves the 32-bit ARGB pixels. |
SaveCmykPixels(Rectangle, CmykColor[]) | Saves the pixels. |
SavePixels(Rectangle, Color[]) | Saves the pixels. |
SaveRawData(byte[], int, Rectangle, RawDataSettings) | Saves the raw data. |
SetArgb32Pixel(int, int, int) | Sets an image 32-bit ARGB pixel for the specified position. |
virtual SetPalette(IColorPalette, bool) | Sets the image palette. |
SetPixel(int, int, Color) | Sets an image pixel for the specified position. |
virtual SetResolution(double, double) | Sets the resolution for this RasterImage . |
WriteScanLine(int, Color[]) | Writes the whole scan line to the specified scan line index. |
WriteScanLine(int, int[]) | Writes the whole scan line to the specified scan line index. |
See Also
- class Image
- interface IRasterImageArgb32PixelLoader
- namespace Aspose.CAD
- assembly Aspose.CAD