harmony 鸿蒙OhosPixelMapCreateOps

  • 2025-06-12
  • 浏览 (2)

OhosPixelMapCreateOps

概述

用于定义创建 pixel map 设置选项的相关信息。

起始版本: 10

相关模块: Image

所在头文件: image_pixel_map_mdk.h

汇总

成员变量

|名称|描述| |–|–| |uint32_t width|图片的宽,用pixels表示。| |uint32_t height|图片的高,用pixels表示。| |int32_t pixelFormat|图片的格式。取值范围:
0:未知格式。
2:格式为RGB_565。
3:格式为RGBA_8888
4: 格式为BGRA_8888。
5:格式为RGB_888。
6:格式为ALPHA_8。
7:格式为RGBA_F16。
8:格式为NV21。
9:格式为NV12。| |uint32_t editable|图片的编辑类型,true为图像像素可编辑,false为不可编辑。| |uint32_t alphaType|图片的alpha类型。取值范围:
0:未知透明度。
1:没有alpha或图片全透明。
2:RGB前乘alpha。
3: RGB不前乘alpha。| |uint32_t scaleMode|图片的缩放类型。取值范围:
1:缩放图像以填充目标图像区域并居中裁剪区域外的效果。
0:图像适合目标尺寸的效果。|

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Image Kit(图片处理服务)

harmony 鸿蒙Interface (AuxiliaryPicture)

harmony 鸿蒙Interface (Image)

harmony 鸿蒙Interface (ImageCreator)

harmony 鸿蒙Interface (ImagePacker)

harmony 鸿蒙Interface (ImageReceiver)

harmony 鸿蒙Interface (ImageSource)

harmony 鸿蒙Interface (Metadata)

harmony 鸿蒙Interface (Picture)

harmony 鸿蒙Interface (PixelMap)

0  赞