pub unsafe extern "C" fn OH_PixelMap_ScaleWithAntiAliasing(
native: *const NativePixelMap,
x: f32,
y: f32,
level: OH_PixelMap_AntiAliasingLevel,
) -> i32Expand description
@brief Scales a NativePixelMap object based on the specified anti-aliasing level, width, and height.
@param native Pointer to a NativePixelMap object. @param x Scale ratio of the width. @param y Scale ratio of the height. @param level Anti-aliasing level. @return Result code defined in {@link IRNdkErrCode}:
- {@link IMAGE_RESULT_SUCCESS}: The operation is successful.
- {@link IMAGE_RESULT_JNI_ENV_ABNORMAL}: The JNI environment is abnormal.
- {@link IMAGE_RESULT_INVALID_PARAMETER}: A parameter is invalid.
- {@link IMAGE_RESULT_GET_DATA_ABNORMAL}: An error occurs during image data retrieval.
- {@link IMAGE_RESULT_CHECK_FORMAT_ERROR}: The format check fails.
- {@link IMAGE_RESULT_THIRDPART_SKIA_ERROR}: Skia decoding fails.
- {@link IMAGE_RESULT_ERR_SHAMEM_DATA_ABNORMAL}: Data in the shared memory is incorrect.
- {@link IMAGE_RESULT_MALLOC_ABNORMAL}: An error occurs during memory allocation.
- {@link IMAGE_RESULT_UNKNOWN_FORMAT}: The image format is unknown.