Method GetBufferSize
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
GetBufferSize(int, int, int, in PixelFormat)
public static nuint GetBufferSize(int width, int height, int stride, in PixelFormat pixelFormat)
Parameters
widthintheightintstrideintpixelFormatPixelFormat
Returns
Exceptions
- OverflowException
The buffer is too large for the return type of this method.
GetBufferSize(SizeInt32, int, in PixelFormat)
public static nuint GetBufferSize(SizeInt32 size, int stride, in PixelFormat pixelFormat)
Parameters
sizeSizeInt32strideintpixelFormatPixelFormat
Returns
Exceptions
- OverflowException
The buffer is too large for the return type of this method.
GetBufferSize<TPixel>(int, int, int)
public static nuint GetBufferSize<TPixel>(int width, int height, int stride) where TPixel : unmanaged, INaturalPixelInfo
Parameters
Returns
Type Parameters
TPixel
Exceptions
- OverflowException
The buffer is too large for the return type of this method.
GetBufferSize<TPixel>(SizeInt32, int)
public static nuint GetBufferSize<TPixel>(SizeInt32 size, int stride) where TPixel : unmanaged, INaturalPixelInfo
Parameters
Returns
Type Parameters
TPixel
Exceptions
- OverflowException
The buffer is too large for the return type of this method.