Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 /// <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);
 }
Ejemplo n.º 5
0
 /// <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);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Make a new (linear) GraphicsData object. Use load(String) to load data.
 /// </summary>
 public GraphicsData(PaletteData palData) : this(false, palData)
 {
 }
Ejemplo n.º 7
0
 /// <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);
 }
Ejemplo n.º 8
0
 /// <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);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Make a new (linear) GraphicsData object. Use load(String) to load data.
 /// </summary>
 public GraphicsData(PaletteData palData)
     : this(false, palData)
 {
 }
Ejemplo n.º 10
0
 /// <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;
 }