Lines Matching defs:width

281     SkImageInfo contains dimensions, the pixel integral width and height. It encodes
289 a width and height of zero, and no SkColorSpace.
295 /** Creates SkImageInfo from integral dimensions width and height, SkColorType ct,
304 @param width pixel column count; must be zero or greater
309 static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at,
311 return SkImageInfo({width, height}, {ct, at, std::move(cs)});
335 /** Creates SkImageInfo from integral dimensions width and height, kN32_SkColorType,
345 @param width pixel column count; must be zero or greater
350 static SkImageInfo MakeN32(int width, int height, SkAlphaType at,
352 return Make({width, height}, kN32_SkColorType, at, std::move(cs));
355 /** Creates SkImageInfo from integral dimensions width and height, kN32_SkColorType,
361 @param width pixel column count; must be zero or greater
367 static SkImageInfo MakeS32(int width, int height, SkAlphaType at);
369 /** Creates SkImageInfo from integral dimensions width and height, kN32_SkColorType,
378 @param width pixel column count; must be zero or greater
383 static SkImageInfo MakeN32Premul(int width, int height, sk_sp<SkColorSpace> cs = nullptr) {
384 return Make({width, height}, kN32_SkColorType, kPremul_SkAlphaType, std::move(cs));
387 /** Creates SkImageInfo from integral dimensions width and height, kN32_SkColorType,
396 @param dimensions width and height, each must be zero or greater
404 /** Creates SkImageInfo from integral dimensions width and height, kAlpha_8_SkColorType,
407 @param width pixel column count; must be zero or greater
411 static SkImageInfo MakeA8(int width, int height) {
412 return Make({width, height}, kAlpha_8_SkColorType, kPremul_SkAlphaType, nullptr);
424 /** Creates SkImageInfo from integral dimensions width and height, kUnknown_SkColorType,
430 @param width pixel column count; must be zero or greater
434 static SkImageInfo MakeUnknown(int width, int height) {
435 return Make({width, height}, kUnknown_SkColorType, kUnknown_SkAlphaType, nullptr);
438 /** Creates SkImageInfo from integral dimensions width and height set to zero,
452 @return pixel width
454 int width() const { return fDimensions.width(); }
484 width or height is zero or smaller.
506 /** Returns SkISize { width(), height() }.
508 @return integral size of width() and height()
512 /** Returns SkIRect { 0, 0, width(), height() }.
514 @return integral rectangle from origin to width() and height()
527 with dimensions set to width and height.
547 /** Creates SkImageInfo with same SkColorType, SkColorSpace, width, and height,
559 /** Creates SkImageInfo with same SkAlphaType, SkColorSpace, width, and height,
568 /** Creates SkImageInfo with same SkAlphaType, SkColorType, width, and height,
592 /** Returns minimum bytes per row, computed from pixel width() and SkColorType, which
596 @return width() times bytesPerPixel() as unsigned 64-bit integer
599 return (uint64_t)sk_64_mul(this->width(), this->bytesPerPixel());
602 /** Returns minimum bytes per row, computed from pixel width() and SkColorType, which
606 @return width() times bytesPerPixel() as size_t
621 @param x column index, zero or greater, and less than width()
630 /** Compares SkImageInfo with other, and returns true if width, height, SkColorType,
640 /** Compares SkImageInfo with other, and returns true if width, height, SkColorType,
701 a width and height of zero, and no SkColorSpace.