diff options
author | Cary Clark <caryclark@skia.org> | 2018-02-08 14:45:18 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-08 20:09:51 +0000 |
commit | 5635631c8887db678e6123c191ae68456b60d2a7 (patch) | |
tree | 1563935ad6bb84bfbdc050a635ab61be5621fd55 /docs/SkSurface_Reference.bmh | |
parent | db9ee2d202e813bf7595713bf114a25d585f0172 (diff) |
working on SkImage docs
also fix minor break in SkSurface
TBR=caryclark@google.com
Docs-Preview: https://skia.org/?cl=105021
Bug: skia:
Change-Id: I0cfc01ab5ba4df13a9e84f8dd2904d32e5726a5b
Reviewed-on: https://skia-review.googlesource.com/105021
Reviewed-by: Cary Clark <caryclark@skia.org>
Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'docs/SkSurface_Reference.bmh')
-rw-r--r-- | docs/SkSurface_Reference.bmh | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/docs/SkSurface_Reference.bmh b/docs/SkSurface_Reference.bmh index 7935bfe563..16785b4ef0 100644 --- a/docs/SkSurface_Reference.bmh +++ b/docs/SkSurface_Reference.bmh @@ -1582,11 +1582,16 @@ Does not copy, and returns false if: # ------------------------------------------------------------------------------ #Method void writePixels(const SkPixmap& src, int dstX, int dstY) - +#In Pixels +#Line # copies Rect of pixels ## Copies Rect of pixels from the src Pixmap to the Surface. Source Rect corners are (0, 0) and (src.width(), src.height()). -Destination Rect corners are (dstX, dstY) and (dstX + Surface width(), dstY + Surface height()). +Destination Rect corners are (dstX, dstY) and +#Formula +(dstX + Surface width(), dstY + Surface height()) +## +. Copies each readable pixel intersecting both rectangles, without scaling, converting to Surface colorType() and Surface alphaType() if required. @@ -1595,7 +1600,7 @@ converting to Surface colorType() and Surface alphaType() if required. #Param dstY x position relative to Surface to begin copy; may be negative ## #Example - // todo + // incomplete ## #SeeAlso readPixels peekPixels @@ -1609,7 +1614,11 @@ converting to Surface colorType() and Surface alphaType() if required. Copies Rect of pixels from the src Bitmap to the Surface. Source Rect corners are (0, 0) and (src.width(), src.height()). -Destination Rect corners are (dstX, dstY) and (dstX + Surface width(), dstY + Surface height()). +Destination Rect corners are (dstX, dstY) and +#Formula +(dstX + Surface width(), dstY + Surface height()) +## +. Copies each readable pixel intersecting both rectangles, without scaling, converting to Surface colorType() and Surface alphaType() if required. @@ -1618,7 +1627,7 @@ converting to Surface colorType() and Surface alphaType() if required. #Param dstY x position relative to Surface to begin copy; may be negative ## #Example - // todo + // incomplete ## #SeeAlso readPixels peekPixels |