mirror of https://github.com/axmolengine/axmol.git
issue #6: add function isPremultipliedAlpha()
This commit is contained in:
parent
2262a122d3
commit
2acf23d133
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -47,6 +47,7 @@ public:
|
|||
unsigned int height(void);
|
||||
|
||||
bool isAlphaPixelFormat(void);
|
||||
bool isPremultipliedAlpha(void);
|
||||
|
||||
int CGImageGetBitsPerComponent(void);
|
||||
int CGImageGetColorSpace(void);
|
||||
|
|
Loading…
Reference in New Issue