Icon class for handling image icons in Diretta.
More...
#include <Icon.hpp>
|
| | Icon (bool m) |
| | Constructor to initialize the Icon.
|
| |
|
const Pixel * | data () const |
| |
|
Pixel * | data () |
| |
|
std::size_t | size () const |
| | Get the number of pixels in the icon.
|
| |
|
void | set (std::uint16_t w, ACQUA::BufferCS_const img) |
| | Set the icon data from a buffer.
|
| |
|
void | set (std::uint16_t w, const std::vector< Pixel > &img) |
| | Set the icon data from a vector of pixels.
|
| |
|
void | clear () |
| | Clear the icon data and reset its properties.
|
| |
|
bool | empty () const |
| | Check if the icon is empty.
|
| |
|
bool | mono () const |
| | Check if the icon is monochrome.
|
| |
|
std::uint16_t | get_width () const |
| | Get the width of the icon.
|
| |
|
std::uint16_t | get_height () const |
| | Get the height of the icon.
|
| |
|
void | resize (uint16_t w, uint16_t h, bool m) |
| | Resize the icon to the specified width and height, setting monochrome flag.
|
| |
Icon class for handling image icons in Diretta.
◆ Icon()
| DIRETTA::Icon::Icon |
( |
bool | m | ) |
|
|
inline |
Constructor to initialize the Icon.
- Parameters
-
| m | true for monochrome, false for color |
The documentation for this class was generated from the following file: