示例#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);
        }