FreeRDP-WebConnect WebSockets gateway  1.0.0.167
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
wsgate::Png Class Reference

This class implements a simple PNG generator for generating in-memory cursor images. More...

#include <Png.hpp>

List of all members.

Public Member Functions

std::string GenerateFromARGB (int width, int height, uint8_t *data)
 Generates a cursor image.

Detailed Description

This class implements a simple PNG generator for generating in-memory cursor images.

Definition at line 35 of file Png.hpp.


Member Function Documentation

std::string wsgate::Png::GenerateFromARGB ( int  width,
int  height,
uint8_t *  data 
)

Generates a cursor image.

Parameters:
widthThe width of the image in pixels.
heightThe width of the image in pixels.
dataAn array of bytes, defining the image data in ARGB format.
Returns:
An STL string, containing the PNG-encoded image.

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