Click or drag to resize
Ab4d.SharpEngine logo

RawImageDataGetBytesPerPixel Method

Returns number of bytes that is required to store the specified format. The method can get results only for the following formats: R8G8B8A8Unorm, B8G8R8A8Unorm, R8G8B8Unorm, B8G8R8Unorm, R8Unorm. Other formats will throw an exception.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public static int GetBytesPerPixel(
	Format format
)

Parameters

format  Format
format

Return Value

Int32
number of bytes that is required to store the specified format
See Also