harmony 鸿蒙drawing_image.h
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
Name | Description |
---|---|
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 鸿蒙DisplaySoloist_ExpectedRateRange
harmony 鸿蒙NativeColorSpaceManager
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦