CGBitmapContext.BitsPerComponent 属性

定义

每个组件的位数

public nint BitsPerComponent { get; }
member this.BitsPerComponent : nint

属性值

System.System.IntPtr System.nativeint

获取对象的每个组件的 thisCGBitmapContext 位数,如果对象不是位图上下文,则 this 为 0。

注解

内存中像素的每个组件使用的位数。  例如,使用 32 位 RGBA 缓冲区时,此值为 8。

适用于