MonobjcMonobjc Documented Class Library
GetBitsPerComponent Method (image)
NamespacesMonobjc.ApplicationServicesCGImageGetBitsPerComponent(IntPtr)

Returns the number of bits allocated for a single color component of a bitmap image.

Original signature is 'size_t CGImageGetBitsPerComponent ( CGImageRef image );'

Available in Mac OS X version 10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSUInteger GetBitsPerComponent(
	IntPtr image
)
Public Shared Function GetBitsPerComponent ( _
	image As IntPtr _
) As NSUInteger
public:
static NSUInteger GetBitsPerComponent(
	IntPtr image
)
Parameters
image (IntPtr)
MISSING
Return Value
The number of bits used in memory for each color component of the specified bitmap image (or image mask). Possible values are 1, 2, 4, or 8. For example, for a 16-bit RGB(A) colorspace, the function would return a value of 4 bits per color component.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)