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: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
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
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Common.RawImageData.GetBytesPerPixel(Ab4d.Vulkan.Format)"]

See Also