harmony 鸿蒙drawing_brush.h

  • 2023-06-24
  • 浏览 (524)

drawing_brush.h

Overview

Declares functions related to the brush object in the drawing module.

Since: 8

Related Modules:

Drawing

Summary

Functions

Name Description
OH_Drawing_BrushCreate (void) Creates an OH_Drawing_Brush object.
OH_Drawing_BrushDestroy (OH_Drawing_Brush *) Destroys an OH_Drawing_Brush object and reclaims the memory occupied by the object.
OH_Drawing_BrushIsAntiAlias (const OH_Drawing_Brush *) Checks whether anti-aliasing is enabled for a brush. If anti-aliasing is enabled, edges will be drawn with partial transparency.
OH_Drawing_BrushSetAntiAlias (OH_Drawing_Brush *, bool) Enables or disables anti-aliasing for a brush. If anti-aliasing is enabled, edges will be drawn with partial transparency.
OH_Drawing_BrushGetColor (const OH_Drawing_Brush *) Obtains the color of a brush. The color is used by the brush to fill in a shape.
OH_Drawing_BrushSetColor (OH_Drawing_Brush *, uint32_t color) Sets the color for a brush. The color will be used by the brush to fill in a shape.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞