Lines Matching defs:pixels

100     /** Allocates raster SkCanvas that will draw directly into pixels.
106 pixels is not nullptr;
107 rowBytes is zero or large enough to contain info width pixels of SkColorType.
115 To access pixels after drawing, call flush() or peekPixels().
119 @param pixels pointer to destination pixels buffer
125 static std::unique_ptr<SkCanvas> MakeRasterDirect(const SkImageInfo& info, void* pixels,
130 calls draw into pixels.
133 To access pixels after drawing, call flush() or peekPixels().
138 pixels is not nullptr;
139 rowBytes is zero or large enough to contain width pixels of kN32_SkColorType.
149 @param pixels pointer to destination pixels buffer; buffer size should be height
154 static std::unique_ptr<SkCanvas> MakeRasterDirectN32(int width, int height, SkPMColor* pixels,
156 return MakeRasterDirect(SkImageInfo::MakeN32Premul(width, height), pixels, rowBytes);
159 /** Creates an empty SkCanvas with no backing device or pixels, with
311 /** Returns the pixel base address, SkImageInfo, rowBytes, and origin if the pixels
316 If pixels are inaccessible, info, rowBytes, and origin are unchanged.
318 @param info storage for writable pixels' SkImageInfo; may be nullptr
319 @param rowBytes storage for writable pixels' row bytes; may be nullptr
322 @return address of pixels, or nullptr if inaccessible
342 /** Returns true if SkCanvas has direct access to its pixels.
352 @param pixmap storage for pixel state if pixels are readable; otherwise, ignored
353 @return true if SkCanvas has direct access to pixels
359 /** Copies SkRect of pixels from SkCanvas into dstPixels. SkMatrix and clip are
375 do not match. Only pixels within both source and destination rectangles
378 Pass negative values for srcX or srcY to offset pixels across or down destination.
382 - SkCanvas pixels could not be converted to dstInfo.colorType() or dstInfo.alphaType().
383 - SkCanvas pixels are not readable; for instance, SkCanvas is document-based.
384 - dstRowBytes is too small to contain one row of pixels.
387 @param dstPixels storage for pixels; dstInfo.height() times dstRowBytes, or larger
389 @param srcX offset into readable pixels on x-axis; may be negative
390 @param srcY offset into readable pixels on y-axis; may be negative
391 @return true if pixels were copied
396 /** Copies SkRect of pixels from SkCanvas into pixmap. SkMatrix and clip are
412 do not match. Only pixels within both source and destination SkRect
413 are copied. pixmap pixels contents outside SkRect intersection are unchanged.
415 Pass negative values for srcX or srcY to offset pixels across or down pixmap.
419 - SkCanvas pixels could not be converted to pixmap.colorType() or pixmap.alphaType().
420 - SkCanvas pixels are not readable; for instance, SkCanvas is document-based.
421 - SkPixmap pixels could not be allocated.
422 - pixmap.rowBytes() is too small to contain one row of pixels.
424 @param pixmap storage for pixels copied from SkCanvas
425 @param srcX offset into readable pixels on x-axis; may be negative
426 @param srcY offset into readable pixels on y-axis; may be negative
427 @return true if pixels were copied
433 /** Copies SkRect of pixels from SkCanvas into bitmap. SkMatrix and clip are
449 do not match. Only pixels within both source and destination rectangles
450 are copied. SkBitmap pixels outside SkRect intersection are unchanged.
452 Pass negative values for srcX or srcY to offset pixels across or down bitmap.
456 - SkCanvas pixels could not be converted to bitmap.colorType() or bitmap.alphaType().
457 - SkCanvas pixels are not readable; for instance, SkCanvas is document-based.
458 - bitmap pixels could not be allocated.
459 - bitmap.rowBytes() is too small to contain one row of pixels.
461 @param bitmap storage for pixels copied from SkCanvas
462 @param srcX offset into readable pixels on x-axis; may be negative
463 @param srcY offset into readable pixels on y-axis; may be negative
464 @return true if pixels were copied
470 /** Copies SkRect from pixels to SkCanvas. SkMatrix and clip are ignored.
484 do not match. Only pixels within both source and destination rectangles
485 are copied. SkCanvas pixels outside SkRect intersection are unchanged.
487 Pass negative values for x or y to offset pixels to the left or
488 above SkCanvas pixels.
492 - pixels could not be converted to SkCanvas imageInfo().colorType() or
494 - SkCanvas pixels are not writable; for instance, SkCanvas is document-based.
495 - rowBytes is too small to contain one row of pixels.
497 @param info width, height, SkColorType, and SkAlphaType of pixels
498 @param pixels pixels to copy, of size info.height() times rowBytes, or larger
499 @param rowBytes size of one row of pixels; info.width() times pixel size, or larger
500 @param x offset into SkCanvas writable pixels on x-axis; may be negative
501 @param y offset into SkCanvas writable pixels on y-axis; may be negative
502 @return true if pixels were written to SkCanvas
506 bool writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes, int x, int y);
508 /** Copies SkRect from pixels to SkCanvas. SkMatrix and clip are ignored.
523 do not match. Only pixels within both source and destination rectangles
524 are copied. SkCanvas pixels outside SkRect intersection are unchanged.
526 Pass negative values for x or y to offset pixels to the left or
527 above SkCanvas pixels.
531 - bitmap does not have allocated pixels.
532 - bitmap pixels could not be converted to SkCanvas imageInfo().colorType() or
534 - SkCanvas pixels are not writable; for instance, SkCanvas is document based.
535 - bitmap pixels are inaccessible; for instance, bitmap wraps a texture.
537 @param bitmap contains pixels copied to SkCanvas
538 @param x offset into SkCanvas writable pixels on x-axis; may be negative
539 @param y offset into SkCanvas writable pixels on y-axis; may be negative
540 @return true if pixels were written to SkCanvas
912 Resulting clip is aliased; pixels are fully contained by the clip.
923 Resulting clip is aliased; pixels are fully contained by the clip.
966 Resulting clip is aliased; pixels are fully contained by the clip.
1002 Resulting clip is aliased; pixels are fully contained by the clip.
1017 Resulting clip is aliased; pixels are fully contained by the clip.
1033 Resulting clip is aliased; pixels are fully contained by the clip.
1147 This has the effect of replacing all pixels contained by clip with color.
1156 This has the effect of replacing all pixels contained by clip with color.
1164 /** Makes SkCanvas contents undefined. Subsequent calls that read SkCanvas pixels,
1512 @param image SkImage containing pixels, dimensions, and format
1572 @param image SkImage containing pixels, dimensions, and format
2112 @param x offset into SkCanvas writable pixels on x-axis
2113 @param y offset into SkCanvas writable pixels on y-axis
2169 * purposes means pixels.
2171 * @return transformation from local coordinates to device / pixels.
2224 * @param image SkImage containing pixels, dimensions, and format.
2368 // canvas pixels are determined by this device.
2479 * Saves the specified subset of the current pixels in the current layer,
2480 * and then clears those pixels to transparent black.
2481 * Restores the pixels on restore() by drawing them in SkBlendMode::kDstOver.