|
| SkColorInfo ()=default |
| Creates an SkColorInfo with kUnknown_SkColorType, kUnknown_SkAlphaType, and no SkColorSpace. More...
|
|
| SkColorInfo (SkColorType ct, SkAlphaType at, sk_sp< SkColorSpace > cs) |
| Creates SkColorInfo from SkColorType ct, SkAlphaType at, and optionally SkColorSpace cs. More...
|
|
| SkColorInfo (const SkColorInfo &)=default |
|
| SkColorInfo (SkColorInfo &&)=default |
|
SkColorInfo & | operator= (const SkColorInfo &)=default |
|
SkColorInfo & | operator= (SkColorInfo &&)=default |
|
SkColorSpace * | colorSpace () const |
|
sk_sp< SkColorSpace > | refColorSpace () const |
|
SkColorType | colorType () const |
|
SkAlphaType | alphaType () const |
|
bool | isOpaque () const |
|
bool | gammaCloseToSRGB () const |
|
bool | operator== (const SkColorInfo &other) const |
| Does other represent the same color type, alpha type, and color space? More...
|
|
bool | operator!= (const SkColorInfo &other) const |
| Does other represent a different color type, alpha type, or color space? More...
|
|
SkColorInfo | makeAlphaType (SkAlphaType newAlphaType) const |
| Creates SkColorInfo with same SkColorType, SkColorSpace, with SkAlphaType set to newAlphaType. More...
|
|
SkColorInfo | makeColorType (SkColorType newColorType) const |
| Creates new SkColorInfo with same SkAlphaType, SkColorSpace, with SkColorType set to newColorType. More...
|
|
SkColorInfo | makeColorSpace (sk_sp< SkColorSpace > cs) const |
| Creates SkColorInfo with same SkAlphaType, SkColorType, with SkColorSpace set to cs. More...
|
|
int | bytesPerPixel () const |
| Returns number of bytes per pixel required by SkColorType. More...
|
|
int | shiftPerPixel () const |
| Returns bit shift converting row bytes to row pixels. More...
|
|
Describes pixel and encoding. SkImageInfo can be created from SkColorInfo by providing dimensions.
It encodes how pixel bits describe alpha, transparency; color components red, blue, and green; and SkColorSpace, the range and linearity of colors.