Επεξεργασία

Κοινή χρήση μέσω


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

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

public:
 void Render();
public void Render ();
member this.Render : unit -> unit
Public Sub 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

Render(Graphics)

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.

public:
 void Render(System::Drawing::Graphics ^ target);
public void Render (System.Drawing.Graphics? target);
public void Render (System.Drawing.Graphics target);
member this.Render : System.Drawing.Graphics -> unit
Public Sub Render (target As Graphics)

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.

private:
   void RenderToGraphics( Graphics^ g )
   {
      grafx->Render( g );
   }
private void RenderToGraphics(Graphics g)
{
    grafx.Render( g );
}
Private Sub RenderToGraphics(g As Graphics)
    grafx.Render(g)
End Sub

Remarks

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

See also

Applies to

Render(IntPtr)

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.

public:
 void Render(IntPtr targetDC);
public void Render (IntPtr targetDC);
member this.Render : nativeint -> unit
Public Sub Render (targetDC As IntPtr)

Parameters

targetDC
IntPtr

nativeint

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.

private:
   void RenderToDeviceContextHandle( IntPtr hDC )
   {
      grafx->Render( hDC );
   }
private void RenderToDeviceContextHandle(IntPtr hDC)
{
    grafx.Render( hDC );
}
Private Sub RenderToDeviceContextHandle(hDC As IntPtr)
    grafx.Render(hDC)
End Sub

Remarks

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

See also

Applies to