OpenEnroth 73e68f7
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, ssize_t width, ssize_t height)
 
 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
 
ssize_t width () const
 
ssize_t height () const
 
Sizei size () const
 
std::span< const T > operator[] (ssize_t y)
 
std::span< const const T > operator[] (ssize_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 > >
ssize_t _width
 
ssize_t _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/3]

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

◆ ImageView() [2/3]

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

◆ ImageView() [3/3]

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

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