Skip to main content

OH_PixelmapNative_Rotate

Function OH_PixelmapNative_Rotate 

Source
pub unsafe extern "C" fn OH_PixelmapNative_Rotate(
    pixelmap: *mut OH_PixelmapNative,
    angle: f32,
) -> Image_ErrorCode
Expand description

@brief Rotates this image based on the input angle.

@param pixelmap The Pixelmap pointer will be operated. @param angle Angle to rotate. @return Function result code: {@link IMAGE_SUCCESS} - The operation is successful. {@link IMAGE_BAD_PARAMETER} - Parameter error.Possible causes: 1.pixelmap is nullptr. 2.pixelmap’s inner pixelmap is nullptr. @since 12