Beispiel #1
0
 private DoubleBuffer EnsureScrollbarButtonBuffer(int width, int height)
 {
     if (scrollBarButtonBuffer == null)
     {
         scrollBarButtonBuffer = new DoubleBuffer(false);
     }
     scrollBarButtonBuffer.EnsureDBuffer(width, height);
     return(scrollBarButtonBuffer);
 }
Beispiel #2
0
        //   FluidPaintEventArgs paintEventArgs = new FluidPaintEventArgs();

        /// <summary>
        /// Paints the invalid region of the image buffer.
        /// </summary>
        /// <param name="pe"></param>
        private void PaintDoubleBuffer()
        {
            EnsureDoubleBuffer();
            doubleBuffer.EnsureDBuffer(Width, Height + DBufferSpace);
            doubleBuffer.PaintBuffer(PaintContent, ScaleFactor);
        }