Method Slice
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Primitives.dll
Slice<T>(RegionPtr<T>, Point2Int32)
public static RegionPtr<T> Slice<T>(this RegionPtr<T> region, Point2Int32 offset) where T : unmanaged
Parameters
region
RegionPtr<T>
offset
Point2Int32
Returns
- RegionPtr<T>
Type Parameters
T
Slice<T>(RegionPtr<T>, Point2Int32, SizeInt32)
public static RegionPtr<T> Slice<T>(this RegionPtr<T> region, Point2Int32 offset, SizeInt32 size) where T : unmanaged
Parameters
region
RegionPtr<T>
offset
Point2Int32
size
SizeInt32
Returns
- RegionPtr<T>
Type Parameters
T
Slice<T>(RegionPtr<T>, int, int, SizeInt32)
public static RegionPtr<T> Slice<T>(this RegionPtr<T> region, int offsetX, int offsetY, SizeInt32 size) where T : unmanaged
Parameters
region
RegionPtr<T>
offsetX
int
offsetY
int
size
SizeInt32
Returns
- RegionPtr<T>
Type Parameters
T
Slice<T>(RegionPtr<T>, Point2Int32, int, int)
public static RegionPtr<T> Slice<T>(this RegionPtr<T> region, Point2Int32 offset, int width, int height) where T : unmanaged
Parameters
region
RegionPtr<T>
offset
Point2Int32
width
int
height
int
Returns
- RegionPtr<T>
Type Parameters
T
Slice<T>(RegionPtr<T>, int, int, int, int)
public static RegionPtr<T> Slice<T>(this RegionPtr<T> region, int x, int y, int width, int height) where T : unmanaged
Parameters
region
RegionPtr<T>
x
int
y
int
width
int
height
int
Returns
- RegionPtr<T>
Type Parameters
T
Slice<T>(RegionPtr<T>, SizeInt32)
public static RegionPtr<T> Slice<T>(this RegionPtr<T> region, SizeInt32 size) where T : unmanaged
Parameters
region
RegionPtr<T>
size
SizeInt32
Returns
- RegionPtr<T>
Type Parameters
T