예제 #1
0
파일: Form1.cs 프로젝트: maoap1/grcis-1
        public Form1()
        {
            InitializeComponent();

            string name, param;

            ImageHistogram.InitParams(out param, out name);
            textParam.Text = param;
            Text          += " (" + rev + ") '" + name + '\'';
        }
예제 #2
0
        private void HistogramForm_Paint(object sender, PaintEventArgs e)
        {
            if (backBuffer == null || Form1.dirty)
            {
                if (backBuffer == null)
                {
                    backBuffer = new Bitmap(ClientSize.Width, ClientSize.Height, PixelFormat.Format24bppRgb);
                }

                ImageHistogram.ComputeHistogram(parent.inputImage, backBuffer, parent.param);
            }

            e.Graphics.DrawImageUnscaled(backBuffer, 0, 0);
        }