Non-owning read-only image representation of some format.
#include <AUI/Image/AImageView.h>
◆ buffer()#
- Returns
- Raw image pixel data.
◆ bytesPerPixel()#
| std::uint8_t AImageView::bytesPerPixel |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ cropped()#
| AImage AImageView::cropped |
( |
glm::uvec2 | position, |
|
|
glm::uvec2 | size ) const |
|
nodiscard |
- Parameters
-
| position | offset |
| size | size of new image |
◆ format()#
- Returns
- Image pixel format.
◆ get()#
| Color AImageView::get |
( |
glm::uvec2 | position | ) |
const |
|
nodiscardnoexcept |
- Parameters
-
- Returns
- color of specified pixel
This is a universal function that basically allows you to don't care about underlying image format representation. For performance critical code you may want to use visit method.
- Note
- Specifying position out of image range causes assertion fail in debug or undefined behaviour.
◆ height()#
| unsigned AImageView::height |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ rawDataAt()#
| const char & AImageView::rawDataAt |
( |
glm::uvec2 | position | ) |
const |
|
inlinenodiscardnoexcept |
- Parameters
-
- Returns
- reference to raw pixel data
- Note
- Specifying position out of image range causes assertion fail in debug or undefined behaviour.
◆ size()#
| glm::uvec2 AImageView::size |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ width()#
| unsigned AImageView::width |
( |
| ) |
const |
|
inlinenodiscardnoexcept |