 |
RawImageDataGetFormatProperties Method |
GetFormatProperties sets the hasAlpha, pixelSize and alphaOffset properties from the image format.
The method returns false when the format is not known.
Namespace: Ab4d.SharpEngine.CommonAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic static bool GetFormatProperties(
Format format,
out bool hasAlpha,
out int bytesPerPixel,
out int alphaOffset
)
Parameters
- format Format
- image format
- hasAlpha Boolean
- true if format supports alpha channel
- bytesPerPixel Int32
- size of pixels in bytes
- alphaOffset Int32
- offset of alpha channel
Return Value
Booleantrue when the format is known, false when the format is not known (in this case the same data as for R8G8B8A8UNorm is returned - alpha is true, pixel size is 4, alphaOffset is 3)
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Common.RawImageData.GetFormatProperties(Ab4d.Vulkan.Format,System.Boolean@,System.Int32@,System.Int32@)"]
See Also