#include <SkBitmap.h>
Public Member Functions | |
SkAutoLockColors () | |
SkAutoLockColors (const SkBitmap &bm) | |
SkAutoLockColors (SkColorTable *ctable) | |
~SkAutoLockColors () | |
const SkPMColor * | colors () const |
const SkPMColor * | lockColors (SkColorTable *ctable) |
const SkPMColor * | lockColors (const SkBitmap &bm) |
Helper class that performs the lock/unlockColors calls on a colortable. The destructor will call unlockColors(false) if it has a bitmap's colortable
Definition at line 588 of file SkBitmap.h.
SkAutoLockColors::SkAutoLockColors | ( | ) | [inline] |
Initialize with no bitmap. Call lockColors(bitmap) to lock bitmap's colortable
Definition at line 593 of file SkBitmap.h.
SkAutoLockColors::SkAutoLockColors | ( | const SkBitmap & | bm | ) | [inline, explicit] |
Initialize with bitmap, locking its colortable if present
Definition at line 596 of file SkBitmap.h.
SkAutoLockColors::SkAutoLockColors | ( | SkColorTable * | ctable | ) | [inline, explicit] |
Initialize with a colortable (may be null)
Definition at line 602 of file SkBitmap.h.
SkAutoLockColors::~SkAutoLockColors | ( | ) | [inline] |
Definition at line 606 of file SkBitmap.h.
const SkPMColor* SkAutoLockColors::colors | ( | ) | const [inline] |
Return the currently locked colors, or NULL if no bitmap's colortable is currently locked.
Definition at line 615 of file SkBitmap.h.
Definition at line 629 of file SkBitmap.h.
const SkPMColor* SkAutoLockColors::lockColors | ( | SkColorTable * | ctable | ) | [inline] |
Locks the table and returns is colors (assuming ctable is not null) and unlocks the previous table if one was present
Definition at line 620 of file SkBitmap.h.