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

2026-08-25 浏览 (1)

OH_Pixelmap_InitializationOptions

struct OH_Pixelmap_InitializationOptions

Overview

The OH_Pixelmap_InitializationOptions struct describes the initialization options encapsulated at the native layer. The struct is used to set the initialization parameters for a PixelMap.

To create an OH_Pixelmap_InitializationOptions object, call OH_PixelmapInitializationOptions_Create.

To release an OH_Pixelmap_InitializationOptions object, call OH_PixelmapInitializationOptions_Release.

The table below describes the content and operation mode of the OH_Pixelmap_InitializationOptions struct.

Field type.Field NameField DescriptionOperation FunctionFunction Description
uint32_twidthImage width.OH_PixelmapInitializationOptions_GetWidthObtains the image width.
uint32_twidthImage width.OH_PixelmapInitializationOptions_SetWidthSets the image width.
uint32_theightImage height.OH_PixelmapInitializationOptions_GetHeightObtains the image height.
uint32_theightImage height.OH_PixelmapInitializationOptions_SetHeightSets the image height.
int32_tpixelFormatPixel format.OH_PixelmapInitializationOptions_GetPixelFormatObtains the pixel format.
int32_tpixelFormatPixel format.OH_PixelmapInitializationOptions_SetPixelFormatSets the pixel format.
int32_talphaTypeAlpha type.OH_PixelmapInitializationOptions_GetAlphaTypeObtains the alpha type.
int32_talphaTypeAlpha type.OH_PixelmapInitializationOptions_SetAlphaTypeSets the alpha type.

Since: 12

Related module: Image_NativeModule

Header file: pixelmap_native.h

你可能感兴趣的鸿蒙文章

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/m6rxEQAn