Click or drag to resize

PixelFormatUtilitiesBitsPerPixel Method

Returns the number of bits used per pixel in total.

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public static int BitsPerPixel(
	PixelFormat pf
)

Parameters

pf
Type: Atalasoft.ImagingPixelFormat
An input PixelFormat

Return Value

Type: Int32
Remarks
Note than some pixel formats do not use all the bits for image data. For example, Pixel32bppBgr only uses 24 bits for image data, but BitsPerPixel will return 32 for this format.
See Also