Drawing
Overview
The Drawing module provides the functions for 2D graphics rendering, text drawing, and image display.
It uses the physical pixel unit, px.
System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing
Since: 8
Files
| Name | Description |
|---|---|
| drawing_bitmap.h | Declares the functions related to the bitmap in the drawing module. |
| drawing_brush.h | Declares the functions related to the brush in the drawing module. |
| drawing_canvas.h | Declares the functions related to the canvas in the drawing module. By default, the canvas has a black brush with anti-aliasing enabled but no any other style. This default brush takes effect only when no brush or pen is proactively set in the canvas. |
| drawing_color.h | Declares the functions related to the color in the drawing module. |
| drawing_color_filter.h | Declares the functions related to the color filter in the drawing module. |
| drawing_color_space.h | Declares the functions related to the color space in the drawing module. |
| drawing_error_code.h | Declares the functions related to the error code in the drawing module.include native_drawing/drawing_error_code.h |
| drawing_filter.h | Declares the functions related to the filter in the drawing module. |
| drawing_font.h | Declares the functions related to the font in the drawing module. |
| drawing_font_collection.h | Declares the functions related to the font collection in the drawing module. |
| drawing_font_mgr.h | Declares the functions related to font management in the drawing module. The functions can be used to load fonts and match available fonts in the system. |
| drawing_gpu_context.h | Declares the functions related to the GPU context in the drawing module. |
| drawing_image.h | Declares the functions related to the image in the drawing module. |
| drawing_image_filter.h | Declares the functions related to the image filter in the drawing module. |
| drawing_mask_filter.h | Declares the functions related to the mask filter in the drawing module. |
| drawing_matrix.h | Declares the functions related to the matrix in the drawing module. |
| drawing_memory_stream.h | Declares the functions related to the memory stream in the drawing module. |
| drawing_path.h | Declares the functions related to the path in the drawing module. |
| drawing_path_effect.h | Declares the functions related to the bitmap in the drawing module. |
| drawing_pen.h | Declares the functions related to the pen in the drawing module. |
| drawing_pixel_map.h | Declares the functions related to the pixel map in the drawing module. |
| drawing_point.h | Declares the functions related to the coordinate point in the drawing module. |
| drawing_record_cmd.h | Declares the functions related to a recording command object. |
| drawing_rect.h | Declares the functions related to the rectangle in the drawing module. |
| drawing_region.h | Declares the functions related to the region in the drawing module, including creating a region, setting the boundary, and destroying a region. |
| drawing_register_font.h | Declares the functions related to the font manager in the drawing module. |
| drawing_round_rect.h | Declares the functions related to the rounded rectangle in the drawing module. |
| drawing_sampling_options.h | Declares the functions related to the sampling options in the drawing module. It is used for image or texture sampling. |
| drawing_shader_effect.h | Declares the functions related to the shader effect in the drawing module. |
| drawing_shadow_layer.h | Declares the functions related to the shadow in the drawing module. |
| drawing_surface.h | Declares the functions related to the surface in the drawing module, including creating, destroying, and using the surface. |
| drawing_text_blob.h | Declares the functions related to the text blob in the drawing module. |
| drawing_text_declaration.h | Declares the structs related to text in 2D drawing. |
| drawing_text_font_descriptor.h | Declares the capabilities of font information, such as obtaining font information and searching for a font. |
| drawing_text_global.h | Declares the functions related to global text information, for example, setting the high contrast mode for text rendering. |
| drawing_text_line.h | Declares the capabilities for obtaining the character position in a text line, obtaining the run information, and truncating text by line. |
| drawing_text_lineTypography.h | Declares the functions related to line typography, including functions to determine the number of characters that can be formatted from a given position within the text. |
| drawing_text_run.h | Declares the capabilities of runs, such as obtaining the typographic boundary and drawing. |
| drawing_text_typography.h | Declares the functions related to typography in the drawing module. |
| drawing_typeface.h | Declares the functions related to the typeface in the drawing module. Different platforms have their own default typefaces. You can also parse the .ttf file to obtain the typefaces specified by the third party, such as SimSun and SimHei. |
| drawing_types.h | Declares the data types of the canvas, brush, pen, bitmap, and path used to draw 2D graphics. |