 | RenderTargetPoolObtain2D Method |
Obtains a 2D render target that matches the given specification.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntaxpublic RenderTarget2D Obtain2D(
RenderTargetFormat format
)
Public Function Obtain2D (
format As RenderTargetFormat
) As RenderTarget2D
public:
RenderTarget2D^ Obtain2D(
RenderTargetFormat format
)
member Obtain2D :
format : RenderTargetFormat -> RenderTarget2D
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:
RenderTarget2DA 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