Method ToSurface
- Namespace
- PaintDotNet.Rendering
- Assembly
- PaintDotNet.Core.dll
ToSurface<TPixel>(IRenderer<TPixel>)
public static ISurface<TPixel> ToSurface<TPixel>(this IRenderer<TPixel> renderer) where TPixel : unmanaged, INaturalPixelInfo
Parameters
renderer
IRenderer<TPixel>
Returns
- ISurface<TPixel>
Type Parameters
TPixel
ToSurface<TPixel>(IRenderer<TPixel>, RectInt32)
public static ISurface<TPixel> ToSurface<TPixel>(this IRenderer<TPixel> renderer, RectInt32 bounds) where TPixel : unmanaged, INaturalPixelInfo
Parameters
Returns
- ISurface<TPixel>
Type Parameters
TPixel