HosrDiretta
Loading...
Searching...
No Matches
DIRETTA::Icon Class Reference

Icon class for handling image icons in Diretta. More...

#include <Icon.hpp>

Classes

union  Pixel
 Pixel structure representing a single pixel in BGRA format. More...
 

Public Member Functions

 Icon (bool m)
 Constructor to initialize the Icon.
 
const Pixeldata () const
 
Pixeldata ()
 
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.
 

Detailed Description

Icon class for handling image icons in Diretta.

Constructor & Destructor Documentation

◆ Icon()

DIRETTA::Icon::Icon ( bool m)
inline

Constructor to initialize the Icon.

Parameters
mtrue for monochrome, false for color

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