OpenXLSX 1.9.1
Loading...
Searching...
No Matches
OpenXLSX::XLDrawingItem Class Reference

#include <XLDrawing.hpp>

Public Member Functions

 XLDrawingItem ()
 
 XLDrawingItem (const XMLNode &node, XLDocument *parentDoc=nullptr)
 
 XLDrawingItem (const XLDrawingItem &other)=default
 
 XLDrawingItem (XLDrawingItem &&other) noexcept=default
 
 ~XLDrawingItem ()=default
 
XLDrawingItemoperator= (const XLDrawingItem &other)=default
 
XLDrawingItemoperator= (XLDrawingItem &&other) noexcept=default
 
std::string name () const
 
std::string description () const
 
uint32_t row () const
 
uint32_t col () const
 
uint32_t width () const
 
uint32_t height () const
 
std::string relationshipId () const
 
std::vector< uint8_t > imageBinary () const
 Extracts the raw binary data of the image from the Excel zip archive.
 

Constructor & Destructor Documentation

◆ XLDrawingItem() [1/4]

XLDrawingItem::XLDrawingItem ( )

◆ XLDrawingItem() [2/4]

XLDrawingItem::XLDrawingItem ( const XMLNode node,
XLDocument parentDoc = nullptr 
)
explicit

◆ XLDrawingItem() [3/4]

OpenXLSX::XLDrawingItem::XLDrawingItem ( const XLDrawingItem other)
default

◆ XLDrawingItem() [4/4]

OpenXLSX::XLDrawingItem::XLDrawingItem ( XLDrawingItem &&  other)
defaultnoexcept

◆ ~XLDrawingItem()

OpenXLSX::XLDrawingItem::~XLDrawingItem ( )
default

Member Function Documentation

◆ col()

uint32_t XLDrawingItem::col ( ) const

◆ description()

std::string XLDrawingItem::description ( ) const

◆ height()

uint32_t XLDrawingItem::height ( ) const

◆ imageBinary()

std::vector< uint8_t > XLDrawingItem::imageBinary ( ) const

Extracts the raw binary data of the image from the Excel zip archive.

Returns
A byte vector containing the raw image (e.g., PNG, JPEG). Returns empty if the parent document is null.

◆ name()

std::string XLDrawingItem::name ( ) const

◆ operator=() [1/2]

XLDrawingItem & OpenXLSX::XLDrawingItem::operator= ( const XLDrawingItem other)
default

◆ operator=() [2/2]

XLDrawingItem & OpenXLSX::XLDrawingItem::operator= ( XLDrawingItem &&  other)
defaultnoexcept

◆ relationshipId()

std::string XLDrawingItem::relationshipId ( ) const

◆ row()

uint32_t XLDrawingItem::row ( ) const

◆ width()

uint32_t XLDrawingItem::width ( ) const

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