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.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
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