Click or drag to resize
DigitalRuneRenderTargetPoolObtain2D Method
Obtains a 2D render target that matches the given specification.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public RenderTarget2D Obtain2D(
	RenderTargetFormat format
)

Parameters

format
Type: DigitalRune.GraphicsRenderTargetFormat
The render target format. If a property in the format is , then the value of the back buffer is used.

Return Value

Type: RenderTarget2D
A render target with the given specified format.
Remarks
This method returns a render target from the pool. If no suitable, free render target is found, a new one is created.
See Also