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

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

Merge pull request !20913 from wusongqing/TR20000
......@@ -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**<br>
**Description**
Alpha type of the image.
### editable
```
uint32_t OhosPixelMapCreateOps::editable
```
**Description**<br>
**Description**
Editing type of the image.
### height
```
uint32_t OhosPixelMapCreateOps::height
```
**Description**<br>
**Description**
Image height, in pixels.
### pixelFormat
```
int32_t OhosPixelMapCreateOps::pixelFormat
```
**Description**<br>
**Description**
Image format.
### scaleMode
```
uint32_t OhosPixelMapCreateOps::scaleMode
```
**Description**<br>
**Description**
Scale mode of the image.
### width
```
uint32_t OhosPixelMapCreateOps::width
```
**Description**<br>
Image width, in pixels.
**Description**
Image width, in pixels.
\ No newline at end of file
......@@ -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.<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
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册