1# OhosPixelMapCreateOps 2 3 4## Overview 5 6The OhosPixelMapCreateOps struct describes the options used for creating a PixelMap. The parameters need to be initialized. 7 8**System capability**: SystemCapability.Multimedia.Image 9 10**Since**: 10 11 12**Related module**: [Image](image.md) 13 14 15## Summary 16 17 18### Member Variables 19 20| Name| Description| 21| -------- | -------- | 22| uint32_t [width](#width) | Image width, in pixels. | 23| uint32_t [height](#height) | Image height, in pixels. | 24| int32_t [pixelFormat](#pixelformat) | Image format. | 25| uint32_t [editable](#editable) | Editing type of the image. | 26| uint32_t [alphaType](#alphatype) | Alpha type of the image. | 27| uint32_t [scaleMode](#scalemode) | Scale mode of the image. | 28 29 30## Member Variable Description 31 32 33### alphaType 34 35``` 36uint32_t OhosPixelMapCreateOps::alphaType 37``` 38 39**Description** 40 41Alpha type of the image. The options are as follows: 42 43| Value| Description| 44| ------ | ----------------------- | 45| 0 | Unknown alpha type.| 46| 1 | There is no alpha or the image is opaque.| 47| 2 | Premultiplied alpha.| 48| 3 | Unpremultiplied alpha, that is, straight alpha.| 49 50 51### editable 52 53``` 54uint32_t OhosPixelMapCreateOps::editable 55``` 56 57**Description** 58 59Editing type of the image. The value **true** means that the image pixel can be edited, and **false** means the opposite. 60 61 62### height 63 64``` 65uint32_t OhosPixelMapCreateOps::height 66``` 67 68**Description** 69 70Image height, in pixels. 71 72 73### pixelFormat 74 75``` 76int32_t OhosPixelMapCreateOps::pixelFormat 77``` 78 79**Description** 80 81Image format. The options are as follows: 82 83| Value| Description| 84| ------ | ----------------- | 85| 0 | Unknown format.| 86| 2 | RGB_565.| 87| 3 | RGBA_8888.| 88| 4 | BGRA_8888.| 89| 5 | RGB_888.| 90| 6 | ALPHA_8.| 91| 7 | RGBA_F16.| 92| 8 | NV21.| 93| 9 | NV12.| 94 95### scaleMode 96 97``` 98uint32_t OhosPixelMapCreateOps::scaleMode 99``` 100 101**Description** 102 103Scale mode of the image. The options are as follows: 104 105| Value| Description| 106| ------ | -------------------------------------------------- | 107| 1 | The image is scaled in such a way that it fits the dimensions of the target and centered in the target.| 108| 0 | The image size is reduced to fit the dimensions of the target.| 109 110### width 111 112``` 113uint32_t OhosPixelMapCreateOps::width 114``` 115 116**Description** 117 118Image width, in pixels. 119