Class Image
Content implementation with methods for easy modification.
public class Image : IContent, IResource
- Inheritance
-
Image
- Implements
- Derived
- Inherited Members
Constructors
Image(int, int)
Initializes a new instance of the Image class.
public Image(int width, int height)
Parameters
Image(Image)
Initializes a new instance of the Image class.
public Image(Image i)
Parameters
iImageThe image whose cells should be duplicated.
Properties
Cells
Gets or sets the array of Cells that make up this content.
[JsonInclude]
protected Cell[,] Cells { get; set; }
Property Value
- Cell[,]
this[int, int]
Gets or sets the cell at (x, y).
public Cell this[int x, int y] { get; set; }
Parameters
Property Value
Size
Gets the size of this content.
[JsonIgnore]
public VectorInt Size { get; }
Property Value
Methods
Resize(int, int)
Resizes this image to the specified dimensions.
protected void Resize(int width, int height)
Parameters
Exceptions
- ArgumentOutOfRangeException
Thrown if
widthorheightis negative.