private void Init(String name, Bitmap bitmap, PaddingFill padding_fill, TexelPosition texel_position, Color padding_colour) { Name = name; this.Bitmap = bitmap; this.PaddingFill = padding_fill; this.TexelPosition = texel_position; PaddingColour = padding_colour; }
public TextureInfo(String name, double left, double top, double right, double bottom, int width, int height, PaddingFill padding_fill, TexelPosition texel_position, Color padding_colour) { Name = name; Left = left; Top = top; Right = right; Bottom = bottom; Width = width; Height = height; PaddingFill = padding_fill; TexelPosition = texel_position; PaddingColour = padding_colour; }
public LoadingTexture(String filename, PaddingFill padding_fill, TexelPosition texel_position) : this(filename, padding_fill, texel_position, Color.Transparent) { }
public LoadingTexture(String filename, PaddingFill padding_fill, TexelPosition texel_position, Color padding_colour) { if (!File.Exists(filename)) throw new FileNotFoundException(new FileNotFoundException().Message, filename); Init(Path.GetFileName(filename), new Bitmap(filename), padding_fill, texel_position, padding_colour); }
public LoadingTexture(String name, Bitmap bitmap, PaddingFill padding_fill, TexelPosition texel_position) : this(name, bitmap, padding_fill, texel_position, Color.Transparent) { }
public LoadingTexture(String name, Bitmap bitmap, PaddingFill padding_fill, TexelPosition texel_position, Color padding_colour) { Init(name, bitmap, padding_fill, texel_position, padding_colour); }