WINDEX
Public Member Functions | List of all members
wex::window2file Class Reference

transfer image between window contents and image file in PNG format. More...

#include <window2file.h>

Public Member Functions

void save (gui &w, const std::string &filename)
 Save window contents to image file. More...
 
void save (HWND hw, const std::string &filename)
 
bool draw (gui &w, const std::string &filename)
 Draw png file in window. More...
 

Detailed Description

transfer image between window contents and image file in PNG format.

Add library gdiplus to linker library list

Member Function Documentation

◆ draw()

bool wex::window2file::draw ( gui w,
const std::string &  filename 
)
inline

Draw png file in window.

Parameters
[in]wthe window to draw into
[in]filenameto be drawn
Returns
true if success

◆ save()

void wex::window2file::save ( gui w,
const std::string &  filename 
)
inline

Save window contents to image file.

Parameters
[in]wthe window to save
[in]filenameto save to

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