diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/images/SkImageRef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/images/SkImageRef.h b/include/images/SkImageRef.h index 9c9896f..8672b25 100644 --- a/include/images/SkImageRef.h +++ b/include/images/SkImageRef.h @@ -57,6 +57,12 @@ public: */ bool getInfo(SkBitmap* bm); + /** Return true if the image can be decoded and is opaque. Calling this + method will decode and set the pixels in the specified bitmap and + set the opaque flag. + */ + bool isOpaque(SkBitmap* bm); + SkImageDecoderFactory* getDecoderFactory() const { return fFactory; } // returns the factory parameter SkImageDecoderFactory* setDecoderFactory(SkImageDecoderFactory*); |