blob: 8221ac1118c72671a44572fe7db4c3e135ba15f8 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>SGL: SkPaint Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.0 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>SkPaint Class Reference</h1><code>#include &lt;<a class="el" href="SkPaint_8h-source.html">SkPaint.h</a>&gt;</code>
<p>
<a href="classSkPaint-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#w33">FlagShift</a> { <br>
&nbsp;&nbsp;<a class="el" href="classSkPaint.html#w33w0">kAntiAlias_Shift</a>,
<a class="el" href="classSkPaint.html#w33w1">kLinearText_Shift</a>,
<a class="el" href="classSkPaint.html#w33w2">kUnderlineText_Shift</a>,
<a class="el" href="classSkPaint.html#w33w3">kStrikeThruText_Shift</a>,
<br>
&nbsp;&nbsp;<a class="el" href="classSkPaint.html#w33w4">kFakeBoldText_Shift</a>,
<b>kFlagShiftCount</b>
<br>
}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#w34">FlagMask</a> { <br>
&nbsp;&nbsp;<a class="el" href="classSkPaint.html#w34w6">kAntiAlias_Mask</a> = 1 &lt;&lt; kAntiAlias_Shift,
<a class="el" href="classSkPaint.html#w34w7">kLinearText_Mask</a> = 1 &lt;&lt; kLinearText_Shift,
<a class="el" href="classSkPaint.html#w34w8">kUnderlineText_Mask</a> = 1 &lt;&lt; kUnderlineText_Shift,
<a class="el" href="classSkPaint.html#w34w9">kStrikeThruText_Mask</a> = 1 &lt;&lt; kStrikeThruText_Shift,
<br>
&nbsp;&nbsp;<a class="el" href="classSkPaint.html#w34w10">kFakeBoldText_Mask</a> = 1 &lt;&lt; kFakeBoldText_Shift,
<b>kAllFlagMasks</b> = (1 &lt;&lt; kFlagShiftCount) - 1
<br>
}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#w35">Style</a> { <a class="el" href="classSkPaint.html#w35w12">kFill_Style</a>,
<a class="el" href="classSkPaint.html#w35w13">kStroke_Style</a>,
<a class="el" href="classSkPaint.html#w35w14">kStrokeAndFill_Style</a>,
<b>kStyleCount</b>
}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#w36">Cap</a> { <br>
&nbsp;&nbsp;<a class="el" href="classSkPaint.html#w36w16">kButt_Cap</a>,
<a class="el" href="classSkPaint.html#w36w17">kRound_Cap</a>,
<a class="el" href="classSkPaint.html#w36w18">kSquare_Cap</a>,
<b>kCapCount</b>,
<br>
&nbsp;&nbsp;<b>kDefault_Cap</b> = kButt_Cap
<br>
}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#w37">Join</a> { <br>
&nbsp;&nbsp;<a class="el" href="classSkPaint.html#w37w21">kMiter_Join</a>,
<a class="el" href="classSkPaint.html#w37w22">kRound_Join</a>,
<a class="el" href="classSkPaint.html#w37w23">kBevel_Join</a>,
<b>kJoinCount</b>,
<br>
&nbsp;&nbsp;<b>kDefault_Join</b> = kMiter_Join
<br>
}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#w38">FilterType</a> { <a class="el" href="classSkPaint.html#w38w26">kNo_FilterType</a>,
<a class="el" href="classSkPaint.html#w38w27">kBilinear_FilterType</a>,
<b>kFilterTypeCount</b>
}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>Align</b> { <b>kLeft_Align</b>,
<b>kCenter_Align</b>,
<b>kRight_Align</b>,
<b>kAlignCount</b>
}</td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="SkPaint::SkPaint"></a>
&nbsp;</td><td class="memItemRight" valign="bottom"><b>SkPaint</b> (const <a class="el" href="classSkPaint.html">SkPaint</a> &amp;)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="SkPaint::operator="></a>
<a class="el" href="classSkPaint.html">SkPaint</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classSkPaint.html">SkPaint</a> &amp;)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a4">reset</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="SkPaint::getFlags"></a>
U32&nbsp;</td><td class="memItemRight" valign="bottom"><b>getFlags</b> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6" doxytag="SkPaint::setFlags"></a>
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setFlags</b> (U32)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a7">isAntiAliasOn</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a8">setAntiAliasOn</a> (bool)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a9">isLinearTextOn</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a10">setLinearTextOn</a> (bool)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a11">isUnderlineTextOn</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a12">setUnderlineTextOn</a> (bool)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a13">isStrikeThruTextOn</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a14">setStrikeThruTextOn</a> (bool)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a15">isFakeBoldTextOn</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a16">setFakeBoldTextOn</a> (bool)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkPaint.html#w35">Style</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a17">getStyle</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a18">setStyle</a> (<a class="el" href="classSkPaint.html#w35">Style</a>)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a19" doxytag="SkPaint::isStrokeOn"></a>
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>isStrokeOn</b> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a20" doxytag="SkPaint::setStrokeOn"></a>
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setStrokeOn</b> (bool on)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="SkColor_8h.html#a17">SkColor</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a21">getColor</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">U8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a22">getAlpha</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a23">setColor</a> (<a class="el" href="SkColor_8h.html#a17">SkColor</a>)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a24">setAlpha</a> (U8CPU a)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a25">setARGB</a> (U8CPU a, U8CPU r, U8CPU g, U8CPU b)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a26">getStrokeWidth</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a27">setStrokeWidth</a> (SkScalar)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a28">getStrokeMiter</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a29">setStrokeMiter</a> (SkScalar)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkPaint.html#w36">Cap</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a30">getStrokeCap</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a31">setStrokeCap</a> (<a class="el" href="classSkPaint.html#w36">Cap</a>)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkPaint.html#w37">Join</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a32">getStrokeJoin</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a33">setStrokeJoin</a> (<a class="el" href="classSkPaint.html#w37">Join</a>)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkPaint.html#w38">FilterType</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a34">getFilterType</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a35">setFilterType</a> (<a class="el" href="classSkPaint.html#w38">FilterType</a>)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkShader.html">SkShader</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a36">getShader</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkShader.html">SkShader</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a37">setShader</a> (<a class="el" href="classSkShader.html">SkShader</a> *shader)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkXfermode.html">SkXfermode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a38">getXfermode</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkXfermode.html">SkXfermode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a39">setXfermode</a> (<a class="el" href="classSkXfermode.html">SkXfermode</a> *xfermode)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a40" doxytag="SkPaint::setPorterDuffXfermode"></a>
<a class="el" href="classSkXfermode.html">SkXfermode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>setPorterDuffXfermode</b> (SkPorterDuff::Mode)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkPathEffect.html">SkPathEffect</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a41">getPathEffect</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkPathEffect.html">SkPathEffect</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a42">setPathEffect</a> (<a class="el" href="classSkPathEffect.html">SkPathEffect</a> *effect)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkMaskFilter.html">SkMaskFilter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a43">getMaskFilter</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSkMaskFilter.html">SkMaskFilter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a44">setMaskFilter</a> (<a class="el" href="classSkMaskFilter.html">SkMaskFilter</a> *maskfilter)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkTypeface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a45">getTypeface</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkTypeface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a46">setTypeface</a> (SkTypeface *typeface)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">Align&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a47">getTextAlign</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a48">setTextAlign</a> (Align)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a49">getTextSize</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a50">setTextSize</a> (SkScalar)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a51">getTextScaleX</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a52">setTextScaleX</a> (SkScalar scaleX)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a53">getTextSkewX</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a54">setTextSkewX</a> (SkScalar skewX)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a55">getTextTracking</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a56">setTextTracking</a> (SkScalar tracking)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a57">measureText</a> (const char utf8[], size_t length, SkScalar *above, SkScalar *below) const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a58">measureText16</a> (const U16 utf16[], size_t numberOf16BitValues, SkScalar *above, SkScalar *below) const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a59">ascent</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a60" doxytag="SkPaint::descent"></a>
SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><b>descent</b> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a61">measureText</a> (const char text[], size_t length) const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a62" doxytag="SkPaint::measureText16"></a>
SkScalar&nbsp;</td><td class="memItemRight" valign="bottom"><b>measureText16</b> (const U16 utf16[], size_t numberOf16BitValues) const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a63">getTextPath</a> (const char text[], size_t length, SkScalar x, SkScalar y, <a class="el" href="classSkPath.html">SkPath</a> *path) const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkPaint.html#a64">getText16Path</a> (const U16 text[], size_t numberOf16BitValues, SkScalar x, SkScalar y, <a class="el" href="classSkPath.html">SkPath</a> *path) const </td></tr>
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="n0" doxytag="SkPaint::SkGlyphCache"></a>
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>SkGlyphCache</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="n1" doxytag="SkPaint::SkDraw"></a>
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>SkDraw</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="n2" doxytag="SkPaint::SkTextToPathIter"></a>
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>SkTextToPathIter</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="n3" doxytag="SkPaint::operator=="></a>
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="classSkPaint.html">SkPaint</a> &amp;a, const <a class="el" href="classSkPaint.html">SkPaint</a> &amp;b)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="n4" doxytag="SkPaint::operator!="></a>
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="classSkPaint.html">SkPaint</a> &amp;a, const <a class="el" href="classSkPaint.html">SkPaint</a> &amp;b)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The SkPaint class holds the style and color information about how to draw geometries, text and bitmaps.
<p>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="w36" doxytag="SkPaint::Cap"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">enum <a class="el" href="classSkPaint.html#w36">SkPaint::Cap</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="w36w16" doxytag="kButt_Cap"></a>kButt_Cap</em>&nbsp;</td><td>
begin and end a contour with no extension </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w36w17" doxytag="kRound_Cap"></a>kRound_Cap</em>&nbsp;</td><td>
begin and end a contour with a semi-circle extension </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w36w18" doxytag="kSquare_Cap"></a>kSquare_Cap</em>&nbsp;</td><td>
begin and end a contour with a half square extension </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="w38" doxytag="SkPaint::FilterType"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">enum <a class="el" href="classSkPaint.html#w38">SkPaint::FilterType</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="w38w26" doxytag="kNo_FilterType"></a>kNo_FilterType</em>&nbsp;</td><td>
draw bitmaps using nearest-neighbor sampling </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w38w27" doxytag="kBilinear_FilterType"></a>kBilinear_FilterType</em>&nbsp;</td><td>
draw bitmaps using bilinear sampling </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="w34" doxytag="SkPaint::FlagMask"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">enum <a class="el" href="classSkPaint.html#w34">SkPaint::FlagMask</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="w34w6" doxytag="kAntiAlias_Mask"></a>kAntiAlias_Mask</em>&nbsp;</td><td>
bit mask for the flag enabling antialiasing </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w34w7" doxytag="kLinearText_Mask"></a>kLinearText_Mask</em>&nbsp;</td><td>
bit mask for the flag enabling linear-text (no gridding) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w34w8" doxytag="kUnderlineText_Mask"></a>kUnderlineText_Mask</em>&nbsp;</td><td>
bit mask for the flag enabling underline text </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w34w9" doxytag="kStrikeThruText_Mask"></a>kStrikeThruText_Mask</em>&nbsp;</td><td>
bit mask for the flag enabling strike-thru text </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w34w10" doxytag="kFakeBoldText_Mask"></a>kFakeBoldText_Mask</em>&nbsp;</td><td>
bit mask for the flag enabling fake-bold text </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="w33" doxytag="SkPaint::FlagShift"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">enum <a class="el" href="classSkPaint.html#w33">SkPaint::FlagShift</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="w33w0" doxytag="kAntiAlias_Shift"></a>kAntiAlias_Shift</em>&nbsp;</td><td>
bit position for the flag enabling antialiasing </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w33w1" doxytag="kLinearText_Shift"></a>kLinearText_Shift</em>&nbsp;</td><td>
bit position for the flag enabling linear-text (no gridding) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w33w2" doxytag="kUnderlineText_Shift"></a>kUnderlineText_Shift</em>&nbsp;</td><td>
bit position for the flag enabling underline text </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w33w3" doxytag="kStrikeThruText_Shift"></a>kStrikeThruText_Shift</em>&nbsp;</td><td>
bit position for the flag enabling strike-thru text </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w33w4" doxytag="kFakeBoldText_Shift"></a>kFakeBoldText_Shift</em>&nbsp;</td><td>
bit position for the flag enabling fake-bold text </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="w37" doxytag="SkPaint::Join"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">enum <a class="el" href="classSkPaint.html#w37">SkPaint::Join</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="w37w21" doxytag="kMiter_Join"></a>kMiter_Join</em>&nbsp;</td><td>
connect path segments with a sharp join (respects miter-limit) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w37w22" doxytag="kRound_Join"></a>kRound_Join</em>&nbsp;</td><td>
connect path segments with a round join </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w37w23" doxytag="kBevel_Join"></a>kBevel_Join</em>&nbsp;</td><td>
connect path segments with a flat bevel join </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="w35" doxytag="SkPaint::Style"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">enum <a class="el" href="classSkPaint.html#w35">SkPaint::Style</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Styles apply to rect, oval, path, and text. Bitmaps are always drawn in "fill", and lines are always drawn in "stroke"<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="w35w12" doxytag="kFill_Style"></a>kFill_Style</em>&nbsp;</td><td>
fill with the paint's color </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w35w13" doxytag="kStroke_Style"></a>kStroke_Style</em>&nbsp;</td><td>
stroke with the paint's color </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w35w14" doxytag="kStrokeAndFill_Style"></a>kStrokeAndFill_Style</em>&nbsp;</td><td>
fill and stroke with the paint's color </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a59" doxytag="SkPaint::ascent"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkScalar SkPaint::ascent </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
In java we cannot use these parameters to pass back the ascent and descent, so I'm creating new functions to return them. These should be edited by the tool so I can use them in java </td>
</tr>
</table>
<a class="anchor" name="a22" doxytag="SkPaint::getAlpha"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">U8 SkPaint::getAlpha </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper to <a class="el" href="classSkPaint.html#a21">getColor()</a> that just returns the color's alpha value. </td>
</tr>
</table>
<a class="anchor" name="a21" doxytag="SkPaint::getColor"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="SkColor_8h.html#a17">SkColor</a> SkPaint::getColor </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's color. Note that the color is a 32bit value containing alpha as well as r,g,b. This 32bit value is not premultiplied, meaning that its alpha can be any value, regardless of the values of r,g,b. </td>
</tr>
</table>
<a class="anchor" name="a34" doxytag="SkPaint::getFilterType"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkPaint.html#w38">FilterType</a> SkPaint::getFilterType </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's bitmap filter type. This setting affects drawBitmap() and bitmaps that appear inside a bitmap shader. </td>
</tr>
</table>
<a class="anchor" name="a43" doxytag="SkPaint::getMaskFilter"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkMaskFilter.html">SkMaskFilter</a>* SkPaint::getMaskFilter </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the paint's maskfilter (nor nil) without affecting the maskfilter's reference count</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a41" doxytag="SkPaint::getPathEffect"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkPathEffect.html">SkPathEffect</a>* SkPaint::getPathEffect </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the paint's patheffect (nor nil) without affecting the patheffect's reference count</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a36" doxytag="SkPaint::getShader"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkShader.html">SkShader</a>* SkPaint::getShader </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the paint's shader (nor nil) without affecting the shader's reference count</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a30" doxytag="SkPaint::getStrokeCap"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkPaint.html#w36">Cap</a> SkPaint::getStrokeCap </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's stroke cap type. </td>
</tr>
</table>
<a class="anchor" name="a32" doxytag="SkPaint::getStrokeJoin"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkPaint.html#w37">Join</a> SkPaint::getStrokeJoin </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's stroke join type. </td>
</tr>
</table>
<a class="anchor" name="a28" doxytag="SkPaint::getStrokeMiter"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkScalar SkPaint::getStrokeMiter </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's stroke miter value. This is used to control the behavior of miter joins when the joins angle is sharp. </td>
</tr>
</table>
<a class="anchor" name="a26" doxytag="SkPaint::getStrokeWidth"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkScalar SkPaint::getStrokeWidth </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the width for framing. 0 indicates framing in hairline mode, which always draws a single pixel independent of the current matrix. </td>
</tr>
</table>
<a class="anchor" name="a17" doxytag="SkPaint::getStyle"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkPaint.html#w35">Style</a> SkPaint::getStyle </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's style, used for controlling how primitives' geometries are interpreted (except for drawBitmap, which always assumes kFill_Style). </td>
</tr>
</table>
<a class="anchor" name="a64" doxytag="SkPaint::getText16Path"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::getText16Path </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const U16&nbsp;</td>
<td class="mdname" nowrap> <em>text</em>[], </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>size_t&nbsp;</td>
<td class="mdname" nowrap> <em>numberOf16BitValues</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>SkScalar&nbsp;</td>
<td class="mdname" nowrap> <em>x</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>SkScalar&nbsp;</td>
<td class="mdname" nowrap> <em>y</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classSkPath.html">SkPath</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>path</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the path (outline) for the specified text. Note: just like <a class="el" href="classSkCanvas.html#a33">SkCanvas::drawText</a>, this will respect the Align setting in the paint. </td>
</tr>
</table>
<a class="anchor" name="a47" doxytag="SkPaint::getTextAlign"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Align SkPaint::getTextAlign </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's text alignment. </td>
</tr>
</table>
<a class="anchor" name="a63" doxytag="SkPaint::getTextPath"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::getTextPath </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const char&nbsp;</td>
<td class="mdname" nowrap> <em>text</em>[], </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>size_t&nbsp;</td>
<td class="mdname" nowrap> <em>length</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>SkScalar&nbsp;</td>
<td class="mdname" nowrap> <em>x</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>SkScalar&nbsp;</td>
<td class="mdname" nowrap> <em>y</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classSkPath.html">SkPath</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>path</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the path (outline) for the specified text. Note: just like <a class="el" href="classSkCanvas.html#a33">SkCanvas::drawText</a>, this will respect the Align setting in the paint. </td>
</tr>
</table>
<a class="anchor" name="a51" doxytag="SkPaint::getTextScaleX"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkScalar SkPaint::getTextScaleX </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's horizontal scale factor for text. The default value is 1.0. </td>
</tr>
</table>
<a class="anchor" name="a49" doxytag="SkPaint::getTextSize"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkScalar SkPaint::getTextSize </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's text size. </td>
</tr>
</table>
<a class="anchor" name="a53" doxytag="SkPaint::getTextSkewX"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkScalar SkPaint::getTextSkewX </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's horizontal skew factor for text. The default value is 0. </td>
</tr>
</table>
<a class="anchor" name="a55" doxytag="SkPaint::getTextTracking"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkScalar SkPaint::getTextTracking </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's text tracking value. The defautl value is 0. This value is used to add/subtract space between characters in a line of text. </td>
</tr>
</table>
<a class="anchor" name="a45" doxytag="SkPaint::getTypeface"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkTypeface* SkPaint::getTypeface </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's typeface object (or nil for the default font). This object identifies which font to use when drawing or measuring text. If a previous maskfilter exists, its reference count is decremented. If maskfilter is non-nil, its reference count is incremented. </td>
</tr>
</table>
<a class="anchor" name="a38" doxytag="SkPaint::getXfermode"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkXfermode.html">SkXfermode</a>* SkPaint::getXfermode </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the paint's xfermode (nor nil) without affecting the xfermode's reference count</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a7" doxytag="SkPaint::isAntiAliasOn"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool SkPaint::isAntiAliasOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper for getFlags(), returning true if kAntiAlias_Mask bit is set </td>
</tr>
</table>
<a class="anchor" name="a15" doxytag="SkPaint::isFakeBoldTextOn"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool SkPaint::isFakeBoldTextOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper for getFlags(), returning true if kFakeBoldText_Mask bit is set </td>
</tr>
</table>
<a class="anchor" name="a9" doxytag="SkPaint::isLinearTextOn"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool SkPaint::isLinearTextOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper for getFlags(), returning true if kLinearText_Mask bit is set </td>
</tr>
</table>
<a class="anchor" name="a13" doxytag="SkPaint::isStrikeThruTextOn"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool SkPaint::isStrikeThruTextOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper for getFlags(), returning true if kStrikeThruText_Mask bit is set </td>
</tr>
</table>
<a class="anchor" name="a11" doxytag="SkPaint::isUnderlineTextOn"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool SkPaint::isUnderlineTextOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper for getFlags(), returning true if kUnderlineText_Mask bit is set </td>
</tr>
</table>
<a class="anchor" name="a61" doxytag="SkPaint::measureText"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkScalar SkPaint::measureText </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const char&nbsp;</td>
<td class="mdname" nowrap> <em>text</em>[], </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>size_t&nbsp;</td>
<td class="mdname" nowrap> <em>length</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the width of the utf8 text. </td>
</tr>
</table>
<a class="anchor" name="a57" doxytag="SkPaint::measureText"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkScalar SkPaint::measureText </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const char&nbsp;</td>
<td class="mdname" nowrap> <em>utf8</em>[], </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>size_t&nbsp;</td>
<td class="mdname" nowrap> <em>length</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>SkScalar *&nbsp;</td>
<td class="mdname" nowrap> <em>above</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>SkScalar *&nbsp;</td>
<td class="mdname" nowrap> <em>below</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the width of the utf8 text. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>utf8</em>&nbsp;</td><td>Address of the utf8 text </td></tr>
<tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>Number of bytes of utf8 text to measure </td></tr>
<tr><td valign="top"></td><td valign="top"><em>above</em>&nbsp;</td><td>If not nil, returns the distance above the baseline (ascent) </td></tr>
<tr><td valign="top"></td><td valign="top"><em>below</em>&nbsp;</td><td>If not nil, returns the distance below the baseline (descent) </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The width of the utf8 text</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a58" doxytag="SkPaint::measureText16"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkScalar SkPaint::measureText16 </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const U16&nbsp;</td>
<td class="mdname" nowrap> <em>utf16</em>[], </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>size_t&nbsp;</td>
<td class="mdname" nowrap> <em>numberOf16BitValues</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>SkScalar *&nbsp;</td>
<td class="mdname" nowrap> <em>above</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>SkScalar *&nbsp;</td>
<td class="mdname" nowrap> <em>below</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the width of the utf16 text. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>utf16</em>&nbsp;</td><td>Address of the utf16 text </td></tr>
<tr><td valign="top"></td><td valign="top"><em>numberOf16BitValues</em>&nbsp;</td><td>Number of 16bit values to measure </td></tr>
<tr><td valign="top"></td><td valign="top"><em>above</em>&nbsp;</td><td>If not nil, returns the distance above the baseline (ascent) </td></tr>
<tr><td valign="top"></td><td valign="top"><em>below</em>&nbsp;</td><td>If not nil, returns the distance below the baseline (descent) </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The width of the text</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="SkPaint::reset"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::reset </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Restores the paint to its initial settings. </td>
</tr>
</table>
<a class="anchor" name="a24" doxytag="SkPaint::setAlpha"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setAlpha </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">U8CPU&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>a</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper to <a class="el" href="classSkPaint.html#a23">setColor()</a>, that only assigns the color's alpha value, leaving its r,g,b values unchanged. </td>
</tr>
</table>
<a class="anchor" name="a8" doxytag="SkPaint::setAntiAliasOn"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setAntiAliasOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">bool&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper for setFlags(), setting or clearing the kAntiAlias_Mask bit </td>
</tr>
</table>
<a class="anchor" name="a25" doxytag="SkPaint::setARGB"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setARGB </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">U8CPU&nbsp;</td>
<td class="mdname" nowrap> <em>a</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>U8CPU&nbsp;</td>
<td class="mdname" nowrap> <em>r</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>U8CPU&nbsp;</td>
<td class="mdname" nowrap> <em>g</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>U8CPU&nbsp;</td>
<td class="mdname" nowrap> <em>b</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper to <a class="el" href="classSkPaint.html#a23">setColor()</a>, that takes a,r,g,b and constructs the color value using <a class="el" href="SkColor_8h.html#a19">SkColorSetARGB()</a> </td>
</tr>
</table>
<a class="anchor" name="a23" doxytag="SkPaint::setColor"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setColor </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="SkColor_8h.html#a17">SkColor</a>&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's color. Note that the color is a 32bit value containing alpha as well as r,g,b. This 32bit value is not premultiplied, meaning that its alpha can be any value, regardless of the values of r,g,b. </td>
</tr>
</table>
<a class="anchor" name="a16" doxytag="SkPaint::setFakeBoldTextOn"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setFakeBoldTextOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">bool&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper for setFlags(), setting or clearing the kStrikeThruText_Mask bit </td>
</tr>
</table>
<a class="anchor" name="a35" doxytag="SkPaint::setFilterType"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setFilterType </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classSkPaint.html#w38">FilterType</a>&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's bitmap filter type. This setting affects drawBitmap() and bitmaps that appear inside a bitmap shader. </td>
</tr>
</table>
<a class="anchor" name="a10" doxytag="SkPaint::setLinearTextOn"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setLinearTextOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">bool&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper for setFlags(), setting or clearing the kLinearText_Mask bit </td>
</tr>
</table>
<a class="anchor" name="a44" doxytag="SkPaint::setMaskFilter"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkMaskFilter.html">SkMaskFilter</a>* SkPaint::setMaskFilter </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classSkMaskFilter.html">SkMaskFilter</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>maskfilter</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set a maskfilter object into the SkPaint, or nil to clear any previous maskfilter. If a previous maskfilter exists, its reference count is decremented. If maskfilter is non-nil, its reference count is incremented. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>maskfilter</em>&nbsp;</td><td>the new filter (or nil) to be installed into the paint </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>its parameter (maskfilter)</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a42" doxytag="SkPaint::setPathEffect"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkPathEffect.html">SkPathEffect</a>* SkPaint::setPathEffect </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classSkPathEffect.html">SkPathEffect</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>effect</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set a patheffect object into the SkPaint, or nil to clear any previous patheffect. If a previous patheffect exists, its reference count is decremented. If patheffect is non-nil, its reference count is incremented. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>effect</em>&nbsp;</td><td>the new path effect (or nil) to be installed in the paint </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>its parameter (effect)</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a37" doxytag="SkPaint::setShader"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkShader.html">SkShader</a>* SkPaint::setShader </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classSkShader.html">SkShader</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>shader</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set a shader object into the SkPaint, or nil to clear any previous shader. If a previous shader exists, its reference count is decremented. If shader is non-nil, its reference count is incremented. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>shader</em>&nbsp;</td><td>the new shader (or nil) to be installed in the paint </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>its parameter (shader)</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a14" doxytag="SkPaint::setStrikeThruTextOn"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setStrikeThruTextOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">bool&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper for setFlags(), setting or clearing the kStrikeThruText_Mask bit </td>
</tr>
</table>
<a class="anchor" name="a31" doxytag="SkPaint::setStrokeCap"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setStrokeCap </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classSkPaint.html#w36">Cap</a>&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's stroke cap type. </td>
</tr>
</table>
<a class="anchor" name="a33" doxytag="SkPaint::setStrokeJoin"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setStrokeJoin </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classSkPaint.html#w37">Join</a>&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's stroke join type. </td>
</tr>
</table>
<a class="anchor" name="a29" doxytag="SkPaint::setStrokeMiter"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setStrokeMiter </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SkScalar&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's stroke miter value. This is used to control the behavior of miter joins when the joins angle is sharp. This value must be &gt;= 0. </td>
</tr>
</table>
<a class="anchor" name="a27" doxytag="SkPaint::setStrokeWidth"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setStrokeWidth </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SkScalar&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the width for framing. 0 indicates framing in hairline mode, which always draws a single pixel independent of the current matrix. This value must be &gt;= 0. </td>
</tr>
</table>
<a class="anchor" name="a18" doxytag="SkPaint::setStyle"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setStyle </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classSkPaint.html#w35">Style</a>&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's style, used for controlling how primitives' geometries are interpreted (except for drawBitmap, which always assumes kFill_Style). </td>
</tr>
</table>
<a class="anchor" name="a48" doxytag="SkPaint::setTextAlign"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setTextAlign </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">Align&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's text alignment. </td>
</tr>
</table>
<a class="anchor" name="a52" doxytag="SkPaint::setTextScaleX"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setTextScaleX </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SkScalar&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>scaleX</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's horizontal scale factor for text. The default value is 1.0. Values &gt; 1.0 will stretch the text wider. Values &lt; 1.0 will stretch the text narrower. </td>
</tr>
</table>
<a class="anchor" name="a50" doxytag="SkPaint::setTextSize"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setTextSize </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SkScalar&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's text size. This value must be &gt; 0 </td>
</tr>
</table>
<a class="anchor" name="a54" doxytag="SkPaint::setTextSkewX"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setTextSkewX </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SkScalar&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>skewX</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's horizontal skew factor for text. The default value is 0. For approximating oblique text, use values around -0.25 </td>
</tr>
</table>
<a class="anchor" name="a56" doxytag="SkPaint::setTextTracking"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setTextTracking </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SkScalar&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>tracking</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the paint's text tracking value. The defautl value is 0. This value is used to add/subtract space between characters in a line of text. </td>
</tr>
</table>
<a class="anchor" name="a46" doxytag="SkPaint::setTypeface"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkTypeface* SkPaint::setTypeface </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SkTypeface *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>typeface</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the paint's typeface object (or nil for the default font). This object identifies which font to use when drawing or measuring text. If a previous typeface exists, its reference count is decremented. If typeface is non-nil, its reference count is incremented. </td>
</tr>
</table>
<a class="anchor" name="a12" doxytag="SkPaint::setUnderlineTextOn"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void SkPaint::setUnderlineTextOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">bool&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Helper for setFlags(), setting or clearing the kUnderlineText_Mask bit </td>
</tr>
</table>
<a class="anchor" name="a39" doxytag="SkPaint::setXfermode"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classSkXfermode.html">SkXfermode</a>* SkPaint::setXfermode </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classSkXfermode.html">SkXfermode</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>xfermode</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set a xfermode object into the SkPaint, or nil to clear any previous xfermode. If a previous xfermode exists, its reference count is decremented. If xfermode is non-nil, its reference count is incremented. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>xfermode</em>&nbsp;</td><td>the new xfermode (or nil) to be installed in the paint </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>its parameter (xfermode)</dd></dl>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="SkPaint_8h-source.html">SkPaint.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue May 9 14:35:23 2006 for SGL by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.0 </small></address>
</body>
</html>