public GdiRenderingSurface(IntPtr windowID, int width, int height) { _imageBuffer = new ImageBuffer(); _finalBuffer = new BackBuffer(); _windowID = windowID; this.ClientRectangle = new Rectangle(0, 0, width, height); }
public void RenderImage(ImageBuffer imageBuffer) { RenderImage(imageBuffer.Bitmap); }
/// <summary> /// Implementation of the <see cref="IDisposable"/> pattern /// </summary> /// <param name="disposing">True if this object is being disposed, false if it is being finalized</param> private void Dispose(bool disposing) { if (disposing) { if (_imageBuffer != null) { _imageBuffer.Dispose(); _imageBuffer = null; } if (_finalBuffer != null) { _finalBuffer.Dispose(); _finalBuffer = null; } } }