private void RaiseRenderCompleteEvent(PixelBufferRenderInfo renderInfo) { if (this.RenderComplete != null) { this.RenderComplete(renderInfo); } }
private void RaiseRenderBeginEvent(PixelBufferRenderInfo renderInfo) { if (this.RenderBegin != null) { this.RenderBegin(renderInfo); } }
public override void Render(PixelBufferRenderInfo renderInfo, int x, int y, int width, int height) { RaiseRenderBeginEvent(renderInfo); if (!this.UseTransparentBackground) { renderInfo.Graphics.FillRectangle(backColorBrush, x, y, width, height); } using (System.Drawing.Bitmap bmp = pixelBuffer.ToBitmap()) { renderInfo.Graphics.DrawImage(bmp, x, y, width, height); } RaiseRenderCompleteEvent(renderInfo); }
public abstract void Render(PixelBufferRenderInfo renderInfo, float x, float y, float width, float height);
public abstract void Render(PixelBufferRenderInfo renderInfo, float x, float y);
public abstract void Render(PixelBufferRenderInfo renderInfo, int x, int y, int width, int height);
public abstract void Render(PixelBufferRenderInfo renderInfo, int x, int y);
public override void Render(PixelBufferRenderInfo renderInfo, int x, int y) { this.Render(renderInfo, x, y, pixelBuffer.Width, pixelBuffer.Height); }
void Renderer_RenderBegin(PixelBufferRenderInfo renderInfo) { pixelBuffer.CopyBitmap(_bmp); }