Beispiel #1
0
 protected virtual void OnDrawBuffer(DrawBufferEventArgs args)
 {
     if (DrawBuffer != null)
     {
         DrawBuffer(this, args);
     }
 }
Beispiel #2
0
 private void DrawBufferInternal()
 {
     using (Graphics g = Graphics.FromImage(_buffer))
     {
         DrawBufferEventArgs args = new DrawBufferEventArgs(g, _buffer);
         OnDrawBuffer(args);
     }
 }