Home | History | Annotate | Download | only in core

Lines Matching defs:SkImageInfo

8 /* Generated by tools/bookmaker from include/core/SkImageInfo.h and docs/SkImageInfo_Reference.bmh
14 bookmaker -b docs -i include/core/SkImageInfo.h -p
32 /** \enum SkImageInfo::SkAlphaType
75 /** \enum SkImageInfo::SkColorType
166 /** \enum SkImageInfo::SkYUVColorSpace
188 /** \struct SkImageInfo
190 can be created from SkImageInfo. SkImageInfo can be retrieved from SkBitmap and
192 implementations may defer pixel depth, so may not completely specify SkImageInfo.
194 SkImageInfo contains dimensions, the pixel integral width and height. It encodes
198 struct SK_API SkImageInfo {
201 /** Creates an empty SkImageInfo with kUnknown_SkColorType, kUnknown_SkAlphaType,
204 @return empty SkImageInfo
206 SkImageInfo()
213 /** Creates SkImageInfo from integral dimensions width and height, SkColorType ct,
216 If SkColorSpace cs is nullptr and SkImageInfo is part of drawing source: SkColorSpace
233 @return created SkImageInfo
235 static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at,
237 return SkImageInfo(width, height, ct, at, std::move(cs));
240 /** Creates SkImageInfo from integral dimensions width and height, kN32_SkColorType,
244 If SkColorSpace cs is nullptr and SkImageInfo is part of drawing source: SkColorSpace
256 @return created SkImageInfo
258 static SkImageInfo MakeN32(int width, int height, SkAlphaType at,
263 /** Creates SkImageInfo from integral dimensions width and height, kN32_SkColorType,
274 @return created SkImageInfo
276 static SkImageInfo MakeS32(int width, int height, SkAlphaType at);
278 /** Creates SkImageInfo from integral dimensions width and height, kN32_SkColorType,
281 If SkColorSpace cs is nullptr and SkImageInfo is part of drawing source: SkColorSpace
290 @return created SkImageInfo
292 static SkImageInfo MakeN32Premul(int width, int height, sk_sp<SkColorSpace> cs = nullptr) {
296 /** Creates SkImageInfo from integral dimensions width and height, kN32_SkColorType,
299 If SkImageInfo is part of drawing source: SkColorSpace defaults to sRGB, mapping
306 @return created SkImageInfo
308 static SkImageInfo MakeN32Premul(const SkISize& size) {
312 /** Creates SkImageInfo from integral dimensions width and height, kAlpha_8_SkColorType,
317 @return created SkImageInfo
319 static SkImageInfo MakeA8(int width, int height) {
323 /** Creates SkImageInfo from integral dimensions width and height, kUnknown_SkColorType,
326 Returned SkImageInfo as part of source does not draw, and as part of destination
331 @return created SkImageInfo
333 static SkImageInfo MakeUnknown(int width, int height) {
337 /** Creates SkImageInfo from integral dimensions width and height set to zero,
340 Returned SkImageInfo as part of source does not draw, and as part of destination
343 @return created SkImageInfo
345 static SkImageInfo MakeUnknown() {
396 /** Returns if SkImageInfo describes an empty area of pixels by checking if either
438 /** Creates SkImageInfo with the same SkColorType, SkColorSpace, and SkAlphaType,
443 @return created SkImageInfo
445 SkImageInfo makeWH(int newWidth, int newHeight) const {
449 /** Creates SkImageInfo with same SkColorType, SkColorSpace, width, and height,
452 Created SkImageInfo contains newAlphaType even if it is incompatible with
453 SkColorType, in which case SkAlphaType in SkImageInfo is ignored.
458 @return created SkImageInfo
460 SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const {
464 /** Creates SkImageInfo with same SkAlphaType, SkColorSpace, width, and height,
472 @return created SkImageInfo
474 SkImageInfo makeColorType(SkColorType newColorType) const {
478 /** Creates SkImageInfo with same SkAlphaType, SkColorType, width, and height,
482 @return created SkImageInfo
484 SkImageInfo makeColorSpace(sk_sp<SkColorSpace> cs) const {
536 /** Compares SkImageInfo with other, and returns true if width, height, SkColorType,
539 @param other SkImageInfo to compare
540 @return true if SkImageInfo equals other
542 bool operator==(const SkImageInfo& other) const {
548 /** Compares SkImageInfo with other, and returns true if width, height, SkColorType,
551 @param other SkImageInfo to compare
552 @return true if SkImageInfo is not equal to other
554 bool operator!=(const SkImageInfo& other) const {
558 /** Returns storage required by pixel array, given SkImageInfo dimensions, SkColorType,
569 /** Returns storage required by pixel array, given SkImageInfo dimensions, and
600 /** Creates an empty SkImageInfo with kUnknown_SkColorType, kUnknown_SkAlphaType,
621 SkImageInfo(int width, int height, SkColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs)