diff --git a/en/application-dev/reference/native-apis/_ohos_pixel_map_create_ops.md b/en/application-dev/reference/native-apis/_ohos_pixel_map_create_ops.md index 330a50ddd7bbe1b790834ce2ce62ef94e0ab8b08..99a0725313091145aa95abf5aa587e2b847826e5 100644 --- a/en/application-dev/reference/native-apis/_ohos_pixel_map_create_ops.md +++ b/en/application-dev/reference/native-apis/_ohos_pixel_map_create_ops.md @@ -5,10 +5,11 @@ Defines the options used for creating a pixel map. -**Since:** -9 +**Since** -**Related Modules:** +10 + +**Related Modules** [Image](image.md) @@ -18,74 +19,80 @@ Defines the options used for creating a pixel map. ### Member Variables -| Name | Description | +| Name| Description| | -------- | -------- | -| [width](#width) | Image width, in pixels. | -| [height](#height) | Image height, in pixels. | -| [pixelFormat](#pixelformat) | Image format. | -| [editable](#editable) | Editing type of the image. | -| [alphaType](#alphatype) | Alpha type of the image. | -| [scaleMode](#scalemode) | Scale mode of the image. | +| [width](#width) | Image width, in pixels.| +| [height](#height) | Image height, in pixels.| +| [pixelFormat](#pixelformat) | Image format.| +| [editable](#editable) | Editing type of the image.| +| [alphaType](#alphatype) | Alpha type of the image.| +| [scaleMode](#scalemode) | Scale mode of the image.| -## Member Variable Description +## Member Variable Description ### alphaType - + ``` uint32_t OhosPixelMapCreateOps::alphaType ``` -**Description**
+**Description** + Alpha type of the image. ### editable - + ``` uint32_t OhosPixelMapCreateOps::editable ``` -**Description**
+**Description** + Editing type of the image. ### height - + ``` uint32_t OhosPixelMapCreateOps::height ``` -**Description**
+**Description** + Image height, in pixels. ### pixelFormat - + ``` int32_t OhosPixelMapCreateOps::pixelFormat ``` -**Description**
+**Description** + Image format. ### scaleMode - + ``` uint32_t OhosPixelMapCreateOps::scaleMode ``` -**Description**
+**Description** + Scale mode of the image. ### width - + ``` uint32_t OhosPixelMapCreateOps::width ``` -**Description**
-Image width, in pixels. +**Description** + +Image width, in pixels. \ No newline at end of file diff --git a/en/application-dev/reference/native-apis/image.md b/en/application-dev/reference/native-apis/image.md index 828deade6aa8c410facb355dd9669d4b8489862c..e006e11e670ab417732ebf166fda73647162fc31 100644 --- a/en/application-dev/reference/native-apis/image.md +++ b/en/application-dev/reference/native-apis/image.md @@ -3,10 +3,9 @@ Provides APIs for obtaining pixel map data and information. -To use the APIs in this file, **libpixelmap_ndk.z.so** is required. - @Syscap SystemCapability.Multimedia.Image + **Since** 8 @@ -19,7 +18,7 @@ To use the APIs in this file, **libpixelmap_ndk.z.so** is required. | Name| Description| | -------- | -------- | -| [image_pixel_map_napi.h](image__pixel__map__napi_8h.md) | Declares the APIs that can lock, access, and unlock a pixel map.
File to include: | +| [image_pixel_map_napi.h](image__pixel__map__napi_8h.md) | Declares the APIs that can lock, access, and unlock a pixel map.
**File to include**:
**Library**: libpixelmap_ndk.z.so| ### Structs @@ -87,7 +86,7 @@ Defines the data type name of the native pixel map. **Since** -9 +10 ## Enum Description @@ -151,7 +150,7 @@ Enumerates the pixel map alpha types. **Since** -9 +10 ### anonymous enum @@ -170,7 +169,7 @@ Enumerates the pixel map scale modes. **Since** -9 +10 ### anonymous enum @@ -190,7 +189,7 @@ Enumerates the pixel map editing types. **Since** -9 +10 ## Function Description @@ -225,6 +224,7 @@ UnAccessPixels Returns **OHOS_IMAGE_RESULT_SUCCESS** if the operation is successful; returns an error code otherwise. **Since** + 8 @@ -287,7 +287,7 @@ CreateAlphaPixelMap **Since** -9 +10 ### OH_PixelMap_CreatePixelMap() @@ -320,7 +320,7 @@ CreatePixelMap **Since** -9 +10 ### OH_PixelMap_Crop() @@ -353,7 +353,7 @@ Crop **Since** -9 +10 ### OH_PixelMap_Flip() @@ -384,7 +384,7 @@ Flip **Since** -9 +10 ### OH_PixelMap_GetBytesNumberPerRow() @@ -414,7 +414,7 @@ GetBytesNumberPerRow **Since** -9 +10 ### OH_PixelMap_GetDensity() @@ -443,7 +443,7 @@ GetDensity **Since** -9 +10 ### OH_PixelMap_GetIsEditable() @@ -473,7 +473,7 @@ GetIsEditable **Since** -9 +10 ### OH_PixelMap_InitNativePixelMap() @@ -503,7 +503,7 @@ InitNativePixelMap **Since** -9 +10 ### OH_PixelMap_IsSupportAlpha() @@ -533,7 +533,7 @@ IsSupportAlpha **Since** -9 +10 @@ -564,7 +564,7 @@ Rotate **Since** -9 +10 ### OH_PixelMap_Scale() @@ -595,7 +595,7 @@ Scale **Since** -9 +10 ### OH_PixelMap_SetAlphaAble() @@ -625,7 +625,7 @@ SetAlphaAble **Since** -9 +10 ### OH_PixelMap_SetDensity() @@ -655,7 +655,7 @@ GetDensity **Since** -9 +10 ### OH_PixelMap_SetOpacity() @@ -685,7 +685,7 @@ SetOpacity **Since** -9 +10 ### OH_PixelMap_Translate() @@ -716,7 +716,7 @@ Translate **Since** -9 +10 ### OH_UnAccessPixels()