|
|
CU_API | Image (String const &name, Path const &path, Size const &size, PixelFormat format, ByteArray const &buffer, PixelFormat bufferFormat) |
|
CU_API | Image (String const &name, Path const &path, Size const &size, PixelFormat format=PixelFormat::eR8G8B8A8_UNORM, uint8_t const *buffer=nullptr, PixelFormat bufferFormat=PixelFormat::eR8G8B8A8_UNORM) |
|
CU_API | Image (String const &name, Path const &path, PxBufferBase const &buffer) |
|
CU_API | Image (String const &name, Path const &path, ImageLayout layout, PxBufferBaseUPtr buffer=nullptr) |
|
template<PixelFormat PFSrc, PixelFormat PFDst> |
| Image (String name, Path path, Size const &size, uint8_t const *buffer=nullptr) |
|
| Image (String const &name, Size const &size, PixelFormat format, uint8_t const *buffer, PixelFormat bufferFormat) |
|
| Image (String const &name, Size const &size, PixelFormat format, ByteArray const &buffer, PixelFormat bufferFormat) |
|
| Image (String const &name, PxBufferBase const &buffer) |
|
| Image (String const &name, ImageLayout layout, PxBufferBaseUPtr buffer) |
|
virtual CU_API | ~Image () noexcept=default |
|
|
CU_API | Image (Image const &image) |
|
CU_API | Image (Image &&image) noexcept=default |
|
CU_API Image & | operator= (Image const &image) |
|
CU_API Image & | operator= (Image &&image) noexcept=default |
|
| NamedBaseT (T name) noexcept |
| Constructor.
|
|
T const & | getName () const noexcept |
| Retrieves the name.
|
|
void | rename (T name) noexcept |
|
|
CU_API PxBufferBaseUPtr | updateLayerLayout (Size const &extent, PixelFormat format) |
|
CU_API Image & | resample (Size const &size) |
| Resizes the image to the given resolution.
|
|
CU_API Image | getResampled (Size const &size) const |
| Resizes the image to the given resolution.
|
|
CU_API Image & | fill (RgbColour const &colour) |
| Fills all image pixels with the given colour.
|
|
CU_API Image & | fill (RgbaColour const &colour) |
| Fills all image pixels with the given colour.
|
|
CU_API Image & | setPixel (uint32_t x, uint32_t y, uint8_t const *pixel, PixelFormat format) |
| Fills the wanted pixel with the given buffer.
|
|
CU_API Image & | setPixel (uint32_t x, uint32_t y, RgbColour const &colour) |
| sets the colour of the wanted pixel to the given one
|
|
CU_API Image & | setPixel (uint32_t x, uint32_t y, RgbaColour const &colour) |
| sets the colour of the wanted pixel to the given one
|
|
template<PixelFormat PF> |
Image & | setPixel (uint32_t x, uint32_t y, Pixel< PF > const &pixel) |
| set the wanted pixel to the given pixel
|
|
CU_API Image & | flip () |
| Swaps the image lines.
|
|
uint32_t | getLevels () const noexcept |
|
Size | getDimensions () const noexcept |
|
std::size_t | getSize (uint32_t level=0u) const noexcept |
|
uint32_t | getWidth () const noexcept |
|
uint32_t | getHeight () const noexcept |
|
Path | getPath () const noexcept |
|
ImageLayout::Buffer | getBuffer () |
|
ImageLayout::ConstBuffer | getBuffer () const |
|
ImageLayout::Buffer | getBuffer (uint32_t index) |
|
ImageLayout::ConstBuffer | getBuffer (uint32_t index) const |
|
ImageLayout::Buffer | getBuffer (uint32_t index, uint32_t level) |
|
ImageLayout::ConstBuffer | getBuffer (uint32_t index, uint32_t level) const |
|
bool | hasBuffer () const noexcept |
|
PxBufferBase const & | getPxBuffer () const noexcept |
|
PxBufferBase & | getPxBuffer () noexcept |
|
PxBufferBaseRPtr | getPixels () const noexcept |
|
ImageLayout const & | getLayout () const noexcept |
|
ImageLayout & | getLayout () noexcept |
|
PixelFormat | getPixelFormat () const noexcept |
|
void | initialise () const noexcept |
|
void | cleanup () const noexcept |
|
static CU_API PxBufferBaseUPtr | resample (Size const &size, PxBufferBaseUPtr buffer) |
|