示例#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;
 }
示例#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();
        }
示例#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();
        }
示例#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);
 }
示例#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);
 }
示例#6
0
 /// <summary>
 /// Make a new (linear) GraphicsData object. Use load(String) to load data.
 /// </summary>
 public GraphicsData(PaletteData palData) : this(false, palData)
 {
 }
示例#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);
 }
示例#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);
 }
示例#9
0
 /// <summary>
 /// Make a new (linear) GraphicsData object. Use load(String) to load data.
 /// </summary>
 public GraphicsData(PaletteData palData)
     : this(false, palData)
 {
 }
示例#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;
 }