Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
Wrapper around File for PNG files. More...
#include <file.h>
Public Member Functions | |
PNGFile () | |
Construct a new PNGFile object. | |
PNGFile (std::string path) | |
Construct a new PNGFile object. | |
~PNGFile () | |
Destroy the PNGFile object. | |
unsigned int | getWidth () const |
Get the Width of the file. | |
unsigned int | getHeight () const |
Get the Height of the file. | |
const std::string & | getBase64String () const |
Get the Base64 representation of the file. | |
Public Member Functions inherited from File | |
File () | |
Constructs a new File object. | |
File (std::string path) | |
Construct a new File object. | |
~File () | |
Destroy the File object. | |
bool | load () |
Loads the data of the file into ram. | |
const std::string & | getPath () const |
Get the Path object. | |
const char * | getPointer () const |
Get the pointer to the data. | |
int | getSize () const |
Get the size of the file stored. | |
Wrapper around File for PNG files.
PNGFile::PNGFile | ( | ) |
Construct a new PNGFile object.
Constructs an empty file object, really just used for the config or placeholder objects.
PNGFile::PNGFile | ( | std::string | path | ) |
Construct a new PNGFile object.
Internally calls File::load(), then does few calculations for loading data used in the server.
path | The Path of the file |
const std::string & PNGFile::getBase64String | ( | ) | const |
Get the Base64 representation of the file.
Get the Height of the file.