28 lines
405 B
C++
28 lines
405 B
C++
#ifndef LIME_GRAPHICS_FORMAT_PNG_H
|
|
#define LIME_GRAPHICS_FORMAT_PNG_H
|
|
|
|
|
|
#include <graphics/ImageBuffer.h>
|
|
#include <utils/ByteArray.h>
|
|
#include <utils/Resource.h>
|
|
|
|
|
|
namespace lime {
|
|
|
|
|
|
class PNG {
|
|
|
|
|
|
public:
|
|
|
|
static bool Decode (Resource *resource, ImageBuffer *imageBuffer, bool decodeData = true);
|
|
static bool Encode (ImageBuffer *imageBuffer, ByteArray *bytes);
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
#endif |