39 static std::shared_ptr<WXImage>
fromFile(
const std::string &fileName);
45 static std::shared_ptr<WXImage>
fromEncodedData(
const uint8_t *data,
size_t size);
51 static std::shared_ptr<WXImage>
fromColor(
int width,
int height,
52 uint8_t r, uint8_t g, uint8_t b);
58 static std::shared_ptr<WXImage>
fromBuffer(
int width,
int height,
59 const uint8_t *rgbData);
65 static std::shared_ptr<WXImage>
fromRGBAData(
int width,
int height,
66 const uint8_t *rgbaData);
88 uint8_t r, uint8_t g, uint8_t b);
94 const uint8_t *rgbData);
100 const uint8_t *rgbaData);
109 virtual void toFile(
const std::string &fileName);
118 const std::string &imgType );
Definition: wx_image.h:15
static WXImage * fromColor2(int width, int height, uint8_t r, uint8_t g, uint8_t b)
virtual void toEncodedData(std::string &encodedData, const std::string &imgType)
static WXImage * fromEncodedData2(const uint8_t *data, size_t size)
DataFormat
Definition: wx_image.h:18
@ ALPHA8
Definition: wx_image.h:29
@ RGBA
Definition: wx_image.h:26
static WXImage * fromBuffer2(int width, int height, const uint8_t *rgbData)
static std::shared_ptr< WXImage > fromImage(WXImage *other)
virtual DataFormat dataFormat()
static std::shared_ptr< WXImage > fromFile(const std::string &fileName)
static std::shared_ptr< WXImage > fromBuffer(int width, int height, const uint8_t *rgbData)
static WXImage * fromRGBAData2(int width, int height, const uint8_t *rgbaData)
static std::shared_ptr< WXImage > fromColor(int width, int height, uint8_t r, uint8_t g, uint8_t b)
virtual void toFile(const std::string &fileName)
static std::shared_ptr< WXImage > fromEncodedData(const uint8_t *data, size_t size)
static std::shared_ptr< WXImage > fromRGBAData(int width, int height, const uint8_t *rgbaData)
static WXImage * fromFile2(const std::string &fileName)