Example #1
0
        private void DrawPreview()
        {
            LayoutData layout = null;

            switch (Category)
            {
            case LayoutMode.S3:
                layout = new SSLayoutData(File.ReadAllBytes(Path.Combine(path, project.S3Stages[StageNumber])));
                break;

            case LayoutMode.SK:
                layout = new SSLayoutData(Compression.Decompress(Path.Combine(path, project.SKStageSet), CompressionType.Kosinski), StageNumber * SSLayoutData.Size);
                break;

            case LayoutMode.BSChunk:
                layout = new BSChunkLayoutData(Compression.Decompress(Path.Combine(path, project.BlueSphereChunkSet), CompressionType.Kosinski), StageNumber);
                break;

            case LayoutMode.BSLayout:
                layout = new BSStageLayoutData(Compression.Decompress(Path.Combine(path, project.BlueSphereChunkSet), CompressionType.Kosinski), BSChunks);
                break;
            }
            pictureBox1.Image = LayoutDrawer.DrawLayout(layout, 28).ToBitmap(LayoutDrawer.Palette);
        }
Example #2
0
 public SSLayoutAccessor(SSLayoutData data)
 {
     this.data = data;
 }