NinePatch
A rectangular region of a Graphic (which may be the graphic's entire area) which is divided into 9 patches in a grid pattern.
It can be drawn at any size without scaling the entire image. Instead, the central patch is scaled in X & Y. The top-center and bottom-center patches are scaled in X only. The middle-left and middle-right patches are scaled in Y only. The corner patches are not scaled.
Used for button backgrounds, rectangular frames, speech bubbles.
Note, this is not an Appearance, see NinePatchAppearance.
Properties
Together with graphicTop, graphicLeft and graphicWidth, determines the rectangular region within the graphic.
Together with graphicTop, graphicWidth, graphicHeight, determines the rectangular region within the graphic. Measured in pixels, with (0,0) being at the top left of the image.
Only valid while the .kyd file is being loaded. Once loaded, resolveReferences is called, and afterward, graphicPath is reset to blank and no longer used.
Together with graphicLeft, graphicWidth, graphicHeight, determines the rectangular region within the graphic. Measured in pixels, with (0,0) being at the top left of the image. NOTE. Almost all other coordinates have the Y axis pointing upwards, whereas here, the Y axis points downwards.
Together with graphicTop, graphicLeft and graphicHeight, determines the rectangular region within the graphic.
When we animate an Actor, we change the actor's position (Actor.position)
Functions
Pose and Graphic return themselves. NinePatch returns a NinePatchAppearance.
Creates an Appearance with the same tint. Also, if the new appearances is StretchableAppearance then it will have the same bounds as the previous appearance.
Set the actor's appearance.