![]() |
Imaging Control 4 C++ Library 1.4.0
|
Represents an image type, including pixel format and image dimensions. More...
Public Member Functions | |
| ImageType () noexcept | |
| Constructs an invalid image type. | |
| ImageType (PixelFormat pixel_format) noexcept | |
| Constructs an image type, specifying only a pixel format. | |
| ImageType (PixelFormat pixel_format, uint32_t width, uint32_t height) noexcept | |
| Constructs an image type, specifying pixel format, width and height. | |
| PixelFormat | pixel_format () const noexcept |
| Returns the pixel format of this image type. | |
| uint32_t | width () const noexcept |
| Returns the width of this image type. | |
| uint32_t | height () const noexcept |
| Returns the height of this image type. | |
| bool | operator== (const ImageType &op2) const noexcept |
| Checks whether two image types are equal. | |
| bool | operator!= (const ImageType &op2) const noexcept |
| Checks whether two image types are not equal. | |
| ImageType | with_pixel_format (PixelFormat new_format) const noexcept |
Creates a new image type based on this with a modified pixel format. | |
| ImageType | with_size (uint32_t new_width, uint32_t new_height) const noexcept |
Creates a new image type based on this with modified dimensions. | |
Represents an image type, including pixel format and image dimensions.
Using a partially-specified image type is allowed when defining the buffer format of a sink. The sink will fill the other fields with data from the device automatically.
|
inlinenoexcept |
Constructs an image type, specifying only a pixel format.
Width and height remain unspecified.
| [in] | pixel_format | The pixel format of the image |
|
inlinenoexcept |
Constructs an image type, specifying pixel format, width and height.
| [in] | pixel_format | The pixel format of the image |
| [in] | width | The width of the image in pixels |
| [in] | height | The height of the image in pixels |
|
inlinenoexcept |
Returns the height of this image type.
0 if the height is not specified.
|
inlinenoexcept |
Checks whether two image types are not equal.
| op2 | Other image type |
true if this image type is different from op2, otherwise false.
|
inlinenoexcept |
Checks whether two image types are equal.
| op2 | Other image type |
true if this image type is equal to op2, otherwise false.
|
inlinenoexcept |
Returns the pixel format of this image type.
|
inlinenoexcept |
Returns the width of this image type.
0 if the height is not specified.
|
inlinenoexcept |
Creates a new image type based on this with a modified pixel format.
| new_format | The pixel format to set in the new image type |
this with pixel format new_format
|
inlinenoexcept |
Creates a new image type based on this with modified dimensions.
| new_width | The width to set in the new image type |
| new_height | The height to set in the new image type |
this with dimensions new_width x new_height