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); }
public TiledDrawable(SubtextureDrawable subtexture) : base(subtexture.Texture2D) { }