/// <summary> /// Make a new GraphicsData object. Use load(String) to load data. /// </summary> /// <param name="isTiled">If the data is tiled or not.</param> public GraphicsData(bool isTiled, PaletteData palData) : base() { tiled = isTiled; tileSize = new Point(8, 8); width = 64; height = 128; zoom = 1; this.paletteData = palData; isBigEndian = true; graphFormat = GraphicsFormat.FORMAT_4BPP; }
public MainWindow() { InitializeComponent(); this.DoubleBuffered = true; mainWindow = this; paletteData = new PaletteData(PaletteFormat.FORMAT_2BPP, PaletteOrder.BGR); graphicsData = new GraphicsData(paletteData); this.Icon = new Icon(this.GetType().Assembly.GetManifestResourceStream("TiledGGD.program_icon.ico")); updateMenu(); }
/// <summary> /// Make a new GraphicsData object, with the specified file as data. /// </summary> /// <param name="filename">The filename of the file to load.</param> /// <param name="tiled">If the data is tiled or not.</param> public GraphicsData(String filename, bool tiled, PaletteData palData) : this(tiled, palData) { this.load(filename); }
/// <summary> /// Make a new (linear) GraphicsData object, with the specified file as data. /// </summary> /// <param name="filename">The filename of the file to load.</param> public GraphicsData(String filename, PaletteData palData) : this(false, palData) { this.load(filename); }
/// <summary> /// Make a new (linear) GraphicsData object. Use load(String) to load data. /// </summary> public GraphicsData(PaletteData palData) : this(false, palData) { }