Skip to main content

OH_PixelmapNative_Scale

Function OH_PixelmapNative_Scale 

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

@brief Scales this image based on the input width and height.

@param pixelmap The Pixelmap pointer will be operated. @param scaleX Scaling ratio of the width. @param scaleY Scaling ratio of the height. @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