Table of Contents

Method CopySurface

Namespace
PaintDotNet
Assembly
PaintDotNet.Core.dll

CopySurface(Surface)

Copies the contents of the given surface to the upper left corner of this surface.

public void CopySurface(Surface source)

Parameters

source Surface

The surface to copy pixels from.

Remarks

The source surface does not need to have the same dimensions as this surface. Clipping will be handled automatically. No resizing will be done.

CopySurface(ISurface<ColorBgra>)

public void CopySurface(ISurface<ColorBgra> source)

Parameters

source ISurface<ColorBgra>

CopySurface(Surface, Point2Int32)

public void CopySurface(Surface source, Point2Int32 dstOffset)

Parameters

source Surface
dstOffset Point2Int32

CopySurface(ISurface<ColorBgra>, Point2Int32)

public void CopySurface(ISurface<ColorBgra> source, Point2Int32 dstOffset)

Parameters

source ISurface<ColorBgra>
dstOffset Point2Int32

CopySurface(Surface, Point)

Copies the contents of the given surface to a location within this surface.

public void CopySurface(Surface source, Point dstOffset)

Parameters

source Surface

The surface to copy pixels from.

dstOffset Point

The offset within this surface to start copying pixels to. This will map to (0,0) in the source.

Remarks

The source surface does not need to have the same dimensions as this surface. Clipping will be handled automatically. No resizing will be done.

CopySurface(ISurface<ColorBgra>, Point)

public void CopySurface(ISurface<ColorBgra> source, Point dstOffset)

Parameters

source ISurface<ColorBgra>
dstOffset Point

CopySurface(Surface, Rectangle)

Copies the contents of the given surface to the upper left of this surface.

public void CopySurface(Surface source, Rectangle sourceRoi)

Parameters

source Surface

The surface to copy pixels from.

sourceRoi Rectangle

The region of the source to copy from. The upper left of this rectangle will be mapped to (0,0) on this surface. The source surface does not need to have the same dimensions as this surface. Clipping will be handled automatically. No resizing will be done.

CopySurface(ISurface<ColorBgra>, Rectangle)

Copies the contents of the given surface to the upper left of this surface.

public void CopySurface(ISurface<ColorBgra> source, Rectangle sourceRoi)

Parameters

source ISurface<ColorBgra>
The surface to copy pixels from.
sourceRoi Rectangle
The region of the source to copy from. The upper left of this rectangle will be mapped to (0,0) on this surface. The source surface does not need to have the same dimensions as this surface. Clipping will be handled automatically. No resizing will be done.

CopySurface(Surface, RectInt32)

public void CopySurface(Surface source, RectInt32 sourceRoi)

Parameters

source Surface
sourceRoi RectInt32

CopySurface(ISurface<ColorBgra>, RectInt32)

public void CopySurface(ISurface<ColorBgra> source, RectInt32 sourceRoi)

Parameters

source ISurface<ColorBgra>
sourceRoi RectInt32

CopySurface(Surface, Point, Rectangle)

Copies a rectangular region of the given surface to a specific location on this surface.

public void CopySurface(Surface source, Point dstOffset, Rectangle srcRect)

Parameters

source Surface

The surface to copy pixels from.

dstOffset Point

The location on this surface to start copying pixels to.

srcRect Rectangle

The region of the source surface to copy pixels from.

Remarks

sourceRoi.Location will be mapped to dstOffset.Location. The source surface does not need to have the same dimensions as this surface. Clipping will be handled automatically. No resizing will be done.

CopySurface(ISurface<ColorBgra>, Point, Rectangle)

public void CopySurface(ISurface<ColorBgra> source, Point dstOffset, Rectangle srcRect)

Parameters

source ISurface<ColorBgra>
dstOffset Point
srcRect Rectangle

CopySurface(Surface, Point2Int32, RectInt32)

public void CopySurface(Surface source, Point2Int32 dstOffset, RectInt32 srcRect)

Parameters

source Surface
dstOffset Point2Int32
srcRect RectInt32

CopySurface(ISurface<ColorBgra>, Point2Int32, RectInt32)

public void CopySurface(ISurface<ColorBgra> source, Point2Int32 dstOffset, RectInt32 srcRect)

Parameters

source ISurface<ColorBgra>
dstOffset Point2Int32
srcRect RectInt32

CopySurface(Surface, PdnRegion)

Copies a region of the given surface to this surface.

public void CopySurface(Surface source, PdnRegion region)

Parameters

source Surface

The surface to copy pixels from.

region PdnRegion

The region to clip copying to.

Remarks

The upper left corner of the source surface will be mapped to the upper left of this surface, and only those pixels that are defined by the region will be copied. The source surface does not need to have the same dimensions as this surface. Clipping will be handled automatically. No resizing will be done.

CopySurface(ISurface<ColorBgra>, PdnRegion)

public void CopySurface(ISurface<ColorBgra> source, PdnRegion region)

Parameters

source ISurface<ColorBgra>
region PdnRegion

CopySurface(Surface, Rectangle[])

public void CopySurface(Surface source, Rectangle[] region)

Parameters

source Surface
region Rectangle[]

CopySurface(ISurface<ColorBgra>, Rectangle[])

public void CopySurface(ISurface<ColorBgra> source, Rectangle[] region)

Parameters

source ISurface<ColorBgra>
region Rectangle[]

CopySurface(Surface, Rectangle[], int, int)

Copies a region of the given surface to this surface.

public void CopySurface(Surface source, Rectangle[] region, int startIndex, int length)

Parameters

source Surface

The surface to copy pixels from.

region Rectangle[]

The region to clip copying to.

startIndex int

The starting index within region.

length int

The number of elements to use from region.

Remarks

The upper left corner of the source surface will be mapped to the upper left of this surface, and only those pixels that are defined by the region will be copied. The source surface does not need to have the same dimensions as this surface. Clipping will be handled automatically. No resizing will be done.

CopySurface(ISurface<ColorBgra>, Rectangle[], int, int)

public void CopySurface(ISurface<ColorBgra> source, Rectangle[] region, int startIndex, int length)

Parameters

source ISurface<ColorBgra>
region Rectangle[]
startIndex int
length int

CopySurface(Surface, RectInt32[])

public void CopySurface(Surface source, RectInt32[] region)

Parameters

source Surface
region RectInt32[]

CopySurface(ISurface<ColorBgra>, RectInt32[])

public void CopySurface(ISurface<ColorBgra> source, RectInt32[] region)

Parameters

source ISurface<ColorBgra>
region RectInt32[]

CopySurface(Surface, RectInt32[], int, int)

public void CopySurface(Surface source, RectInt32[] region, int startIndex, int length)

Parameters

source Surface
region RectInt32[]
startIndex int
length int

CopySurface(ISurface<ColorBgra>, RectInt32[], int, int)

public void CopySurface(ISurface<ColorBgra> source, RectInt32[] region, int startIndex, int length)

Parameters

source ISurface<ColorBgra>
region RectInt32[]
startIndex int
length int