Table of Contents

Method WriteRegion

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.Core.dll

WriteRegion<TPixel>(IBitmap<TPixel>, Point2Int32, RegionPtr<TPixel>)

Copies the source region to the destination bitmap at the specified destination offset.

public static void WriteRegion<TPixel>(this IBitmap<TPixel> dst, Point2Int32 dstOffset, RegionPtr<TPixel> sourceRegion) where TPixel : unmanaged, INaturalPixelInfo

Parameters

dst IBitmap<TPixel>
dstOffset Point2Int32
sourceRegion RegionPtr<TPixel>

Type Parameters

TPixel

WriteRegion<TPixel>(IBitmap<TPixel>, RegionPtr<TPixel>)

Copies the source region to the top left of the destination bitmap.

public static void WriteRegion<TPixel>(this IBitmap<TPixel> dst, RegionPtr<TPixel> sourceRegion) where TPixel : unmanaged, INaturalPixelInfo

Parameters

dst IBitmap<TPixel>
sourceRegion RegionPtr<TPixel>

Type Parameters

TPixel