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
sourceSurfaceThe 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
sourceSurfacedstOffsetPoint2Int32
CopySurface(ISurface<ColorBgra>, Point2Int32)
public void CopySurface(ISurface<ColorBgra> source, Point2Int32 dstOffset)
Parameters
sourceISurface<ColorBgra>dstOffsetPoint2Int32
CopySurface(Surface, Point)
Copies the contents of the given surface to a location within this surface.
public void CopySurface(Surface source, Point dstOffset)
Parameters
sourceSurfaceThe surface to copy pixels from.
dstOffsetPointThe 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
sourceSurfaceThe surface to copy pixels from.
sourceRoiRectangleThe 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
sourceISurface<ColorBgra>- The surface to copy pixels from.
sourceRoiRectangle- 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
sourceSurfaceThe surface to copy pixels from.
dstOffsetPointThe location on this surface to start copying pixels to.
srcRectRectangleThe 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
sourceSurfacedstOffsetPoint2Int32srcRectRectInt32
CopySurface(ISurface<ColorBgra>, Point2Int32, RectInt32)
public void CopySurface(ISurface<ColorBgra> source, Point2Int32 dstOffset, RectInt32 srcRect)
Parameters
sourceISurface<ColorBgra>dstOffsetPoint2Int32srcRectRectInt32
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
sourceSurfaceThe surface to copy pixels from.
regionRectangle[]The region to clip copying to.
startIndexintThe starting index within
region.lengthintThe 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)