pub unsafe extern "C" fn OH_PixelMap_SetOpacity(
native: *const NativePixelMap,
opacity: f32,
) -> i32Expand description
@brief Sets the opacity for a NativePixelMap object.
@param native Pointer to a NativePixelMap object. @param opacity Opacity to set. @return Result code defined in {@link IRNdkErrCode}:
- {@link IMAGE_RESULT_SUCCESS}: The operation is successful.
- {@link IMAGE_RESULT_BAD_PARAMETER}: A parameter is incorrect.
- {@link IMAGE_RESULT_JNI_ENV_ABNORMAL}: The JNI environment is abnormal.
- {@link IMAGE_RESULT_INVALID_PARAMETER}: A parameter is invalid.
- {@link IMAGE_RESULT_DATA_ABNORMAL}: The image input data is incorrect.
- {@link IMAGE_RESULT_DATA_UNSUPPORT}: The attribute is invalid or the image data is not supported.