pub unsafe extern "C" fn OH_PixelMap_GetDensity(
native: *const NativePixelMap,
density: *mut i32,
) -> i32Expand description
@brief Obtains the pixel density of a NativePixelMap object.
@param native Pointer to a NativePixelMap object. @param density Pointer to the pixel density. @return Result code defined in {@link IRNdkErrCode}:
- {@link IMAGE_RESULT_SUCCESS}: The operation is successful.
- {@link IMAGE_RESULT_BAD_PARAMETER}: A parameter is incorrect.
- {@link IMAGE_RESULT_JNI_ENV_ABNORMAL}: The JNI environment is abnormal.
- {@link IMAGE_RESULT_INVALID_PARAMETER}: A parameter is invalid.
- {@link IMAGE_RESULT_DATA_ABNORMAL}: The image input data is incorrect.
- {@link IMAGE_RESULT_DATA_UNSUPPORT}: The attribute is invalid or the image data is not supported.