OpenEnroth 2ef3484
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ImageView< T > Class Template Reference

#include <Image.h>

Inheritance diagram for ImageView< T >:
detail::ImageBase< const T, detail::ViewPointer< const T > >

Public Member Functions

 ImageView ()=default
 
 ImageView (const T *pixels, int width, int height)
 
 ImageView (const T *pixels, Sizei size)
 
 ImageView (const Image< T > &image)
 
- Public Member Functions inherited from detail::ImageBase< const T, detail::ViewPointer< const T > >
std::span< const T > pixels ()
 
std::span< const const T > pixels () const
 
int width () const
 
int height () const
 
Sizei size () const
 
Recti geometry () const
 
std::span< const T > operator[] (size_t y)
 
std::span< const const T > operator[] (size_t y) const
 
const T & operator[] (Pointi point)
 
const const T & operator[] (Pointi point) const
 
 operator bool () const
 
void reset ()
 
void fill (const const T &color)
 

Additional Inherited Members

- Protected Attributes inherited from detail::ImageBase< const T, detail::ViewPointer< const T > >
int _width
 
int _height
 
detail::ViewPointer< const T > _pixels
 

Detailed Description

template<class T>
class ImageView< T >

ImageView to Image is what std::string_view is to std::string.

Constructor & Destructor Documentation

◆ ImageView() [1/4]

template<class T >
ImageView< T >::ImageView ( )
default

◆ ImageView() [2/4]

template<class T >
ImageView< T >::ImageView ( const T *  pixels,
int  width,
int  height 
)
inline

◆ ImageView() [3/4]

template<class T >
ImageView< T >::ImageView ( const T *  pixels,
Sizei  size 
)
inline

◆ ImageView() [4/4]

template<class T >
ImageView< T >::ImageView ( const Image< T > &  image)
inline

The documentation for this class was generated from the following file: