未验证 提交 9dfc07e7 编写于 作者: O openharmony_ci 提交者: Gitee

!20913 翻译完成:20000+20143 修改image ndk文档

Merge pull request !20913 from wusongqing/TR20000
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
Defines the options used for creating a pixel map. Defines the options used for creating a pixel map.
**Since:** **Since**
9
**Related Modules:** 10
**Related Modules**
[Image](image.md) [Image](image.md)
...@@ -18,74 +19,80 @@ Defines the options used for creating a pixel map. ...@@ -18,74 +19,80 @@ Defines the options used for creating a pixel map.
### Member Variables ### Member Variables
| Name | Description | | Name| Description|
| -------- | -------- | | -------- | -------- |
| [width](#width) | Image width, in pixels. | | [width](#width) | Image width, in pixels.|
| [height](#height) | Image height, in pixels. | | [height](#height) | Image height, in pixels.|
| [pixelFormat](#pixelformat) | Image format. | | [pixelFormat](#pixelformat) | Image format.|
| [editable](#editable) | Editing type of the image. | | [editable](#editable) | Editing type of the image.|
| [alphaType](#alphatype) | Alpha type of the image. | | [alphaType](#alphatype) | Alpha type of the image.|
| [scaleMode](#scalemode) | Scale mode of the image. | | [scaleMode](#scalemode) | Scale mode of the image.|
## Member Variable Description ## Member Variable Description
### alphaType ### alphaType
``` ```
uint32_t OhosPixelMapCreateOps::alphaType uint32_t OhosPixelMapCreateOps::alphaType
``` ```
**Description**<br> **Description**
Alpha type of the image. Alpha type of the image.
### editable ### editable
``` ```
uint32_t OhosPixelMapCreateOps::editable uint32_t OhosPixelMapCreateOps::editable
``` ```
**Description**<br> **Description**
Editing type of the image. Editing type of the image.
### height ### height
``` ```
uint32_t OhosPixelMapCreateOps::height uint32_t OhosPixelMapCreateOps::height
``` ```
**Description**<br> **Description**
Image height, in pixels. Image height, in pixels.
### pixelFormat ### pixelFormat
``` ```
int32_t OhosPixelMapCreateOps::pixelFormat int32_t OhosPixelMapCreateOps::pixelFormat
``` ```
**Description**<br> **Description**
Image format. Image format.
### scaleMode ### scaleMode
``` ```
uint32_t OhosPixelMapCreateOps::scaleMode uint32_t OhosPixelMapCreateOps::scaleMode
``` ```
**Description**<br> **Description**
Scale mode of the image. Scale mode of the image.
### width ### width
``` ```
uint32_t OhosPixelMapCreateOps::width uint32_t OhosPixelMapCreateOps::width
``` ```
**Description**<br> **Description**
Image width, in pixels.
Image width, in pixels.
\ No newline at end of file
...@@ -3,10 +3,9 @@ ...@@ -3,10 +3,9 @@
Provides APIs for obtaining pixel map data and information. 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 @Syscap SystemCapability.Multimedia.Image
**Since** **Since**
8 8
...@@ -19,7 +18,7 @@ To use the APIs in this file, **libpixelmap_ndk.z.so** is required. ...@@ -19,7 +18,7 @@ To use the APIs in this file, **libpixelmap_ndk.z.so** is required.
| Name| Description| | 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.<br>File to include: <multimedia/image_framework/image_pixel_map_napi.h> | | [image_pixel_map_napi.h](image__pixel__map__napi_8h.md) | Declares the APIs that can lock, access, and unlock a pixel map.<br>**File to include**: <multimedia/image_framework/image_pixel_map_napi.h><br>**Library**: libpixelmap_ndk.z.so|
### Structs ### Structs
...@@ -87,7 +86,7 @@ Defines the data type name of the native pixel map. ...@@ -87,7 +86,7 @@ Defines the data type name of the native pixel map.
**Since** **Since**
9 10
## Enum Description ## Enum Description
...@@ -151,7 +150,7 @@ Enumerates the pixel map alpha types. ...@@ -151,7 +150,7 @@ Enumerates the pixel map alpha types.
**Since** **Since**
9 10
### anonymous enum ### anonymous enum
...@@ -170,7 +169,7 @@ Enumerates the pixel map scale modes. ...@@ -170,7 +169,7 @@ Enumerates the pixel map scale modes.
**Since** **Since**
9 10
### anonymous enum ### anonymous enum
...@@ -190,7 +189,7 @@ Enumerates the pixel map editing types. ...@@ -190,7 +189,7 @@ Enumerates the pixel map editing types.
**Since** **Since**
9 10
## Function Description ## Function Description
...@@ -225,6 +224,7 @@ UnAccessPixels ...@@ -225,6 +224,7 @@ UnAccessPixels
Returns **OHOS_IMAGE_RESULT_SUCCESS** if the operation is successful; returns an error code otherwise. Returns **OHOS_IMAGE_RESULT_SUCCESS** if the operation is successful; returns an error code otherwise.
**Since** **Since**
8 8
...@@ -287,7 +287,7 @@ CreateAlphaPixelMap ...@@ -287,7 +287,7 @@ CreateAlphaPixelMap
**Since** **Since**
9 10
### OH_PixelMap_CreatePixelMap() ### OH_PixelMap_CreatePixelMap()
...@@ -320,7 +320,7 @@ CreatePixelMap ...@@ -320,7 +320,7 @@ CreatePixelMap
**Since** **Since**
9 10
### OH_PixelMap_Crop() ### OH_PixelMap_Crop()
...@@ -353,7 +353,7 @@ Crop ...@@ -353,7 +353,7 @@ Crop
**Since** **Since**
9 10
### OH_PixelMap_Flip() ### OH_PixelMap_Flip()
...@@ -384,7 +384,7 @@ Flip ...@@ -384,7 +384,7 @@ Flip
**Since** **Since**
9 10
### OH_PixelMap_GetBytesNumberPerRow() ### OH_PixelMap_GetBytesNumberPerRow()
...@@ -414,7 +414,7 @@ GetBytesNumberPerRow ...@@ -414,7 +414,7 @@ GetBytesNumberPerRow
**Since** **Since**
9 10
### OH_PixelMap_GetDensity() ### OH_PixelMap_GetDensity()
...@@ -443,7 +443,7 @@ GetDensity ...@@ -443,7 +443,7 @@ GetDensity
**Since** **Since**
9 10
### OH_PixelMap_GetIsEditable() ### OH_PixelMap_GetIsEditable()
...@@ -473,7 +473,7 @@ GetIsEditable ...@@ -473,7 +473,7 @@ GetIsEditable
**Since** **Since**
9 10
### OH_PixelMap_InitNativePixelMap() ### OH_PixelMap_InitNativePixelMap()
...@@ -503,7 +503,7 @@ InitNativePixelMap ...@@ -503,7 +503,7 @@ InitNativePixelMap
**Since** **Since**
9 10
### OH_PixelMap_IsSupportAlpha() ### OH_PixelMap_IsSupportAlpha()
...@@ -533,7 +533,7 @@ IsSupportAlpha ...@@ -533,7 +533,7 @@ IsSupportAlpha
**Since** **Since**
9 10
...@@ -564,7 +564,7 @@ Rotate ...@@ -564,7 +564,7 @@ Rotate
**Since** **Since**
9 10
### OH_PixelMap_Scale() ### OH_PixelMap_Scale()
...@@ -595,7 +595,7 @@ Scale ...@@ -595,7 +595,7 @@ Scale
**Since** **Since**
9 10
### OH_PixelMap_SetAlphaAble() ### OH_PixelMap_SetAlphaAble()
...@@ -625,7 +625,7 @@ SetAlphaAble ...@@ -625,7 +625,7 @@ SetAlphaAble
**Since** **Since**
9 10
### OH_PixelMap_SetDensity() ### OH_PixelMap_SetDensity()
...@@ -655,7 +655,7 @@ GetDensity ...@@ -655,7 +655,7 @@ GetDensity
**Since** **Since**
9 10
### OH_PixelMap_SetOpacity() ### OH_PixelMap_SetOpacity()
...@@ -685,7 +685,7 @@ SetOpacity ...@@ -685,7 +685,7 @@ SetOpacity
**Since** **Since**
9 10
### OH_PixelMap_Translate() ### OH_PixelMap_Translate()
...@@ -716,7 +716,7 @@ Translate ...@@ -716,7 +716,7 @@ Translate
**Since** **Since**
9 10
### OH_UnAccessPixels() ### OH_UnAccessPixels()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册