Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 public LoadingTexture(String filename, PaddingFill padding_fill, TexelPosition texel_position)
     : this(filename, padding_fill, texel_position, Color.Transparent)
 {
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 public LoadingTexture(String name, Bitmap bitmap, PaddingFill padding_fill, TexelPosition texel_position)
     : this(name, bitmap, padding_fill, texel_position, Color.Transparent)
 {
 }
Exemple #6
0
 public LoadingTexture(String name, Bitmap bitmap, PaddingFill padding_fill, TexelPosition texel_position, Color padding_colour)
 {
     Init(name, bitmap, padding_fill, texel_position, padding_colour);
 }