You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: site/user/api/SkCanvas_Reference.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2684,7 +2684,7 @@ the result with <a href='#Matrix'>Matrix</a>.
2684
2684
2685
2685
### Example
2686
2686
2687
-
<div><fiddle-embedname="53c212c4f2449df0b0eedbc6227b6ab7"><div><ahref='#SkCanvas_scale'>scale</a> followed by <ahref='#SkCanvas_translate'>translate</a> produces different results from <ahref='#SkCanvas_translate'>translate</a> followed
2687
+
<div><fiddle-embedname="eb93d5fa66a5f7a10f4f9210494d7222"><div><ahref='#SkCanvas_scale'>scale</a> followed by <ahref='#SkCanvas_translate'>translate</a> produces different results from <ahref='#SkCanvas_translate'>translate</a> followed
2688
2688
by <ahref='#SkCanvas_scale'>scale</a>.
2689
2689
2690
2690
The blue stroke follows translate of (50, 50); a black
@@ -2726,7 +2726,7 @@ the result with <a href='#Matrix'>Matrix</a>.
@@ -3359,7 +3359,7 @@ Resulting <a href='#Clip'>Clip</a> is <a href='undocumented#Alias'>Aliased</a>;
3359
3359
3360
3360
### Example
3361
3361
3362
-
<div><fiddle-embedname="7bb57c0e456c5fda2c2cca4abb68b19e"><div>region is unaffected by canvas rotation; iRect is affected by canvas rotation.
3362
+
<div><fiddle-embedname="20571cc23e3146deaa09046b64cc0aef"><div>region is unaffected by canvas rotation; iRect is affected by canvas rotation.
3363
3363
Both clips are <ahref='undocumented#Alias'>Aliased</a>; this is not noticeable on <ahref='undocumented#Region'>Region</a> clip because it
3364
3364
aligns to pixel boundaries.
3365
3365
</div></fiddle-embed></div>
@@ -5448,7 +5448,7 @@ and so on; or nullptr</td>
5448
5448
5449
5449
### Example
5450
5450
5451
-
<div><fiddle-embedname="e99e7be0d8f67dfacbecf85df585433d"><div>The two leftmost <ahref='#SkCanvas_drawBitmapNine_bitmap'>bitmap</a> draws has four corners and sides to the left and right of <ahref='#SkCanvas_drawBitmapNine_center'>center</a>.
5451
+
<div><fiddle-embedname="95ccfc2a89ce593e6b7a9f992a844bc0"><div>The two leftmost <ahref='#SkCanvas_drawBitmapNine_bitmap'>bitmap</a> draws has four corners and sides to the left and right of <ahref='#SkCanvas_drawBitmapNine_center'>center</a>.
5452
5452
The leftmost <ahref='#SkCanvas_drawBitmapNine_bitmap'>bitmap</a> draw scales the width of corners proportionately to fit.
5453
5453
The third and fourth draw corners are not scaled; the sides and <ahref='#SkCanvas_drawBitmapNine_center'>center</a> are scaled to
5454
5454
fill the remaining space.
@@ -5686,7 +5686,7 @@ and so on; or nullptr</td>
5686
5686
5687
5687
### Example
5688
5688
5689
-
<div><fiddle-embedname="c5bfa944e17ba4a4400dc799f032069c"><div>The two leftmost <ahref='#SkCanvas_drawBitmapLattice_bitmap'>bitmap</a> draws has four corners and sides to the left and right of center.
5689
+
<div><fiddle-embedname="8b26507690b71462f44642b911890bbf"><div>The two leftmost <ahref='#SkCanvas_drawBitmapLattice_bitmap'>bitmap</a> draws has four corners and sides to the left and right of center.
5690
5690
The leftmost <ahref='#SkCanvas_drawBitmapLattice_bitmap'>bitmap</a> draw scales the width of corners proportionately to fit.
5691
5691
The third and fourth draw corners are not scaled; the sides are scaled to
5692
5692
fill the remaining space; the center is transparent.
@@ -3664,7 +3664,7 @@ of <a href='#Arc'>Arc</a>. Angles greater than -360 and less than 360 are treate
3664
3664
3665
3665
### Example
3666
3666
3667
-
<div><fiddle-embed name="5f02890edaa10cb5e1a4243a82b6a382"><div><a href='#SkPath_arcTo'>arcTo</a> continues a previous contour when <a href='#SkPath_arcTo_forceMoveTo'>forceMoveTo</a> is false and when <a href='#Path'>Path</a>
3667
+
<div><fiddle-embed name="d8be8b6e59de244e4cbf58ec9554557b"><div><a href='#SkPath_arcTo'>arcTo</a> continues a previous contour when <a href='#SkPath_arcTo_forceMoveTo'>forceMoveTo</a> is false and when <a href='#Path'>Path</a>
3668
3668
is not empty.
3669
3669
</div></fiddle-embed></div>
3670
3670
@@ -4974,7 +4974,7 @@ Reversed <a href='#SkPath_reverseAddPath_src'>src</a> always appends a new <a hr
<div><fiddle-embed name="882e8e0103048009a25cfc20400492f7"><div>Ignoring the actual <a href='#Verb'>Verbs</a> and replacing them with <a href='#Quad'>Quads</a> rounds the
5756
+
<div><fiddle-embed name="2f53df9201769ab7e7c0e164a1334309"><div>Ignoring the actual <a href='#Verb'>Verbs</a> and replacing them with <a href='#Quad'>Quads</a> rounds the
0 commit comments