Skip to main content

OH_NativeBuffer_SetColorSpace

Function OH_NativeBuffer_SetColorSpace 

Source
pub unsafe extern "C" fn OH_NativeBuffer_SetColorSpace(
    buffer: *mut OH_NativeBuffer,
    colorSpace: OH_NativeBuffer_ColorSpace,
) -> i32
Expand description

@brief Set the color space of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n

@syscap SystemCapability.Graphic.Graphic2D.NativeBuffer @param buffer Indicates the pointer to a OH_NativeBuffer instance. @param colorSpace Indicates the color space of native buffer, see OH_NativeBuffer_ColorSpace. @return Returns an error code, 0 is success, otherwise, failed. @since 11 @version 1.0