harmony 鸿蒙drawing_record_cmd.h

2025-06-12 浏览 (1)

drawing_record_cmd.h

Overview

The drawing_record_cmd.h file declares the functions related to a recording command object.

File to include: <native_drawing/drawing_record_cmd.h>

Library: libnative_drawing.so

Since: 13

Related module: Drawing

Summary

Functions

NameDescription
OH_Drawing_RecordCmdUtils * OH_Drawing_RecordCmdUtilsCreate (void)Creates an OH_Drawing_RecordCmdUtils object.
OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsDestroy (OH_Drawing_RecordCmdUtils *recordCmdUtils)Destroys an OH_Drawing_RecordCmdUtils object and reclaims the memory occupied by the object.
OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsBeginRecording (OH_Drawing_RecordCmdUtils *recordCmdUtils, int32_t width, int32_t height, OH_Drawing_Canvas **canvas)Starts recording. This function must be used in pair with OH_Drawing_RecordCmdUtilsFinishRecording.
The OH_Drawing_RecordCmdUtils object generates a canvas object of the recording type and calls the interface of the drawing object to record all drawing commands.
OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsFinishRecording (OH_Drawing_RecordCmdUtils *recordCmdUtils, OH_Drawing_RecordCmd **recordCmd)Ends recording. This function must be called after OH_Drawing_RecordCmdUtilsBeginRecording.
The OH_Drawing_RecordCmdUtils object ends recording and stores the drawing commands recorded by the canvas object of the recording type into the generated OH_Drawing_RecordCmdUtilsBeginRecording object.
OH_Drawing_ErrorCode OH_Drawing_RecordCmdDestroy (OH_Drawing_RecordCmd *recordCmd)Destroys an OH_Drawing_RecordCmd object and reclaims the memory occupied by the object.

你可能感兴趣的鸿蒙文章

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