Skip to main content

OH_ImageNative_GetPixelStride

Function OH_ImageNative_GetPixelStride 

Source
pub unsafe extern "C" fn OH_ImageNative_GetPixelStride(
    image: *mut OH_ImageNative,
    componentType: u32,
    pixelStride: *mut i32,
) -> Image_ErrorCode
Expand description

@brief Get pixel stride from an {@link OH_ImageNative} object by the component type.

@param image Indicates the pointer to an {@link OH_ImageNative} object. @param componentType Indicates the type of component. @param pixelStride Indicates the pointer to the pixel stride obtained. @return Returns {@link Image_ErrorCode} IMAGE_SUCCESS - if the operation is successful. returns {@link Image_ErrorCode} IMAGE_BAD_PARAMETER - if bad parameter. @since 12