Exemplo n.º 1
0
        public NinePatchDrawable(SubtextureDrawable subtexture, int left, int right, int top, int bottom)
            : base(subtexture.Texture2D)
        {
            this.Left   = left;
            this.Right  = right;
            this.Top    = top;
            this.Bottom = bottom;

            GenerateNinePatchRects(subtexture.SourceRect, this.NinePatchRects, left, right, top, bottom);
        }
Exemplo n.º 2
0
 public TiledDrawable(SubtextureDrawable subtexture)
     : base(subtexture.Texture2D)
 {
 }