|
OpenEnroth 9cf7432
|
#include <Image.h>
Public Member Functions | |
| Image ()=default | |
| Image (const Image &)=delete | |
| Image (Image &&)=default | |
| Image & | operator= (const Image &)=delete |
| Image & | operator= (Image &&)=default |
| Image & | operator= (const Image< std::remove_const_t< T > > &&other) |
Public Member Functions inherited from detail::ImageBase< T, std::unique_ptr< T, FreeDeleter > > | |
| std::span< T > | pixels () |
| std::span< const T > | pixels () const |
| ssize_t | width () const |
| ssize_t | height () const |
| Sizei | size () const |
| Recti | rect () const |
| std::span< T > | operator[] (ssize_t y) |
| std::span< const T > | operator[] (ssize_t y) const |
| T & | operator[] (Pointi point) |
| const T & | operator[] (Pointi point) const |
| operator bool () const | |
| void | reset () |
| void | fill (const T &color) |
Static Public Member Functions | |
| static Image | uninitialized (ssize_t width, ssize_t height) |
| static Image | solid (ssize_t width, ssize_t height, T color) |
| static Image | copy (ssize_t width, ssize_t height, const T *pixels) |
| static Image | copy (const Image &other) |
Additional Inherited Members | |
Protected Attributes inherited from detail::ImageBase< T, std::unique_ptr< T, FreeDeleter > > | |
| ssize_t | _width |
| ssize_t | _height |
| std::unique_ptr< T, FreeDeleter > | _pixels |
Image is a class holding a 2d image, with pixels of type T.
|
inlinestatic |
Creates an image by copying the provided pixel buffer.
| width | Pixel buffer width. |
| height | Pixel buffer height. |
| pixels | Pixel buffer to copy. |
Image containing a copy of the provided pixel buffer.
|
inline |
|
inlinestatic |
Creates a solid-filled image of given size.
| width | Required image width. |
| height | Required image height. |
| color | Color to use to fill the image. |
|
inlinestatic |
Constructs an uninitialized image of given size.
| width | Required image width. |
| height | Required image height. |