Table of Contents

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

width int
height int
stride int
pixelFormat PixelFormat

Returns

nuint

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

size SizeInt32
stride int
pixelFormat PixelFormat

Returns

nuint

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

width int
height int
stride int

Returns

nuint

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

size SizeInt32
stride int

Returns

nuint

Type Parameters

TPixel

Exceptions

OverflowException

The buffer is too large for the return type of this method.