Layer.drawText

機能/意味
Character drawing
タイプ
Layerクラスのメソッド
構文
drawText(x, y, text, color, opa=255, aa=true, shadowlevel=0, shadowcolor=0x000000, shadowwidth=0, shadowofsx=0, shadowofsy=0)
引数
x  Specifies the x coordinate (at image position) of the origin at which to start drawing characters in pixels.
y  Specifies the y coordinate (at the image position) of the origin at which to start drawing characters in pixels.
text  Specify the character to be drawn.
color  Specify the color of the text to be drawn in 0xRRGGBB format.
opa  Specify the opacity (-255 to 0 to 255) of the character to be drawn.
 Specifying a negative number is valid only when Layer.face is dfAlpha, in which case the opacity is removed from the character shape (the smaller the value, the greater the effect).
aa  Specify whether to perform anti-aliasing.
 Specifying true performs anti-aliasing. If you specify false, it will not be performed.
shadowlevel  Specifies the opacity of the shadow. The appropriate value depends on the value of the shadowwidth argument.
If 0 is specified, no shadow is drawn.
shadowcolor  Specifies the color of the shadow in 0xRRGGBB format.
shadowwidth  Specifies the width (blur) of the shadow. 0 is the sharpest (no blurring), and higher values can blur shadows.
shadowofsx  Specifies the x-coordinate value of the shadow location in pixels. If 0 is specified, the shadow is drawn directly below.
shadowofsy  Specifies the y-coordinate value of the shadow location in pixels. If 0 is specified, the shadow is drawn directly below.
戻り値
なし (void)
説明
 Draw text on the layer. Only draws when Layer.face is dfAlpha (or dfBoth) or dfAddAlpha or dfOpaque (or dfMain).
 If dfOpaque (or dfMain) is specified, whether the destination mask is destroyed or protected depends on the Layer.holdAlpha property.
 The font specified by Layer.font is used.