transfer image between window contents and image file in PNG format.
More...
#include <window2file.h>
|
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...
|
|
transfer image between window contents and image file in PNG format.
Add library gdiplus to linker library list
◆ draw()
bool wex::window2file::draw |
( |
gui & |
w, |
|
|
const std::string & |
filename |
|
) |
| |
|
inline |
Draw png file in window.
- Parameters
-
[in] | w | the window to draw into |
[in] | filename | to 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] | w | the window to save |
[in] | filename | to save to |
The documentation for this class was generated from the following file: