OChess v0.0.2
Programmer's Manual
Embbeded binary resources utilities

How to access to the embbeded binary data. More...

Functions

wxBitmap LoadPNG (std::string icon, wxSize size)
 Load an icon from embedded binary resources and rescale it to a specified size. More...
 
wxBitmap LoadPNG (std::string icon)
 Load an icon from embedded binary resources. More...
 

Detailed Description

How to access to the embbeded binary data.

Binary resources are generated into the binary_data.hpp file using the tools/embbeded.sh script. Here are the various functions used to access to them.

Function Documentation

◆ LoadPNG() [1/2]

wxBitmap LoadPNG ( std::string  icon)

Load an icon from embedded binary resources.

Parameters
icon
Returns
wxBitmap the image or wxNullBitmap if not found

◆ LoadPNG() [2/2]

wxBitmap LoadPNG ( std::string  icon,
wxSize  size 
)

Load an icon from embedded binary resources and rescale it to a specified size.

Parameters
iconThe icon name
sizeScale the icon to the specified size
Returns
wxBitmap