Skip to main content

OH_PixelMap_ScaleWithAntiAliasing

Function OH_PixelMap_ScaleWithAntiAliasing 

Source
pub unsafe extern "C" fn OH_PixelMap_ScaleWithAntiAliasing(
    native: *const NativePixelMap,
    x: f32,
    y: f32,
    level: OH_PixelMap_AntiAliasingLevel,
) -> i32
Expand description

@brief Scales a PixelMap object with anti-aliasing.

@param native Indicates the pointer to a NativePixelMap object. @param x Indicates the scaling ratio of the width. @param y Indicates the scaling ratio of the height. @param level Indicates the anti-aliasing algorithm to be used. @return Returns {@link IRNdkErrCode} IMAGE_RESULT_SUCCESS - if the operation is successful. returns {@link IRNdkErrCode} IMAGE_RESULT_JNI_ENV_ABNORMAL - if Abnormal JNI environment. returns {@link IRNdkErrCode} IMAGE_RESULT_INVALID_PARAMETER - if invalid parameter, x and y are incorrect. returns {@link IRNdkErrCode} IMAGE_RESULT_GET_DATA_ABNORMAL - if image get data error. returns {@link IRNdkErrCode} IMAGE_RESULT_CHECK_FORMAT_ERROR - if check format failed. returns {@link IRNdkErrCode} IMAGE_RESULT_THIRDPART_SKIA_ERROR - if skia error. returns {@link IRNdkErrCode} IMAGE_RESULT_ERR_SHAMEM_DATA_ABNORMAL - if sharememory data abnormal. returns {@link IRNdkErrCode} IMAGE_RESULT_MALLOC_ABNORMAL - if image malloc error. returns {@link IRNdkErrCode} IMAGE_RESULT_UNKNOWN_FORMAT - if image unknown format. @see Scale @since 12 @version 1.0