harmony 鸿蒙drawing_types.h

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

drawing_types.h

Overview

Declares the data types for drawing 2D graphics, including the canvas, brush, pen, bitmap, and path.

Since: 8

Related Modules:

Drawing

Summary

Types

Name Description
OH_Drawing_Canvas Defines a rectangular canvas on which various shapes, images, and texts can be drawn by using the brush and pen.
OH_Drawing_Pen Defines a pen, which is used to describe the style and color to outline a shape.
OH_Drawing_Brush Defines as a brush, which is used to describe the style and color to fill in a shape.
OH_Drawing_Path Defines a path, which is used to customize various shapes.
OH_Drawing_Bitmap Defines a bitmap, which is a memory that contains the pixel data of a shape.

Enums

Name Description
OH_Drawing_ColorFormat {
COLOR_FORMAT_UNKNOWN, COLOR_FORMAT_ALPHA_8, COLOR_FORMAT_RGB_565, COLOR_FORMAT_ARGB_4444,
COLOR_FORMAT_RGBA_8888, COLOR_FORMAT_BGRA_8888
}
Enumerates storage formats of bitmap pixels.
OH_Drawing_AlphaFormat { ALPHA_FORMAT_UNKNOWN, ALPHA_FORMAT_OPAQUE, ALPHA_FORMAT_PREMUL, ALPHA_FORMAT_UNPREMUL } Enumerates alpha formats of bitmap pixels.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞