loadImage method of the IImagingCoreAPI interface
Loads an image from a byte buffer.
IImagingCoreAPI.Image loadImage(
ByteBuffer imageBuffer,
int imageWidth,
int imageHeight,
int orientation
);
Parameters
- imageBuffer
- The byte buffer to be filled with image data. This is the same buffer that is returned from camera or IImageCaptureService interface. Only NV21 format is currently supported.
- imageWidth
- The width of the image.
- imageHeight
- The height of the image.
- orientation
- The orientation of the image. The orientation is used to rotate the final image when getting the result.
Return values
The method returns the image object implementing the Image inteface.
3/2/2022 12:59:15 PM