Package totalcross.ui

Class NinePatch


  • public class NinePatch
    extends java.lang.Object
    NinePatch is a class that creates a button of any size by dividing a sample button into 9 parts: the 4 corners, the 4 sides, and the middle. Corner are drawn unscaled, sides are resized in a single direction, and the middle is resized, colorized and then dithered. This class is thread-safe.
    Since:
    TotalCross 1.3