Table of Contents

Constructor Surface

Namespace
PaintDotNet
Assembly
PaintDotNet.Core.dll

Surface(Size)

Creates a new instance of the Surface class.

public Surface(Size size)

Parameters

size Size

The size, in pixels, of the new Surface.

Surface(SizeInt32)

public Surface(SizeInt32 size)

Parameters

size SizeInt32

Surface(Size, SurfaceCreationFlags)

public Surface(Size size, SurfaceCreationFlags surfaceCreationFlags)

Parameters

size Size
surfaceCreationFlags SurfaceCreationFlags

Surface(SizeInt32, SurfaceCreationFlags)

public Surface(SizeInt32 size, SurfaceCreationFlags surfaceCreationFlags)

Parameters

size SizeInt32
surfaceCreationFlags SurfaceCreationFlags

Surface(int, int)

public Surface(int width, int height)

Parameters

width int
height int

Surface(int, int, SurfaceCreationFlags)

Creates a new instance of the Surface class.

public Surface(int width, int height, SurfaceCreationFlags surfaceCreationFlags)

Parameters

width int

The width, in pixels, of the new Surface.

height int

The height, in pixels, of the new Surface.

surfaceCreationFlags SurfaceCreationFlags

The options for creating the Surface.