Table of Contents

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

renderer IRenderer<TPixel>
bounds RectInt32

Returns

ISurface<TPixel>

Type Parameters

TPixel