pub unsafe extern "C" fn OH_NativeImage_GetTransformMatrixV2(
image: *mut OH_NativeImage,
matrix: *mut f32,
) -> i32Available on crate features
native_image and api-12 only.Expand description
Obtains the transform matrix of the texture image by producer transform type.
The matrix will not be update until OH_NativeImage_UpdateSurfaceImage is called.
This interface is a non-thread-safe type interface.
Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeImage
§Arguments
-
image- Indicates the pointer to a OH_NativeImage instance. -
matrix- Indicates the retrieved 4*4 transform matrix .
§Returns
- 0 - Success. 40001000 - image is NULL.
Available since API-level: 12
Version: 1.0