|
| | Buffer () |
| | Standard constructor. More...
|
| |
| | Buffer (int _width, int _height) |
| | Constructor with automatic resize. More...
|
| |
| void | put (int _x, int _y, const pixel_type &_pixel) |
| | Write pixel value to position (x,y) More...
|
| |
| void | put (size_t _offset, const pixel_type &_pixel) |
| | Write pixel value to offset (= x * width + y) More...
|
| |
| pixel_type & | operator() (int _x, int _y) |
| | Return pixel on position (x,y) More...
|
| |
| pixel_type const & | operator() (int _x, int _y) const |
| | Return pixel on position (x,y) (const version) More...
|
| |
| pixel_type & | operator() (size_t _offset) |
| | Return pixel on offset (= x * width + y) More...
|
| |
| pixel_type const & | operator() (size_t _offset) const |
| | Return pixel on offset (= x * width + y) (const version) More...
|
| |
| pixel_type & | operator[] (size_t _offset) |
| | Subscript operator for accessing elements by index. More...
|
| |
| pixel_type const & | operator[] (size_t _offset) const |
| | Subscript operator for accessing elements by index (const version) More...
|
| |
| pixel_type & | pixel (int _x, int _y) |
| | Return pixel on position (x,y) More...
|
| |
| Buffer | cropRect (QRect const &_rect) const |
| |
| pixel_type const & | pixel (int _x, int _y) const |
| | Return pixel on position (x,y) (const version) More...
|
| |
| pixel_type & | pixel (size_t _offset) |
| | Return pixel on offset (= x * width + y) More...
|
| |
| pixel_type const & | pixel (size_t _offset) const |
| | Return pixel on offset (= x * width + y) (const version) More...
|
| |
| int | width () const |
| | Return width of the buffer. More...
|
| |
| int | height () const |
| | Return height of the buffer. More...
|
| |
| data_type const & | data () const |
| | Return const reference to data. More...
|
| |
| void | clear () |
| | Clear buffer with black color. More...
|
| |
| void | clear (const pixel_type &_pixel) |
| | Clear buffer with specific pixel. More...
|
| |
| bool | empty () const |
| | Returns true if width and height are zero. More...
|
| |
| size_t | size () const |
| | Returns size of buffer (= width * height) More...
|
| |
| void | resize (int _width, int _height) |
| | Resize buffer to given width and height. More...
|
| |
| QImage | toQImage () const |
| | Convert buffer to QImage. More...
|
| |
| void * | ptr () |
| | Return void pointer to data. More...
|
| |
| void const * | ptr () const |
| | Return void pointer to data (const version) More...
|
| |
| void | toStream (QDataStream &_os) const |
| | Write blend mask to stream. More...
|
| |
| void | fromStream (QDataStream &_is) |
| | Read blend mask from stream. More...
|
| |
template<typename T>
struct omni::Buffer< T >
A buffer holds an w x h pixel array.