harmony 鸿蒙OhosPixelMapInfos

2025-06-12 浏览 (1)

OhosPixelMapInfos

Overview

The OhosPixelMapInfos struct describes the information about a PixelMap.

System capability: SystemCapability.Multimedia.Image

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.
uint32_t rowSizeNumber of bytes that each row of the image occupies in the memory.
int32_t pixelFormatPixel format.

Member Variable Description

height

uint32_t OhosPixelMapInfos::height

Description

Image height, in pixels.

pixelFormat

int32_t OhosPixelMapInfos::pixelFormat

Description

Pixel format.

rowSize

uint32_t OhosPixelMapInfos::rowSize

Description

Number of bytes that each row of the image occupies in the memory.

In the case of DMA, the formula is as follows: Image width x Number of bytes of each pixel + Number of padding bytes at the end of each row. In the case of other types of memory, the formula is as follows: Image width x Number of bytes of each pixel.

width

uint32_t OhosPixelMapInfos::width

Description

Image width, in pixels.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Image Kit

harmony 鸿蒙_image___native_module

harmony 鸿蒙Image_Region

harmony 鸿蒙Image_Size

harmony 鸿蒙Image_String

harmony 鸿蒙ImageEffect

harmony 鸿蒙ImageEffect_Any

harmony 鸿蒙ImageEffect_FilterDelegate

harmony 鸿蒙ImageEffect_FilterNames

harmony 鸿蒙ImageEffect_Region

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