Add JPEG and PNG decodeBytes/decodeFile, with support for skipping imageBuffer.data
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user