issue #6: add function isPremultipliedAlpha()

This commit is contained in:
Ming 2010-08-04 06:38:11 +00:00
parent 2262a122d3
commit 2acf23d133
2 changed files with 8 additions and 0 deletions

View File

@ -140,6 +140,13 @@ bool UIImage::isAlphaPixelFormat(void)
return bRet;
}
// now, uphone only support premultiplied data
// so, we only return true
bool UIImage::isPremultipliedAlpha(void)
{
return true;
}
// compute how many bits every color component
int UIImage::CGImageGetBitsPerComponent(void)
{

View File

@ -47,6 +47,7 @@ public:
unsigned int height(void);
bool isAlphaPixelFormat(void);
bool isPremultipliedAlpha(void);
int CGImageGetBitsPerComponent(void);
int CGImageGetColorSpace(void);