Add JPEG and PNG decodeBytes/decodeFile, with support for skipping imageBuffer.data

This commit is contained in:
Joshua Granick
2015-06-12 11:30:33 -07:00
parent 172ab1a307
commit 0090c953b7
8 changed files with 244 additions and 55 deletions

View File

@@ -15,7 +15,7 @@ namespace lime {
public:
static bool Decode (Resource *resource, ImageBuffer *imageBuffer);
static bool Decode (Resource *resource, ImageBuffer *imageBuffer, bool decodeData = true);
static bool Encode (ImageBuffer *imageBuffer, ByteArray *bytes, int quality);