pub unsafe extern "C" fn OH_NativeWindow_SetColorSpace(
window: *mut OHNativeWindow,
colorSpace: OH_NativeBuffer_ColorSpace,
) -> i32Expand description
@brief Set the color space of the native window.\n This interface is a non-thread-safe type interface.\n
@syscap SystemCapability.Graphic.Graphic2D.NativeWindow @param window Indicates the pointer to a OHNativeWindow instance. @param colorSpace Indicates the color space of native window, see OH_NativeBuffer_ColorSpace. @return {@link NATIVE_ERROR_OK} 0 - Success. {@link NATIVE_ERROR_INVALID_ARGUMENTS} 40001000 - window is NULL. {@link NATIVE_ERROR_BUFFER_STATE_INVALID} 41207000 - Incorrect colorSpace state. @since 12 @version 1.0