Lines Matching defs:SkPixmap

18 /** \class SkPixmap
19 SkPixmap provides a utility to pair SkImageInfo with pixels and row bytes.
20 SkPixmap is a low level class which provides convenience functions to access
21 raster destinations. SkCanvas can not draw SkPixmap, nor does SkPixmap provide
24 Use SkBitmap to draw pixels referenced by SkPixmap; use SkSurface to draw into
25 pixels referenced by SkPixmap.
27 SkPixmap does not try to manage the lifetime of the pixel memory. Use SkPixelRef
30 class SK_API SkPixmap {
33 /** Creates an empty SkPixmap without pixels, with kUnknown_SkColorType, with
36 after SkPixmap has been created.
38 @return empty SkPixmap
40 SkPixmap()
44 /** Creates SkPixmap from info width, height, SkAlphaType, and SkColorType.
51 The memory lifetime of pixels is managed by the caller. When SkPixmap goes
54 SkPixmap may be later modified by reset() to change its size, pixel type, or
60 @return initialized SkPixmap
62 SkPixmap(const SkImageInfo& info, const void* addr, size_t rowBytes)
82 The memory lifetime pixels are managed by the caller. When SkPixmap goes
103 /** Sets subset width, height, pixel address to intersection of SkPixmap with area,
110 @param area bounds to intersect with SkPixmap
111 @return true if intersection of SkPixmap and area is not empty
113 bool SK_WARN_UNUSED_RESULT extractSubset(SkPixmap* subset, const SkIRect& area) const;
133 It is up to the SkPixmap creator to ensure that pixel address is a useful value.
517 exceed SkPixmap (width(), height()).
524 Pixels are copied only if pixel conversion is possible. If SkPixmap colorType() is
526 If SkPixmap colorType() is kGray_8_SkColorType, dstInfo.colorSpace() must match.
527 If SkPixmap alphaType() is kOpaque_SkAlphaType, dstInfo.alphaType() must
528 match. If SkPixmap colorSpace() is nullptr, dstInfo.colorSpace() must match. Returns
553 exceed SkPixmap (width(), height()).
560 Pixels are copied only if pixel conversion is possible. If SkPixmap colorType() is
562 If SkPixmap colorType() is kGray_8_SkColorType, dstInfo.colorSpace() must match.
563 If SkPixmap alphaType() is kOpaque_SkAlphaType, dstInfo.alphaType() must
564 match. If SkPixmap colorSpace() is nullptr, dstInfo.colorSpace() must match. Returns
567 Returns false if SkPixmap width() or height() is zero or negative.
579 exceed SkPixmap (width(), height()).
586 Pixels are copied only if pixel conversion is possible. If SkPixmap colorType() is
588 If SkPixmap colorType() is kGray_8_SkColorType, dstInfo.colorSpace() must match.
589 If SkPixmap alphaType() is kOpaque_SkAlphaType, dstInfo.alphaType() must
590 match. If SkPixmap colorSpace() is nullptr, dstInfo.colorSpace() must match. Returns
594 false if SkPixmap width() or height() is zero or negative. Returns false if:
611 exceed SkPixmap (width(), height()). dst specifies width, height, SkColorType,
616 Pixels are copied only if pixel conversion is possible. If SkPixmap colorType() is
618 If SkPixmap colorType() is kGray_8_SkColorType, dst.info().colorSpace must match.
619 If SkPixmap alphaType() is kOpaque_SkAlphaType, dst.info().alphaType must
620 match. If SkPixmap colorSpace() is nullptr, dst.info().colorSpace must match. Returns
624 false SkPixmap width() or height() is zero or negative. Returns false if:
632 bool readPixels(const SkPixmap& dst, int srcX, int srcY) const {
641 Pixels are copied only if pixel conversion is possible. If SkPixmap colorType() is
643 If SkPixmap colorType() is kGray_8_SkColorType, dst SkColorSpace must match.
644 If SkPixmap alphaType() is kOpaque_SkAlphaType, dst SkAlphaType must
645 match. If SkPixmap colorSpace() is nullptr, dst SkColorSpace must match. Returns
648 Returns false if SkPixmap width() or height() is zero or negative.
653 bool readPixels(const SkPixmap& dst) const {
662 Pixels are copied only if pixel conversion is possible. If SkPixmap colorType() is
664 If SkPixmap colorType() is kGray_8_SkColorType, dst SkColorSpace must match.
665 If SkPixmap alphaType() is kOpaque_SkAlphaType, dst SkAlphaType must
666 match. If SkPixmap colorSpace() is nullptr, dst SkColorSpace must match. Returns
683 bool scalePixels(const SkPixmap& dst, SkFilterQuality filterQuality) const;