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
SurfaceThe 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
CopySurface(Surface, Point2Int32)
public void CopySurface(Surface source, Point2Int32 dstOffset)
Parameters
source
SurfacedstOffset
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
SurfaceThe surface to copy pixels from.
dstOffset
PointThe 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
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
SurfaceThe surface to copy pixels from.
sourceRoi
RectangleThe 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
CopySurface(ISurface<ColorBgra>, RectInt32)
public void CopySurface(ISurface<ColorBgra> source, RectInt32 sourceRoi)
Parameters
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
SurfaceThe surface to copy pixels from.
dstOffset
PointThe location on this surface to start copying pixels to.
srcRect
RectangleThe 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
CopySurface(Surface, Point2Int32, RectInt32)
public void CopySurface(Surface source, Point2Int32 dstOffset, RectInt32 srcRect)
Parameters
source
SurfacedstOffset
Point2Int32srcRect
RectInt32
CopySurface(ISurface<ColorBgra>, Point2Int32, RectInt32)
public void CopySurface(ISurface<ColorBgra> source, Point2Int32 dstOffset, RectInt32 srcRect)
Parameters
source
ISurface<ColorBgra>dstOffset
Point2Int32srcRect
RectInt32
CopySurface(Surface, PdnRegion)
Copies a region of the given surface to this surface.
public void CopySurface(Surface source, PdnRegion region)
Parameters
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
CopySurface(Surface, Rectangle[])
public void CopySurface(Surface source, Rectangle[] region)
Parameters
CopySurface(ISurface<ColorBgra>, Rectangle[])
public void CopySurface(ISurface<ColorBgra> source, Rectangle[] region)
Parameters
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
SurfaceThe surface to copy pixels from.
region
Rectangle[]The region to clip copying to.
startIndex
intThe starting index within
region
.length
intThe 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
CopySurface(Surface, RectInt32[])
public void CopySurface(Surface source, RectInt32[] region)
Parameters
CopySurface(ISurface<ColorBgra>, RectInt32[])
public void CopySurface(ISurface<ColorBgra> source, RectInt32[] region)
Parameters
CopySurface(Surface, RectInt32[], int, int)
public void CopySurface(Surface source, RectInt32[] region, int startIndex, int length)
Parameters
CopySurface(ISurface<ColorBgra>, RectInt32[], int, int)
public void CopySurface(ISurface<ColorBgra> source, RectInt32[] region, int startIndex, int length)