Low Level API: Adapts grab result to Pylon::IImage. More...
#include <pylon/ResultImage.h>
Public Member Functions | |
CGrabResultImageT (GrabResultT grabResult, bool isUnique) | |
Creates a grab result image object. More... | |
virtual | ~CGrabResultImageT () |
Destroys a grab result image object. | |
virtual bool | IsValid () const |
Can be used to check whether an image is valid. More... | |
virtual EPixelType | GetPixelType () const |
Get the current pixel type. More... | |
virtual uint32_t | GetWidth () const |
Get the current number of columns in pixels. More... | |
virtual uint32_t | GetHeight () const |
Get the current number of rows. More... | |
virtual size_t | GetPaddingX () const |
Get the number of extra data bytes at the end of each row. More... | |
virtual EImageOrientation | GetOrientation () const |
Get the vertical orientation of the image in memory. More... | |
virtual void * | GetBuffer () |
Get the pointer to the buffer. More... | |
virtual const void * | GetBuffer () const |
Get the pointer to the buffer containing the image. More... | |
virtual size_t | GetImageSize () const |
Get the size of the image in bytes. More... | |
virtual bool | IsUnique () const |
Indicates that the referenced buffer is only referenced by this image. More... | |
virtual bool | GetStride (size_t &strideBytes) const |
Get the stride in bytes. More... | |
Protected Attributes | |
GrabResultT | m_grabResult |
The grab result that is adapted to IImage. | |
bool | m_isUnique |
User provided info whether the buffer is referenced only by this adapter. | |
Low Level API: Adapts grab result to Pylon::IImage.
|
inline |
Creates a grab result image object.
[in] | grabResult | A grab result. |
[in] | isUnique | User provided info whether the buffer is referenced only by this grab result. |
|
inlinevirtual |
Get the pointer to the buffer.
Implements Pylon::IImage.
|
inlinevirtual |
Get the pointer to the buffer containing the image.
The buffer is at least as large as the value returned by GetImageSize().
Implements Pylon::IImage.
|
inlinevirtual |
Get the current number of rows.
Implements Pylon::IImage.
|
inlinevirtual |
Get the size of the image in bytes.
Implements Pylon::IImage.
|
inlinevirtual |
Get the vertical orientation of the image in memory.
Implements Pylon::IImage.
|
inlinevirtual |
Get the number of extra data bytes at the end of each row.
Implements Pylon::IImage.
|
inlinevirtual |
Get the current pixel type.
Implements Pylon::IImage.
|
inlinevirtual |
Get the stride in bytes.
The stride in bytes can not be computed for packed image format when the stride is not byte aligned. See also Pylon::IsPacked(). The stride in bytes can not be computed if the image is invalid.
[out] | strideBytes | The stride in byte if it can be computed. |
Implements Pylon::IImage.
|
inlinevirtual |
Get the current number of columns in pixels.
Implements Pylon::IImage.
|
inlinevirtual |
Indicates that the referenced buffer is only referenced by this image.
Implements Pylon::IImage.
|
inlinevirtual |
Can be used to check whether an image is valid.
Implements Pylon::IImage.