BufferedGraphics.Render Method

Definition

Writes the contents of the graphics buffer.

Overloads

Render()

Writes the contents of the graphics buffer to the default device.

Render(Graphics)

Writes the contents of the graphics buffer to the specified Graphics object.

Render(IntPtr)

Writes the contents of the graphics buffer to the device context associated with the specified IntPtr handle.

Render()

Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs

Writes the contents of the graphics buffer to the default device.

C#
public void Render();

Remarks

This method writes the contents of the graphics buffer to the device specified by calling the Allocate method of the BufferedGraphicsContext used to create this BufferedGraphics object.

See also

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Render(Graphics)

Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs

Writes the contents of the graphics buffer to the specified Graphics object.

C#
public void Render(System.Drawing.Graphics? target);
C#
public void Render(System.Drawing.Graphics target);

Parameters

target
Graphics

A Graphics object to which to write the contents of the graphics buffer.

Examples

The following code example demonstrates rendering the contents of the graphics buffer to a specified Graphics object. This code is part of a larger example provided for the BufferedGraphics class.

C#
private void RenderToGraphics(Graphics g)
{
    grafx.Render( g );
}

Remarks

This method writes the contents of the graphics buffer to the specified Graphics object.

See also

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Render(IntPtr)

Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs
Source:
BufferedGraphics.cs

Writes the contents of the graphics buffer to the device context associated with the specified IntPtr handle.

C#
public void Render(IntPtr targetDC);

Parameters

targetDC
IntPtr

An IntPtr that points to the device context to which to write the contents of the graphics buffer.

Examples

The following code example demonstrates how to render the contents of the graphics buffer grafx to a specified device context. This code is part of a larger example provided for the BufferedGraphics class.

C#
private void RenderToDeviceContextHandle(IntPtr hDC)
{
    grafx.Render( hDC );
}

Remarks

This method writes the contents of the graphics buffer to the device context associated with the specified IntPtr handle.

See also

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10