Table of Contents

Method GetBufferSize32

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

GetBufferSize32(int, int, int, in PixelFormat)

public static uint GetBufferSize32(int width, int height, int stride, in PixelFormat pixelFormat)

Parameters

width int
height int
stride int
pixelFormat PixelFormat

Returns

uint

Exceptions

OverflowException

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

GetBufferSize32(SizeInt32, int, in PixelFormat)

public static uint GetBufferSize32(SizeInt32 size, int stride, in PixelFormat pixelFormat)

Parameters

size SizeInt32
stride int
pixelFormat PixelFormat

Returns

uint

Exceptions

OverflowException

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

GetBufferSize32<TPixel>(int, int, int)

public static uint GetBufferSize32<TPixel>(int width, int height, int stride) where TPixel : unmanaged

Parameters

width int
height int
stride int

Returns

uint

Type Parameters

TPixel

Exceptions

OverflowException

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

GetBufferSize32<TPixel>(SizeInt32, int)

public static uint GetBufferSize32<TPixel>(SizeInt32 size, int stride) where TPixel : unmanaged

Parameters

size SizeInt32
stride int

Returns

uint

Type Parameters

TPixel

Exceptions

OverflowException

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