Skip to main content

OH_PixelmapNative_ScaleWithAntiAliasing

Function OH_PixelmapNative_ScaleWithAntiAliasing 

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

@brief Scales this image based on the input width and height with anti-aliasing. It is recommended to use {@link OH_PixelmapNative_ApplyScaleWithAntiAliasing}.

@param pixelmap The Pixelmap pointer will be operated. @param scaleX Scaling ratio of the width. @param scaleY Scaling ratio of the height. @param level The anti-aliasing algorithm to be used. @return Returns {@link Image_ErrorCode} IMAGE_SUCCESS - if the operation is successful. returns {@link Image_ErrorCode} IMAGE_BAD_PARAMETER - if invalid parameter, x and y are incorrect. returns {@link Image_ErrorCode} IMAGE_TOO_LARGE - if image is too large. returns {@link Image_ErrorCode} IMAGE_ALLOC_FAILED - if device has no memory. returns {@link Image_ErrorCode} IMAGE_UNKNOWN_ERROR - inner unknown error, maybe source pixelmap is released. @see OH_PixelmapNative @since 12