harmony 鸿蒙drawing_image.h

2025-06-12 浏览 (1)

drawing_image.h

Overview

The drawing_image.h file declares the functions related to the image in the drawing module.

File to include: <native_drawing/drawing_image.h>

Library: libnative_drawing.so

Since: 12

Related module: Drawing

Summary

Functions

NameDescription
OH_Drawing_Image * OH_Drawing_ImageCreate (void)Creates an OH_Drawing_Image object that describes an array of two-dimensional pixels to draw.
void OH_Drawing_ImageDestroy (OH_Drawing_Image *)Destroys an OH_Drawing_Image object and reclaims the memory occupied by the object.
bool OH_Drawing_ImageBuildFromBitmap (OH_Drawing_Image *, OH_Drawing_Bitmap *)Builds an image from a bitmap by sharing or copying bitmap pixels. If the bitmap is marked as immutable, the pixel memory is shared, not copied.
int32_t OH_Drawing_ImageGetWidth (OH_Drawing_Image *)Obtains the image width, that is, the number of pixels in each line.
int32_t OH_Drawing_ImageGetHeight (OH_Drawing_Image *)Obtains the image height, that is, the number of pixel lines.
void OH_Drawing_ImageGetImageInfo (OH_Drawing_Image *, OH_Drawing_Image_Info *)Obtains the image information. After this function is called, the passed-in image information object is filled.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkGraphics 2D

harmony 鸿蒙BufferHandle

harmony 鸿蒙ColorSpacePrimaries

harmony 鸿蒙DisplaySoloist_ExpectedRateRange

harmony 鸿蒙_drawing

harmony 鸿蒙NativeColorSpaceManager

harmony 鸿蒙NativeDisplaySoloist

harmony 鸿蒙NativeVsync

harmony 鸿蒙NativeWindow

harmony 鸿蒙OH_Drawing_BitmapFormat

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