Click or drag to resize
REImage Class
This class defines a general raster image.
Inheritance Hierarchy
SystemObject
  RasterEdge.Imaging.BasicBaseImage
    RasterEdge.Imaging.Raster.CoreREImage

Namespace: RasterEdge.Imaging.Raster.Core
Assembly: RasterEdge.Imaging.Basic (in RasterEdge.Imaging.Basic.dll) Version: 9.8.7.60526 (9.8.7.60526)
Syntax
public class REImage : BaseImage

The REImage type exposes the following members.

Constructors
  NameDescription
Public methodREImage
Creates an empty image.
Public methodREImage(Byte)
Loads image from byte array.
Public methodREImage(Bitmap)
Construct a raster image from a colored bitmap object Supported PixelFormat: All .net PixelFormat
Public methodREImage(Stream)
Loads image from stream.
Public methodREImage(String)
Loads image from a local file.
Public methodREImage(Byte, ImageType)
Loads image from byte array with image type specified.
Public methodREImage(Byte, Bitmap)
Public methodREImage(Int32, Int32)
Constuct a raster image with specified width and height with default image mode RGB0888 Pixels are set to white
Public methodREImage(Stream, ImageType)
Loads image from stream with image type specified.
Public methodREImage(String, ImageType)
Loads image from file with image type specified.
Public methodREImage(Int32, Int32, ImageMode)
Constuct a raster image with specified width, height and image mode Pixels are set to white
Public methodREImage(Int32, Int32, ImageMode, Byte)
Constuct a raster image with specified width, height, image mode and data bytes
Public methodREImage(Int32, Int32, ImageMode, Byte, RColor)
Constuct a raster image with image width, height, mode, data and color palette. This method currently supports following image modes: ImageMode.Indexed1bpp ImageMode.Indexed4bpp ImageMode.Indexed8bpp ImageMode.GrayScale8bpp ImageMode.RGB555 ImageMode.RGB565 (BGR565) ImageMode.ARGB1555 ImageMode.RGB888 (BGR888, RGB0888, XBGR8888, XRGB8888) ImageMode.ARGB8888 (ABGR8888, BGRA8888, RGBA8888) colorPalette[]: a palette table to mapping index to RGB colors, this is only used for mode Indexed8bpp and must contains 256 entries; otherwise, this parameter would be ignored. data[]: a byte array to contain color data (as same format as Image Data PixelArray in BMP file) caller must provide correct color data; otherwise, unpredictable error may happen
Public methodREImage(Int32, Int32, ImageMode, Byte, RColor, Boolean)
Construct a raster image with given setting. For Internal Use Only.
Public methodREImage(Int32, Int32, ImageMode, Byte, RColor, Boolean, Boolean, Boolean)
Construct a raster image with given setting. For Internal Use Only.
Top
Methods
  NameDescription
Public methodClone
Create a new raster image by cloning this image
(Overrides BaseImageClone.)
Public methodStatic memberConvertImage(ImageType, Stream, Stream)
Converts imge to specified type and saves it to the stream.
Public methodStatic memberConvertImage(ImageType, String, String)
Converts image to specified type and saves it to a local file.
Public methodCountColors
Gets number of colors in the palette for an indexed image. If it is not an indexed image, it would be 0.
Public methodCrop
Public methodStatic memberDetermineImageType(Byte)
Determines the image type of the given data array.
Public methodStatic memberDetermineImageType(Stream)
Determines the image type of the given stream.
Public methodDrawAnnotation
Adds Annotation to this REImage
Public methodDump
For Internal Use Only
Public methodGetBitsPerPixel
Gets bits per pixel.
Public methodGetBytesPerRow
Gets the length of each image row in bytes (including row padding if has).
Public methodGetColorByIndex
Gets color value (in RGB mode) from the color palette by the index
Public methodGetColorPalette
Gets color palette of the image if it is an indexed image; otherwise, return null.
Public methodGetHeight
Get raster image height in pixel
(Overrides BaseImageGetHeight.)
Public methodGetHorizontalResolution
Public methodGetImageData
Loads image row data to buffer with the given row index.
Public methodGetImageDataBytes
Gets image data bytes.
Public methodGetImageMode
Gets image color mode.
Public methodGetResolutionHori
Gets horizontal resolution in pixel per inch.
Public methodGetResolutionHori(Int32)
Gets horizontal resolution in the specified units.
Public methodGetResolutionVert
Gets vertical resolution in pixel per inch.
Public methodGetResolutionVert(Int32)
Gets vertical resolution in the specified units.
Public methodGetVerticalResolution
Public methodGetWidth
Gets raster image width in pixel
(Overrides BaseImageGetWidth.)
Public methodLoadImageFromGraphicScreen
Load image from screen
Public methodLoadImageFromGraphicScreen(Boolean)
Load image from screen
Public methodResize
Public methodSave(ImageType)
Saves image as specified type to byte array.
(Overrides BaseImageSave(ImageType).)
Public methodSave(ImageType, Stream)
Saves image as specified type to stream.
(Overrides BaseImageSave(ImageType, Stream).)
Public methodSave(ImageType, String)
Saves image as specified type to file.
(Overrides BaseImageSave(ImageType, String).)
Public methodSetBitmap
Sets this raster image from a Bitmap object. For Internal Use Only. Try to use Constructor - public REImage(Bitmap) - to load a bitmap object.
(Overrides BaseImageSetBitmap(Bitmap).)
Public methodSetImageData(Byte, Int32, Int32)
Updates pixel data of an image row with the given row index.
Public methodSetImageData(Int32, Int32, Int32)
Updates pixel data of an image row with the given row index.
Public methodToBitmap
Converts this reaster image to a Bitmap object.
(Overrides BaseImageToBitmap.)
Public methodToBitmap(Single, Single)
Converts this raster image to a Bitmap object (in Format32bppArgb) with given width and height
(Overrides BaseImageToBitmap(Single, Single).)
Public methodToString
Gets image information in string format. For Internal Use Only.
(Overrides ObjectToString.)
Public methodUpdateBitsPerPixel
Updates the number of bits for each pixel. Calls this method would also CHANGE image pixel data, pixel mode and other related properties. Valid input values are 1, 4, 8, 24 and 32. For Internal Use Only.
Public methodUpdateDimension
Changes image width and height of the image but unchaged all other properties such as the size of image data bytes. For Internal Use Only.
Public methodUpdateImageDataBytes
Replaces or updates the image data by a specified byte array (with padding bytes after each row); but keep all other properties unchanged. For Internal Use Only.
Public methodUpdateResolution
Change image resolution
(Overrides BaseImageUpdateResolution(Single, Single).)
Top
Fields
  NameDescription
Public fieldOrginalFormat
internal use
Top
Properties
  NameDescription
Public propertyBitmap
Public propertyColorDepth
Gets number of bits per pixel.
Public propertyHeight
Gets height of the image in pixel
Public propertyHoriResolution
Gets horizontal resolution in pixel per inch
Public propertyImageType
Public propertyRowPadding
Row Padding Flag Default true For Internal Use Only. Changes this property may cause the image object data is corrupted.
Public propertyRowStride
Gets the number of bytes in each row of the image data
Public propertyUpsideDown
If your image from different windows coordinate need set it. Or you need upside down image. Upside-down Flag: Default true. Windows Bitmap pixel arranged from left to right, from bottom to top (true) For Internal Use Only. Use this SET method would only update the flag value; but keep the image data unchanged.
Public propertyVertResolution
Gets vertical resolution in pixel per inch
Public propertyWidth
Gets width of the image in pixel
Top
See Also