Manages the four rasters of an SCI game.
Exemplo n.º 1
0
        /// <summary>Initialise the renderer.</summary>
        /// <param name="canvas"></param>
        public PictureRenderer(PictureCanvas canvas)
        {
            Canvas = canvas;

            for (var index = 0; index < DitherPalette.Length; index++)
            {
                DitherPalette[index] = DefaultDithers[index % EgaDitherPaletteSize];
            }

            Canvas.Clear();
            Canvas.Visual.SetColor(0, 0);
            Canvas.Priority.SetColor(0);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initialise the browser.
        /// </summary>
        /// <param name="picture"></param>
        public PictureBrowser(Picture picture)
        {
            Picture = picture;
            Canvas = new PictureCanvas(picture);
            Canvas.Visual.DitherBlend = BlendColorsDefault;

            InitializeComponent();
            SetStipplingSpitButtonImage();

            instructionTrackBar.Width = Math.Max(picture.Instructions.Count, 200);
            instructionTrackBar.Maximum = picture.Instructions.Count;
            instructionTrackBar.Value = picture.Instructions.Count;

            this.picture.Width = (int)(Canvas.Resolution.X * 4 / 1.333);
            this.picture.Height = Canvas.Resolution.Y * 4;

            Layer = PictureLayer.Visual;
        }
Exemplo n.º 3
0
        /// <summary>Initialise the renderer.</summary>
        /// <param name="canvas"></param>
        public PictureRenderer(PictureCanvas canvas)
        {
            Canvas = canvas;

            for (var index = 0; index < DitherPalette.Length; index++)
                DitherPalette[index] = DefaultDithers[index % EgaDitherPaletteSize];

            Canvas.Clear();
            Canvas.Visual.SetColor(0, 0);
            Canvas.Priority.SetColor(0);
        }