Some work on pixel formats
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
|
||||
#include <hx/CFFI.h>
|
||||
#include <graphics/PixelFormat.h>
|
||||
#include <utils/ByteArray.h>
|
||||
|
||||
|
||||
@@ -24,6 +25,7 @@ namespace lime {
|
||||
|
||||
int bpp;
|
||||
ByteArray *data;
|
||||
PixelFormat format;
|
||||
int height;
|
||||
int width;
|
||||
bool transparent;
|
||||
|
||||
@@ -8,7 +8,8 @@ namespace lime {
|
||||
enum PixelFormat {
|
||||
|
||||
RGBA,
|
||||
ARGB
|
||||
ARGB,
|
||||
BGRA
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace lime {
|
||||
static void Merge (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, int redMultiplier, int greenMultiplier, int blueMultiplier, int alphaMultiplier);
|
||||
static void MultiplyAlpha (Image* image);
|
||||
static void Resize (Image* image, ImageBuffer* buffer, int width, int height);
|
||||
static void SetFormat (Image* image, PixelFormat format);
|
||||
static void SetPixels (Image* image, Rectangle* rect, ByteArray* bytes, PixelFormat format);
|
||||
static void UnmultiplyAlpha (Image* image);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user