|
| constexpr | pixmap (pixmap const &other) |
| | Copy constructor.
|
| |
| constexpr | pixmap (pixmap &&other) noexcept |
| | Move constructor.
|
| |
| constexpr pixmap & | operator= (pixmap const &other) |
| | Copy assignment.
|
| |
| constexpr pixmap & | operator= (pixmap &&other) |
| | Move assignment.
|
| |
| constexpr | pixmap (size_type width, size_type height, allocator_type allocator=allocator_type{}) |
| | Create an pixmap of width and height.
|
| |
|
template<std::convertible_to< value_type > O> |
| constexpr | pixmap (O *hi_restrict data, size_type width, size_type height, size_type stride, allocator_type allocator=allocator_type{}) |
| |
|
template<std::convertible_to< value_type > O> |
| constexpr | pixmap (O *hi_restrict data, size_type width, size_type height, allocator_type allocator=allocator_type{}) noexcept |
| |
|
template<std::convertible_to< value_type > O> |
| constexpr | pixmap (pixmap< O > const &other, allocator_type allocator=allocator_type{}) |
| |
|
template<std::convertible_to< value_type > O> |
| constexpr | pixmap (pixmap_span< O > const &other, allocator_type allocator=allocator_type{}) |
| |
|
template<std::same_as< value_type const > O> |
| constexpr | operator pixmap_span< O > () const noexcept |
| |
|
constexpr allocator_type | get_allocator () const noexcept |
| |
|
constexpr size_type | width () const noexcept |
| |
|
constexpr size_type | height () const noexcept |
| |
| constexpr size_type | size () const noexcept |
| | The number of pixels (width * height) in this image.
|
| |
| constexpr size_type | capacity () const noexcept |
| | The number of pixels of capacity allocated.
|
| |
|
constexpr bool | empty () const noexcept |
| |
|
constexpr pointer | data () noexcept |
| |
|
constexpr const_pointer | data () const noexcept |
| |
|
constexpr interator | begin () noexcept |
| |
|
constexpr const_iterator | begin () const noexcept |
| |
|
constexpr const_iterator | cbegin () const noexcept |
| |
|
constexpr interator | end () noexcept |
| |
|
constexpr const_iterator | end () const noexcept |
| |
|
constexpr const_iterator | cend () const noexcept |
| |
|
constexpr reference | operator() (size_type x, size_type y) noexcept |
| |
|
constexpr const_reference | operator() (size_type x, size_type y) const noexcept |
| |
|
constexpr row_type | operator[] (size_type y) noexcept |
| |
|
constexpr const_row_type | operator[] (size_type y) const noexcept |
| |
|
constexpr auto | rows () noexcept |
| |
|
constexpr auto | rows () const noexcept |
| |
|
constexpr pixmap | subimage (size_type x, size_type y, size_type new_width, size_type new_height, allocator_type allocator) const noexcept |
| |
|
constexpr pixmap | subimage (size_type x, size_type y, size_type new_width, size_type new_height) const noexcept |
| |
|
constexpr void | clear () noexcept |
| |
|
constexpr void | shrink_to_fit () |
| |
template<typename T, typename Allocator = std::allocator<T>>
class hi::v1::pixmap< T, Allocator >
A 2D pixel-based image.
- Template Parameters
-
| T | The pixel format. |
| Allocator | The allocator to use for allocating the array of pixels. |