Skip to content
Jing edited this page Aug 13, 2018 · 1 revision

Handling of GDI+ Bitmap

.NET Windows Form rendering system is based on Windows GDI+ API.

Rendering GDI+ bitmap

System.Drawing.Bitmap bitmap = ...

protected override void OnRender(D2DGraphics g)
{
  g.DrawBitmap(bitmap, this.ClientRectangle);
}
Clone this wiki locally