openharmony 鸿蒙 capi-image-ohospixelmapcreateops

2026-08-25 浏览 (1)

OhosPixelMapCreateOps

struct OhosPixelMapCreateOps {...}

Overview

The struct describes the options used for creating a PixelMap.

Since: 10

Related module: Image

Header file: image_pixel_map_mdk.h

Summary

Member Variables

NameDescription
uint32_t widthImage width, in pixels.
uint32_t heightImage height, in pixels.
int32_t pixelFormatImage format. The options are as follows:
0: Unknown format.
2: RGB_565.
3: RGBA_8888.
4: BGRA_8888.
5: RGB_888.
6: ALPHA_8.
7: RGBA_F16.
8: NV21.
9: NV12.
uint32_t editableEditing type of the image. The value true means that the image pixel can be edited, and false means the opposite.
uint32_t alphaTypeAlpha type of the image. The options are as follows:
0: Unknown alpha type.
1: There is no alpha or the image is opaque.
2: Premultiplied alpha format.
3: Non-premultiplied alpha format.
uint32_t scaleModeScale mode of the image. The options are as follows:
1: The image is scaled in such a way that it fits the dimensions of the target and centered in the target.
0: The image size is reduced to fit the dimensions of the target.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-image-nativemodule-oh-pixelmap-hdrmetadatavalue

openharmony 鸿蒙 capi-image-imagepacker-opts-

openharmony 鸿蒙 capi-image-nativemodule-image-region

openharmony 鸿蒙 capi-image-imagepacker-native-

openharmony 鸿蒙 capi-image-imagenative-

openharmony 鸿蒙 capi-image-processing-h

openharmony 鸿蒙 capi-image-ohosimagesourcesupportedformat

openharmony 鸿蒙 capi-image-nativemodule-image-size

openharmony 鸿蒙 capi-image-mdk-h

openharmony 鸿蒙 capi-image-ohosimagesourcedelaytimelist

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/4VUqqONf