More work on pixel operations
This commit is contained in:
@@ -22,7 +22,7 @@ namespace lime {
|
||||
|
||||
static void ColorTransform (Image* image, Rectangle* rect, ColorMatrix* ColorMatrix);
|
||||
static void CopyChannel (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, int srcChannel, int destChannel);
|
||||
static void CopyPixels (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, bool mergeAlpha);
|
||||
static void CopyPixels (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, Image* alphaImage, Vector2* alphaPoint, bool mergeAlpha);
|
||||
static void FillRect (Image* image, Rectangle* rect, int color);
|
||||
static void FloodFill (Image* image, int x, int y, int color);
|
||||
static void GetPixels (Image* image, Rectangle* rect, PixelFormat format, Bytes* pixels);
|
||||
|
||||
@@ -189,6 +189,13 @@ namespace lime {
|
||||
}
|
||||
|
||||
|
||||
inline bool operator == (RGBA& rgba) {
|
||||
|
||||
return (a == rgba.a && r == rgba.r && g == rgba.g && b == rgba.b);
|
||||
|
||||
}
|
||||
|
||||
|
||||
unsigned char r;
|
||||
unsigned char g;
|
||||
unsigned char b;
|
||||
|
||||
Reference in New Issue
Block a user