Layer.drawGlyph

機能/意味
Character drawing
タイプ
Layerクラスのメソッド
構文
drawGlyph(x, y, glyph, 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.
glyph  Specifies the glyph to draw.
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 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)
説明
 Draws a glyph on a layer.
 A glyph specifies an array of the form glyph: Array [9] = [width, height, originx, originy, incx, incy, inc, bitmap (Octet), colors].
 If the color of the glyph is omitted, it will be determined to be 256 shades.