Class Image
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Image stores image data and is used to represent an image in memory.
Image provides access to raw data as a byte array, and also provides interfaces for accessing information such as width/height.
In all versions of EasyAR Sense, you can access image data.
On iOS, you can access it like this
::
#import
public class Image : RefBase, IDisposable
- Inheritance
-
Image
- Implements
- Inherited Members
Methods
Clone()
public Image Clone()
buffer()
Returns the data buffer in the image. The `Buffer`_ API can be used to access internal data. The contents of the obtained `Buffer`_ should not be modified, because they may be used in other threads.
public virtual Buffer buffer()
create(Buffer, PixelFormat, int, int, int, int)
public static Image create(Buffer buffer, PixelFormat format, int width, int height, int pixelWidth, int pixelHeight)
Parameters
bufferformatwidthheightpixelWidthpixelHeight
format()
Returns the image format.
public virtual PixelFormat format()
height()
Returns the image height. There will be pixelHeight - height pixels of padding below the image data.
public virtual int height()
pixelHeight()
Returns the pixel height used when encoding the image.
public virtual int pixelHeight()
pixelWidth()
Returns the pixel width used when encoding the image.
public virtual int pixelWidth()
width()
Returns the image width. There will be pixelWidth - width pixels of padding on the right side of the image data.
public virtual int width()