diff options
Diffstat (limited to 'app/gfx/skbitmap_operations.h')
-rw-r--r-- | app/gfx/skbitmap_operations.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/gfx/skbitmap_operations.h b/app/gfx/skbitmap_operations.h index d6bb5d3..57a2301 100644 --- a/app/gfx/skbitmap_operations.h +++ b/app/gfx/skbitmap_operations.h @@ -12,6 +12,17 @@ class SkBitmap; class SkBitmapOperations { public: + // Create a bitmap that is an inverted image of the passed in image. + // Each color becomes its inverse in the color wheel. So (255, 15, 0) becomes + // (0, 240, 255). The alpha value is not inverted. + static SkBitmap CreateInvertedBitmap(const SkBitmap& image); + + // Create a bitmap that is a superimposition of the second bitmap on top of + // the first. The provided bitmaps must use have the kARGB_8888_Config config + // and be of equal dimensions. + static SkBitmap CreateSuperimposedBitmap(const SkBitmap& first, + const SkBitmap& second); + // Create a bitmap that is a blend of two others. The alpha argument // specifies the opacity of the second bitmap. The provided bitmaps must // use have the kARGB_8888_Config config and be of equal dimensions. |