public PlacingTexture(LoadingTexture loading_texture) : this(loading_texture, 0, 0, 0) { }
public PlacingTexture(LoadingTexture loading_texture, int x, int y, int _index) { this.LoadingTexture = loading_texture; X = x; Y = y; if (loading_texture.PaddingFill == PaddingFill.None || loading_texture.TexelPosition == TexelPosition.Shrink) { CorrectedWidth = loading_texture.Bitmap.Width; CorrectedHeight = loading_texture.Bitmap.Height; } else if (loading_texture.TexelPosition == TexelPosition.TopLeft) { CorrectedWidth = loading_texture.Bitmap.Width + 1; CorrectedHeight = loading_texture.Bitmap.Height + 1; } else { CorrectedWidth = loading_texture.Bitmap.Width + 2; CorrectedHeight = loading_texture.Bitmap.Height + 2; } Area = (long)CorrectedWidth * (long)CorrectedHeight; index = _index; }