Skip to main content

OH_PixelMap_GetDensity

Function OH_PixelMap_GetDensity 

Source
pub unsafe extern "C" fn OH_PixelMap_GetDensity(
    native: *const NativePixelMap,
    density: *mut i32,
) -> i32
Expand description

@brief Obtains the pixel density of a PixelMap object.

@param native Indicates the pointer to a NativePixelMap object. @param density Indicates the pointer to the pixel density. @return Returns {@link IRNdkErrCode} IMAGE_RESULT_SUCCESS - if the operation is successful. returns {@link IRNdkErrCode} IMAGE_RESULT_BAD_PARAMETER - if bad parameter. returns {@link IRNdkErrCode} IMAGE_RESULT_JNI_ENV_ABNORMAL - if Abnormal JNI environment. returns {@link IRNdkErrCode} IMAGE_RESULT_INVALID_PARAMETER - if invalid parameter. returns {@link IRNdkErrCode} IMAGE_RESULT_DATA_ABNORMAL - if image input data error. returns {@link IRNdkErrCode} IMAGE_RESULT_INDEX_INVALID - if invalid index. @see GetDensity @since 10 @version 1.0