Add native JPEG/PNG encoding
This commit is contained in:
@@ -15,6 +15,7 @@ namespace lime {
|
||||
public:
|
||||
|
||||
ImageBuffer ();
|
||||
ImageBuffer (value imageBuffer);
|
||||
~ImageBuffer ();
|
||||
|
||||
void Blit (const unsigned char *data, int x, int y, int width, int height);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
|
||||
#include <graphics/ImageBuffer.h>
|
||||
#include <utils/ByteArray.h>
|
||||
#include <utils/Resource.h>
|
||||
|
||||
|
||||
@@ -15,6 +16,7 @@ namespace lime {
|
||||
public:
|
||||
|
||||
static bool Decode (Resource *resource, ImageBuffer *imageBuffer);
|
||||
static bool Encode (ImageBuffer *imageBuffer, ByteArray *bytes, int quality);
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
|
||||
#include <graphics/ImageBuffer.h>
|
||||
#include <utils/ByteArray.h>
|
||||
#include <utils/Resource.h>
|
||||
|
||||
|
||||
@@ -15,6 +16,7 @@ namespace lime {
|
||||
public:
|
||||
|
||||
static bool Decode (Resource *resource, ImageBuffer *imageBuffer);
|
||||
static bool Encode (ImageBuffer *imageBuffer, ByteArray *bytes);
|
||||
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user