Holds data describing a pix-it image.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PixItData | |
{ | |
private readonly Color? _bgColor; | |
private readonly int _pixelsWide; | |
private readonly int _pixelsHigh; | |
private readonly int _pixelSize; | |
private readonly Dictionary<Color, IEnumerable<Pixel>> _data; | |
public PixItData(Color? bgColor, int pixelsWide, | |
int pixelsHigh, int pixelSize, | |
Dictionary<Color, IEnumerable<Pixel>> data) | |
{ | |
_bgColor = bgColor; | |
_pixelsWide = pixelsWide; | |
_pixelsHigh = pixelsHigh; | |
_pixelSize = pixelSize; | |
_data = data; | |
} | |
public Color? Background | |
{ | |
get { return _bgColor; } | |
} | |
public int PixelsWide | |
{ | |
get { return _pixelsWide; } | |
} | |
public int PixelsHigh | |
{ | |
get { return _pixelsHigh; } | |
} | |
public int PixelSize | |
{ | |
get { return _pixelSize; } | |
} | |
public Dictionary<Color, IEnumerable<Pixel>> Data | |
{ | |
get { return _data; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment