Method WriteSource
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
WriteSource(IBitmap, IBitmapSource)
Copies the source bitmap to the top left of the destination bitmap.
public static void WriteSource(this IBitmap dst, IBitmapSource source)
Parameters
dstIBitmapsourceIBitmapSource
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
Exceptions
- ArgumentException
The pixel formats do not match.
WriteSource(IBitmap, Point2Int32, IBitmapSource, Point2Int32)
Copies the source bitmap starting from the specified source offset to the destination bitmap at the specified destination offset.
public static void WriteSource(this IBitmap dst, Point2Int32 dstOffset, IBitmapSource source, Point2Int32 sourceOffset)
Parameters
dstIBitmapdstOffsetPoint2Int32sourceIBitmapSourcesourceOffsetPoint2Int32
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
Exceptions
- ArgumentException
The pixel formats do not match.
WriteSource(IBitmap, Point2Int32, IBitmapSource, SizeInt32)
Copies the specified portion of the source bitmap to the destination bitmap at the specified destination offset.
public static void WriteSource(this IBitmap dst, Point2Int32 dstOffset, IBitmapSource source, SizeInt32 sourceSize)
Parameters
dstIBitmapdstOffsetPoint2Int32sourceIBitmapSourcesourceSizeSizeInt32
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
Exceptions
- ArgumentException
The pixel formats do not match.
WriteSource(IBitmap, Point2Int32, IBitmapSource, RectInt32)
Copies the specified portion of the source bitmap to the destination bitmap at the specified destination offset.
public static void WriteSource(this IBitmap dst, Point2Int32 dstOffset, IBitmapSource source, RectInt32 sourceRect)
Parameters
dstIBitmapdstOffsetPoint2Int32sourceIBitmapSourcesourceRectRectInt32
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
Exceptions
- ArgumentException
The pixel formats do not match.
WriteSource(IBitmap, Point2Int32, IBitmapSource)
Copies the source bitmap to the destination bitmap at the specified destination offset.
public static void WriteSource(this IBitmap dst, Point2Int32 dstOffset, IBitmapSource source)
Parameters
dstIBitmapdstOffsetPoint2Int32sourceIBitmapSource
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
Exceptions
- ArgumentException
The pixel formats do not match.
WriteSource(IBitmap, IBitmapSource, Point2Int32)
Copies the source bitmap starting from the specified source offset to the top left of the destination bitmap.
public static void WriteSource(this IBitmap dst, IBitmapSource source, Point2Int32 sourceOffset)
Parameters
dstIBitmapsourceIBitmapSourcesourceOffsetPoint2Int32
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
Exceptions
- ArgumentException
The pixel formats do not match.
WriteSource(IBitmap, IBitmapSource, SizeInt32)
Copies the specified portion of the source bitmap to the top left of the destination bitmap.
public static void WriteSource(this IBitmap dst, IBitmapSource source, SizeInt32 sourceSize)
Parameters
dstIBitmapsourceIBitmapSourcesourceSizeSizeInt32
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
Exceptions
- ArgumentException
The pixel formats do not match.
WriteSource(IBitmap, IBitmapSource, RectInt32)
Copies the specified portion of the source bitmap to the top left of the destination bitmap.
public static void WriteSource(this IBitmap dst, IBitmapSource source, RectInt32 sourceRect)
Parameters
dstIBitmapsourceIBitmapSourcesourceRectRectInt32
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
Exceptions
- ArgumentException
The pixel formats do not match.
WriteSource<TPixel>(IBitmap<TPixel>, IBitmapSource<TPixel>)
Copies the source bitmap to the top left of the destination bitmap.
public static void WriteSource<TPixel>(this IBitmap<TPixel> dst, IBitmapSource<TPixel> source) where TPixel : unmanaged, INaturalPixelInfo
Parameters
dstIBitmap<TPixel>sourceIBitmapSource<TPixel>
Type Parameters
TPixel
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
WriteSource<TPixel>(IBitmap<TPixel>, Point2Int32, IBitmapSource<TPixel>, Point2Int32)
Copies the source bitmap starting from the specified source offset to the destination bitmap at the specified destination offset.
public static void WriteSource<TPixel>(this IBitmap<TPixel> dst, Point2Int32 dstOffset, IBitmapSource<TPixel> source, Point2Int32 sourceOffset) where TPixel : unmanaged, INaturalPixelInfo
Parameters
dstIBitmap<TPixel>dstOffsetPoint2Int32sourceIBitmapSource<TPixel>sourceOffsetPoint2Int32
Type Parameters
TPixel
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
WriteSource<TPixel>(IBitmap<TPixel>, Point2Int32, IBitmapSource<TPixel>, SizeInt32)
Copies the specified portion of the source bitmap to the destination bitmap at the specified destination offset.
public static void WriteSource<TPixel>(this IBitmap<TPixel> dst, Point2Int32 dstOffset, IBitmapSource<TPixel> source, SizeInt32 sourceSize) where TPixel : unmanaged, INaturalPixelInfo
Parameters
dstIBitmap<TPixel>dstOffsetPoint2Int32sourceIBitmapSource<TPixel>sourceSizeSizeInt32
Type Parameters
TPixel
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
WriteSource<TPixel>(IBitmap<TPixel>, Point2Int32, IBitmapSource<TPixel>, RectInt32)
Copies the specified portion of the source bitmap to the destination bitmap at the specified destination offset.
public static void WriteSource<TPixel>(this IBitmap<TPixel> dst, Point2Int32 dstOffset, IBitmapSource<TPixel> source, RectInt32 sourceRect) where TPixel : unmanaged, INaturalPixelInfo
Parameters
dstIBitmap<TPixel>dstOffsetPoint2Int32sourceIBitmapSource<TPixel>sourceRectRectInt32
Type Parameters
TPixel
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
WriteSource<TPixel>(IBitmap<TPixel>, Point2Int32, IBitmapSource<TPixel>)
Copies the source bitmap to the destination bitmap at the specified destination offset.
public static void WriteSource<TPixel>(this IBitmap<TPixel> dst, Point2Int32 dstOffset, IBitmapSource<TPixel> source) where TPixel : unmanaged, INaturalPixelInfo
Parameters
dstIBitmap<TPixel>dstOffsetPoint2Int32sourceIBitmapSource<TPixel>
Type Parameters
TPixel
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
WriteSource<TPixel>(IBitmap<TPixel>, IBitmapSource<TPixel>, Point2Int32)
Copies the source bitmap starting from the specified source offset to the top left of the destination bitmap.
public static void WriteSource<TPixel>(this IBitmap<TPixel> dst, IBitmapSource<TPixel> source, Point2Int32 sourceOffset) where TPixel : unmanaged, INaturalPixelInfo
Parameters
dstIBitmap<TPixel>sourceIBitmapSource<TPixel>sourceOffsetPoint2Int32
Type Parameters
TPixel
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
WriteSource<TPixel>(IBitmap<TPixel>, IBitmapSource<TPixel>, SizeInt32)
Copies the specified portion of the source bitmap to the top left of the destination bitmap.
public static void WriteSource<TPixel>(this IBitmap<TPixel> dst, IBitmapSource<TPixel> source, SizeInt32 sourceSize) where TPixel : unmanaged, INaturalPixelInfo
Parameters
dstIBitmap<TPixel>sourceIBitmapSource<TPixel>sourceSizeSizeInt32
Type Parameters
TPixel
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.
WriteSource<TPixel>(IBitmap<TPixel>, IBitmapSource<TPixel>, RectInt32)
Copies the specified portion of the source bitmap to the top left of the destination bitmap.
public static void WriteSource<TPixel>(this IBitmap<TPixel> dst, IBitmapSource<TPixel> source, RectInt32 sourceRect) where TPixel : unmanaged, INaturalPixelInfo
Parameters
dstIBitmap<TPixel>sourceIBitmapSource<TPixel>sourceRectRectInt32
Type Parameters
TPixel
Remarks
The whole copy operation may be split up into multiple calls to Lock(RectInt32, BitmapLockOptions) and CopyPixels(void*, int, uint, in RectInt32?) in order to stay within the maximum buffer size limitation (4GB). This is very important when working with large bitmaps.