LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LIEF::PE::ResourceIcon Class Reference
Inheritance diagram for LIEF::PE::ResourceIcon:
Inheritance graph
[legend]
Collaboration diagram for LIEF::PE::ResourceIcon:
Collaboration graph
[legend]

Public Member Functions

 ResourceIcon (const details::pe_resource_icon_group &header)
 
 ResourceIcon (const details::pe_icon_header &header)
 
 ResourceIcon (const ResourceIcon &)
 
ResourceIconoperator= (const ResourceIcon &)
 
uint32_t id () const
 Id associated with the icon.
 
uint32_t lang () const
 Language associated with the icon.
 
uint32_t sublang () const
 Sub language associated with the icon.
 
uint8_t width () const
 Width in pixels of the image.
 
uint8_t height () const
 Height in pixels of the image.
 
uint8_t color_count () const
 Number of colors in image (0 if >=8bpp)
 
uint8_t reserved () const
 Reserved (must be 0)
 
uint16_t planes () const
 Color Planes.
 
uint16_t bit_count () const
 Bits per pixel.
 
uint32_t size () const
 Size in bytes of the image.
 
span< const uint8_t > pixels () const
 Pixels of the image (as bytes)
 
void id (uint32_t id)
 
void lang (uint32_t lang)
 
void sublang (uint32_t sublang)
 
void width (uint8_t width)
 
void height (uint8_t height)
 
void color_count (uint8_t color_count)
 
void reserved (uint8_t reserved)
 
void planes (uint16_t planes)
 
void bit_count (uint16_t bit_count)
 
void pixels (const std::vector< uint8_t > &pixels)
 
void save (const std::string &filename) const
 Save the icon to the given filename.
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::Object
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 

Additional Inherited Members

- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Member Function Documentation

◆ accept()

void LIEF::PE::ResourceIcon::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ save()

void LIEF::PE::ResourceIcon::save ( const std::string & filename) const

Save the icon to the given filename.

Parameters
[in]filenamePath to file in which the icon will be saved

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