protected void UpdateBitmap()
{
if ( m_Bitmap == null )
return;
using ( Graphics G = Graphics.FromImage( m_Bitmap ) )
{
G.FillRectangle( Brushes.White, 0, 0, Width, Height );
//
// G.DrawLine( Pens.Black, 10, 0, 10, Height );
// G.DrawLine( Pens.Black, 0, Height-10, Width, Height-10 );
//
// float x = 0.0f;
// float y = GetFilmicCurve( x );
// for ( int X=10; X < Width; X++ )
// {
// float px = x;
// float py = y;
// x = (float) X / (Width - 20);
// y = m_ScaleY * GetFilmicCurve( m_ScaleX * x );
//
// DrawLine( G, px, py, x, y );
// }
}
Invalidate();
}