Skip to main content

OH_DecodingOptions_SetRotate

Function OH_DecodingOptions_SetRotate 

Source
pub unsafe extern "C" fn OH_DecodingOptions_SetRotate(
    options: *mut OH_DecodingOptions,
    rotate: f32,
) -> ImageResult
Available on crate features api-12 and image-source only.
Expand description

Set rotate number for OH_DecodingOptions struct.

§Arguments

  • options - The OH_DecodingOptions pointer will be operated.

  • rotate - the number of image rotate.

§Returns

  • Returns [Image_ErrorCode]

Available since API-level: 12