private void UpdateStandardImage()
        {
            ScreenImage dataPreview = new ScreenImage();

            dataPreview.m_ui16StartAddress = loadedProgram.StartAddress;
            dataPreview.m_ui16DataLength   = loadedProgram.ProgramLength;
            dataPreview.bScrnData          = bScrnData;
            dataPreview.m_bFlash           = m_bFlash;

            dataPreview.DrawScreenImage(ScreenImage.ScreenImageSize.IMAGE_SIZE_NORMAL, ScreenImage.ScreenImageFormat.IMAGE_FORMAT_TEXT);
            pictureBox1.Image = dataPreview.screenImageData;
        }
示例#2
0
        public void InitialiseView()
        {
            oricScreenImage.m_ui16StartAddress = ProgramData.StartAddress;
            oricScreenImage.m_ui16DataLength   = ProgramData.ProgramLength;
            oricScreenImage.bScrnData          = ProgramData.m_programData;

            if (ProgramData.Format == OricProgram.ProgramFormat.HiresScreen)
            {
                screenImageFormat = ScreenImage.ScreenImageFormat.IMAGE_FORMAT_HIRES;
                checkBoxAttributeIndicator.Enabled = false;
                checkBoxAttributeIndicator.Checked = false;
            }
            else
            {
                screenImageFormat = ScreenImage.ScreenImageFormat.IMAGE_FORMAT_TEXT;
            }

            oricScreenImage.DrawScreenImage(ScreenImage.ScreenImageSize.IMAGE_SIZE_ENLARGED, screenImageFormat);
            pictureBoxScreenImage.Image = oricScreenImage.screenImageData;

            // Make a copy of the screen data
            tmpScreenData = new byte[ProgramData.ProgramLength];

            for (int index = 0; index < ProgramData.ProgramLength; index++)
            {
                tmpScreenData[index] = ProgramData.m_programData[index];
            }

            if (screenImageFormat == ScreenImage.ScreenImageFormat.IMAGE_FORMAT_TEXT)
            {
                if (FlashTimer == null)
                {
                    FlashTimer          = new System.Windows.Forms.Timer();
                    FlashTimer.Interval = 700;
                    FlashTimer.Start();
                    FlashTimer.Tick += new EventHandler(Timer_Tick);
                }
            }
        }