|
OpenEnroth 0259030
|
#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 |
| int | width () const |
| int | height () const |
| Sizei | size () const |
| Recti | geometry () const |
| std::span< T > | operator[] (size_t y) |
| std::span< const T > | operator[] (size_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 (int width, int height) |
| static Image | uninitialized (Sizei size) |
| static Image | solid (T color, int width, int height) |
| static Image | solid (T color, Sizei size) |
| static Image | copy (const T *pixels, int width, int height) |
| static Image | copy (const T *pixels, Sizei size) |
| static Image | copy (const Image &other) |
Additional Inherited Members | |
Protected Attributes inherited from detail::ImageBase< T, std::unique_ptr< T, FreeDeleter > > | |
| int | _width |
| int | _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.
| pixels | Pixel buffer to copy. |
| width | Pixel buffer width. |
| height | Pixel buffer height. |
Image containing a copy of the provided pixel buffer.
|
inline |
Creates a solid-filled image of given size.
| color | Color to use to fill the image. |
| width | Required image width. |
| height | Required image height. |
Constructs an uninitialized image of given size.
| width | Required image width. |
| height | Required image height. |