Accept bytes + offset in image.setPixels (resolve #991)

This commit is contained in:
Joshua Granick
2017-05-31 16:51:37 -07:00
parent 3475693c02
commit 2f93dfc432
7 changed files with 20 additions and 15 deletions

View File

@@ -31,7 +31,7 @@ namespace lime {
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, Bytes* bytes, PixelFormat format);
static void SetPixels (Image* image, Rectangle* rect, Bytes* bytes, int offset, PixelFormat format);
static int Threshold (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, int operation, int32_t threshold, int32_t color, int32_t mask, bool copySource);
static void UnmultiplyAlpha (Image* image);