Skip to main content

OH_NativeImage_GetColorSpace

Function OH_NativeImage_GetColorSpace 

Source
pub unsafe extern "C" fn OH_NativeImage_GetColorSpace(
    image: *mut OH_NativeImage,
    colorSpace: *mut OH_NativeBuffer_ColorSpace,
) -> i32
Available on crate features native_image and api-22 only.
Expand description

Get the colorSpace of OH_NativeImage.

This interface is a non-thread-safe type interface.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeImage

§Arguments

  • image - Indicates the pointer to a OH_NativeImage instance.

  • colorSpace - Indicates the colorSpace of OH_NativeImage.

§Returns

  • [NATIVE_ERROR_OK] 0 - Success.

Available since API-level: 22

Version: 1.0