Skip to main content

Crate ohos_native_drawing_sys

Crate ohos_native_drawing_sys 

Source

Structs§

OH_Drawing_Array
OH_Drawing_Bitmap
OH_Drawing_BitmapFormat
@brief Defines the pixel format of a bitmap, including the color type and alpha type.
OH_Drawing_Brush
OH_Drawing_Canvas
OH_Drawing_ColorFilter
OH_Drawing_ColorSpace
OH_Drawing_Filter
OH_Drawing_Font
OH_Drawing_FontAdjustInfo
@brief Font weight mapping information.
OH_Drawing_FontAliasInfo
@brief Alias font information.
OH_Drawing_FontArguments
OH_Drawing_FontCollection
OH_Drawing_FontConfigInfo
@brief System font configuration information.
OH_Drawing_FontDescriptor
@brief Describes the font information.
OH_Drawing_FontFallbackGroup
@brief Fallback font group.
OH_Drawing_FontFallbackInfo
@brief Fallback font information.
OH_Drawing_FontFeature
@brief Defines the fontfeature.
OH_Drawing_FontFeatures
OH_Drawing_FontFullDescriptor
OH_Drawing_FontGenericInfo
@brief General font set information supported by the system.
OH_Drawing_FontMgr
OH_Drawing_FontParser
OH_Drawing_FontStyleSet
OH_Drawing_FontStyleStruct
@brief Defines the font style struct.
OH_Drawing_Font_Metrics
@brief Defines a run, supplies storage for the metrics of an OH_Drawing_Font.
OH_Drawing_GpuContext
OH_Drawing_GpuContextOptions
@brief Defines the options about GPU context.
OH_Drawing_Image
OH_Drawing_ImageFilter
OH_Drawing_Image_Info
@brief Defines image info struct.
OH_Drawing_Lattice
OH_Drawing_LineMetrics
@brief The metrics of line.
OH_Drawing_LineTypography
OH_Drawing_MaskFilter
OH_Drawing_Matrix
OH_Drawing_MemoryStream
OH_Drawing_Path
OH_Drawing_PathEffect
OH_Drawing_PathIterator
OH_Drawing_Pen
OH_Drawing_PixelMap
OH_Drawing_PlaceholderSpan
@brief Defines the placeholder span.
OH_Drawing_Point
OH_Drawing_Point2D
@brief Defines a point of 2d.
OH_Drawing_Point3D
@brief Defines a point of 3d, which is used to describe the coordinate point.
OH_Drawing_PositionAndAffinity
OH_Drawing_Range
OH_Drawing_RecordCmd
OH_Drawing_RecordCmdUtils
OH_Drawing_Rect
OH_Drawing_RectStyle_Info
@brief Defines rectstyle info struct.
OH_Drawing_Region
OH_Drawing_RoundRect
OH_Drawing_Run
OH_Drawing_RunBuffer
@brief Defines a run, supplies storage for glyphs and positions.
OH_Drawing_SamplingOptions
OH_Drawing_ShaderEffect
OH_Drawing_ShadowLayer
OH_Drawing_StrutStyle
@brief Defines StrutStyle info struct.
OH_Drawing_Surface
OH_Drawing_TextBlob
OH_Drawing_TextBlobBuilder
OH_Drawing_TextBox
OH_Drawing_TextLine
OH_Drawing_TextShadow
OH_Drawing_TextStyle
OH_Drawing_TextTab
OH_Drawing_Typeface
OH_Drawing_Typography
OH_Drawing_TypographyCreate
OH_Drawing_TypographyStyle

Constants§

OH_Drawing_AlphaFormat_ALPHA_FORMAT_OPAQUE
The bitmap does not have the alpha component.
OH_Drawing_AlphaFormat_ALPHA_FORMAT_PREMUL
The color component of each pixel is premultiplied by the alpha component.
OH_Drawing_AlphaFormat_ALPHA_FORMAT_UNKNOWN
Unknown format.
OH_Drawing_AlphaFormat_ALPHA_FORMAT_UNPREMUL
The color component of each pixel is not premultiplied by the alpha component.
OH_Drawing_BlendMode_BLEND_MODE_CLEAR
r = 0.
OH_Drawing_BlendMode_BLEND_MODE_COLOR
hue and saturation of source with luminosity of destination.
OH_Drawing_BlendMode_BLEND_MODE_COLOR_BURN
darken destination to reflect source.
OH_Drawing_BlendMode_BLEND_MODE_COLOR_DODGE
brighten destination to reflect source.
OH_Drawing_BlendMode_BLEND_MODE_DARKEN
rc = s + d - max(sda, dsa), ra = s + (1-sa)*d.
OH_Drawing_BlendMode_BLEND_MODE_DIFFERENCE
rc = s + d - 2*(min(sda, dsa)), ra = s + (1-sa)*d.
OH_Drawing_BlendMode_BLEND_MODE_DST
r = d.
OH_Drawing_BlendMode_BLEND_MODE_DST_ATOP
r = dsa + s(1-da).
OH_Drawing_BlendMode_BLEND_MODE_DST_IN
r = d * sa.
OH_Drawing_BlendMode_BLEND_MODE_DST_OUT
r = d * (1-sa).
OH_Drawing_BlendMode_BLEND_MODE_DST_OVER
r = d + (1-da)*s.
OH_Drawing_BlendMode_BLEND_MODE_EXCLUSION
rc = s + d - two(s*d), ra = s + (1-sa)*d.
OH_Drawing_BlendMode_BLEND_MODE_HARD_LIGHT
multiply or screen, depending on source.
OH_Drawing_BlendMode_BLEND_MODE_HUE
hue of source with saturation and luminosity of destination.
OH_Drawing_BlendMode_BLEND_MODE_LIGHTEN
rc = s + d - min(sda, dsa), ra = s + (1-sa)*d.
OH_Drawing_BlendMode_BLEND_MODE_LUMINOSITY
luminosity of source with hue and saturation of destination.
OH_Drawing_BlendMode_BLEND_MODE_MODULATE
r = s*d.
OH_Drawing_BlendMode_BLEND_MODE_MULTIPLY
r = s*(1-da) + d*(1-sa) + s*d.
OH_Drawing_BlendMode_BLEND_MODE_OVERLAY
multiply or screen, depending on destination.
OH_Drawing_BlendMode_BLEND_MODE_PLUS
r = min(s + d, 1).
OH_Drawing_BlendMode_BLEND_MODE_SATURATION
saturation of source with hue and luminosity of destination.
OH_Drawing_BlendMode_BLEND_MODE_SCREEN
r = s + d - s*d.
OH_Drawing_BlendMode_BLEND_MODE_SOFT_LIGHT
lighten or darken, depending on source.
OH_Drawing_BlendMode_BLEND_MODE_SRC
r = s.
OH_Drawing_BlendMode_BLEND_MODE_SRC_ATOP
r = sda + d(1-sa).
OH_Drawing_BlendMode_BLEND_MODE_SRC_IN
r = s * da.
OH_Drawing_BlendMode_BLEND_MODE_SRC_OUT
r = s * (1-da).
OH_Drawing_BlendMode_BLEND_MODE_SRC_OVER
r = s + (1-sa)*d.
OH_Drawing_BlendMode_BLEND_MODE_XOR
r = s*(1-da) + d*(1-sa).
OH_Drawing_BlurType_INNER
Fuzzy inside, nothing outside.
OH_Drawing_BlurType_NORMAL
Fuzzy inside and outside.
OH_Drawing_BlurType_OUTER
Nothing inside, fuzzy outside.
OH_Drawing_BlurType_SOLID
Solid inside, fuzzy outside.
OH_Drawing_BreakStrategy_BREAK_STRATEGY_BALANCED
Balanced strategy
OH_Drawing_BreakStrategy_BREAK_STRATEGY_GREEDY
Greedy strategy
OH_Drawing_BreakStrategy_BREAK_STRATEGY_HIGH_QUALITY
Quality strategy
OH_Drawing_CanvasClipOp_DIFFERENCE
Clip with difference.
OH_Drawing_CanvasClipOp_INTERSECT
Clip with intersection.
OH_Drawing_CanvasShadowFlags_SHADOW_FLAGS_ALL
Use all shadow flags.
OH_Drawing_CanvasShadowFlags_SHADOW_FLAGS_GEOMETRIC_ONLY
No need to analyze shadows.
OH_Drawing_CanvasShadowFlags_SHADOW_FLAGS_NONE
Use no shadow flags.
OH_Drawing_CanvasShadowFlags_SHADOW_FLAGS_TRANSPARENT_OCCLUDER
The occluding object is transparent.
OH_Drawing_ColorFormat_COLOR_FORMAT_ALPHA_8
Each pixel is represented by 8 bits, which together indicate alpha.
OH_Drawing_ColorFormat_COLOR_FORMAT_ARGB_4444
Each pixel is represented by 16 bits. From the most significant bit to the least significant bit, every 4 bits indicate alpha, red, green, and blue, respectively.
OH_Drawing_ColorFormat_COLOR_FORMAT_BGRA_8888
Each pixel is represented by 32 bits. From the most significant bit to the least significant bit, every 8 bits indicate blue, green, red, and alpha, respectively.
OH_Drawing_ColorFormat_COLOR_FORMAT_RGBA_8888
Each pixel is represented by 32 bits. From the most significant bit to the least significant bit, every 8 bits indicate alpha, red, green, and blue, respectively.
OH_Drawing_ColorFormat_COLOR_FORMAT_RGB_565
Each pixel is represented by 16 bits. From the most significant bit to the least significant bit, the first 5 bits indicate red, the subsequent 6 bits indicate green, and the last 5 bits indicate blue.
OH_Drawing_ColorFormat_COLOR_FORMAT_UNKNOWN
Unknown format.
OH_Drawing_CornerPos_CORNER_POS_BOTTOM_LEFT
Index of bottom-left corner radii.
OH_Drawing_CornerPos_CORNER_POS_BOTTOM_RIGHT
Index of bottom-right corner radii.
OH_Drawing_CornerPos_CORNER_POS_TOP_LEFT
Index of top-left corner radii.
OH_Drawing_CornerPos_CORNER_POS_TOP_RIGHT
Index of top-right corner radii.
OH_Drawing_EllipsisModal_ELLIPSIS_MODAL_HEAD
Head modal
OH_Drawing_EllipsisModal_ELLIPSIS_MODAL_MIDDLE
Middle modal
OH_Drawing_EllipsisModal_ELLIPSIS_MODAL_TAIL
Tail modal
OH_Drawing_ErrorCode_OH_DRAWING_ERROR_INVALID_PARAMETER
@error Invalid input parameter. For example, the pointer in the parameter is a nullptr.
OH_Drawing_ErrorCode_OH_DRAWING_ERROR_NO_PERMISSION
@error Permission verification failed.
OH_Drawing_ErrorCode_OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE
@error The parameter is not in the valid range.
OH_Drawing_ErrorCode_OH_DRAWING_SUCCESS
@error Operation completed successfully.
OH_Drawing_FilterMode_FILTER_MODE_LINEAR
interporate between 2x2 sample points (bilinear interpolation)
OH_Drawing_FilterMode_FILTER_MODE_NEAREST
single sample point (nearest neighbor)
OH_Drawing_FontConfigInfoErrorCode_ERROR_FONT_CONFIG_INFO_ALLOC_MEMORY
Alloc memory error
OH_Drawing_FontConfigInfoErrorCode_ERROR_FONT_CONFIG_INFO_COPY_STRING_DATA
Copy string data error
OH_Drawing_FontConfigInfoErrorCode_ERROR_FONT_CONFIG_INFO_PARSE_FILE
Parse system config file error
OH_Drawing_FontConfigInfoErrorCode_ERROR_FONT_CONFIG_INFO_UNKNOWN
Unknown error
OH_Drawing_FontConfigInfoErrorCode_SUCCESS_FONT_CONFIG_INFO
The list of system font configuration information was successfully obtained
OH_Drawing_FontEdging_FONT_EDGING_ALIAS
no transparent pixels on glyph edges
OH_Drawing_FontEdging_FONT_EDGING_ANTI_ALIAS
may have transparent pixels on glyph edges
OH_Drawing_FontEdging_FONT_EDGING_SUBPIXEL_ANTI_ALIAS
glyph positioned in pixel using transparency
OH_Drawing_FontHinting_FONT_HINTING_FULL
modifies glyph outlines for maximum contrast
OH_Drawing_FontHinting_FONT_HINTING_NONE
glyph outlines unchanged
OH_Drawing_FontHinting_FONT_HINTING_NORMAL
glyph outlines modified to improve contrast
OH_Drawing_FontHinting_FONT_HINTING_SLIGHT
minimal modification to improve contrast
OH_Drawing_FontStyle_FONT_STYLE_ITALIC
Italic style
OH_Drawing_FontStyle_FONT_STYLE_NORMAL
Normal style
OH_Drawing_FontStyle_FONT_STYLE_OBLIQUE
Oblique style
OH_Drawing_FontWeight_FONT_WEIGHT_100
Thin
OH_Drawing_FontWeight_FONT_WEIGHT_200
Extra-light
OH_Drawing_FontWeight_FONT_WEIGHT_300
Light
OH_Drawing_FontWeight_FONT_WEIGHT_400
Normal/Regular
OH_Drawing_FontWeight_FONT_WEIGHT_500
Medium
OH_Drawing_FontWeight_FONT_WEIGHT_600
Semi-bold
OH_Drawing_FontWeight_FONT_WEIGHT_700
Bold
OH_Drawing_FontWeight_FONT_WEIGHT_800
Extra-bold
OH_Drawing_FontWeight_FONT_WEIGHT_900
Black
OH_Drawing_FontWidth_FONT_WIDTH_CONDENSED
OH_Drawing_FontWidth_FONT_WIDTH_EXPANDED
OH_Drawing_FontWidth_FONT_WIDTH_EXTRA_CONDENSED
OH_Drawing_FontWidth_FONT_WIDTH_EXTRA_EXPANDED
OH_Drawing_FontWidth_FONT_WIDTH_NORMAL
OH_Drawing_FontWidth_FONT_WIDTH_SEMI_CONDENSED
OH_Drawing_FontWidth_FONT_WIDTH_SEMI_EXPANDED
OH_Drawing_FontWidth_FONT_WIDTH_ULTRA_CONDENSED
OH_Drawing_FontWidth_FONT_WIDTH_ULTRA_EXPANDED
OH_Drawing_MipmapMode_MIPMAP_MODE_LINEAR
interpolate between the two nearest levels
OH_Drawing_MipmapMode_MIPMAP_MODE_NEAREST
sample from the nearest level
OH_Drawing_MipmapMode_MIPMAP_MODE_NONE
ignore mipmap levels, sample from the “base”
OH_Drawing_PathAddMode_PATH_ADD_MODE_APPEND
Appended to destination unaltered
OH_Drawing_PathAddMode_PATH_ADD_MODE_EXTEND
Add line if prior contour is not closed
OH_Drawing_PathDirection_PATH_DIRECTION_CCW
counter-clockwise direction for adding closed contours
OH_Drawing_PathDirection_PATH_DIRECTION_CW
clockwise direction for adding closed contours
OH_Drawing_PathFillType_PATH_FILL_TYPE_EVEN_ODD
Specifies that “inside” is computed by an odd number of edge crossings
OH_Drawing_PathFillType_PATH_FILL_TYPE_INVERSE_EVEN_ODD
Same as EvenOdd, but draws outside of the path, rather than inside
OH_Drawing_PathFillType_PATH_FILL_TYPE_INVERSE_WINDING
Same as Winding, but draws outside of the path, rather than inside
OH_Drawing_PathFillType_PATH_FILL_TYPE_WINDING
Specifies that “inside” is computed by a non-zero sum of signed edge crossings
OH_Drawing_PathMeasureMatrixFlags_GET_POSITION_AND_TANGENT_MATRIX
Gets both position and tangent.
OH_Drawing_PathMeasureMatrixFlags_GET_POSITION_MATRIX
Gets position.
OH_Drawing_PathMeasureMatrixFlags_GET_TANGENT_MATRIX
Gets tangent.
OH_Drawing_PathOpMode_PATH_OP_MODE_DIFFERENCE
Difference operation.
OH_Drawing_PathOpMode_PATH_OP_MODE_INTERSECT
Intersect operation.
OH_Drawing_PathOpMode_PATH_OP_MODE_REVERSE_DIFFERENCE
Reverse difference operation.
OH_Drawing_PathOpMode_PATH_OP_MODE_UNION
Union operation.
OH_Drawing_PathOpMode_PATH_OP_MODE_XOR
Xor operation.
OH_Drawing_PenLineCapStyle_LINE_FLAT_CAP
There is no cap style. Both ends of the line segment are cut off square.
OH_Drawing_PenLineCapStyle_LINE_ROUND_CAP
Round cap style. Both ends have a semicircle centered, the diameter of which is the same as the width of the line segment.
OH_Drawing_PenLineCapStyle_LINE_SQUARE_CAP
Square cap style. Both ends have a square, the height of which is half of the width of the line segment, with the same width.
OH_Drawing_PenLineJoinStyle_LINE_BEVEL_JOIN
Beveled corner.
OH_Drawing_PenLineJoinStyle_LINE_MITER_JOIN
Mitered corner. If the angle of a polyline is small, its miter length may be inappropriate. In this case, you need to use the miter limit to limit the miter length.
OH_Drawing_PenLineJoinStyle_LINE_ROUND_JOIN
Round corner.
OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_ABOVE_BASELINE
Above Baseline
OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_BELOW_BASELINE
Below Baseline
OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_BOTTOM_OF_ROW_BOX
Bottom of Row Box
OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_CENTER_OF_ROW_BOX
Center of Row Box
OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_OFFSET_AT_BASELINE
Offset At Baseline
OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_TOP_OF_ROW_BOX
Top of Row Box
OH_Drawing_PointMode_POINT_MODE_LINES
Draw each pair of points as a line segment.
OH_Drawing_PointMode_POINT_MODE_POINTS
Draw each point separately.
OH_Drawing_PointMode_POINT_MODE_POLYGON
Draw the array of points as a open polygon.
OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_INCLUDELINESPACEBOTTOM
Includelinespacebottom style
OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_INCLUDELINESPACEMIDDLE
Includelinespacemiddle style
OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_INCLUDELINESPACETOP
Includelinespacetop style
OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_MAX
Max style
OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_STRUCT
Struct style
OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_TIGHT
Tight style
OH_Drawing_RectWidthStyle_RECT_WIDTH_STYLE_MAX
Max style
OH_Drawing_RectWidthStyle_RECT_WIDTH_STYLE_TIGHT
Tight style
OH_Drawing_RegionOpMode_REGION_OP_MODE_DIFFERENCE
Difference operation.
OH_Drawing_RegionOpMode_REGION_OP_MODE_INTERSECT
Intersect operation.
OH_Drawing_RegionOpMode_REGION_OP_MODE_REPLACE
Replace operation.
OH_Drawing_RegionOpMode_REGION_OP_MODE_REVERSE_DIFFERENCE
Reverse difference operation.
OH_Drawing_RegionOpMode_REGION_OP_MODE_UNION
Union operation.
OH_Drawing_RegionOpMode_REGION_OP_MODE_XOR
Xor operation.
OH_Drawing_ScaleToFit_SCALE_TO_FIT_CENTER
Scales and aligns to center.
OH_Drawing_ScaleToFit_SCALE_TO_FIT_END
Scales and aligns to right and bottom.
OH_Drawing_ScaleToFit_SCALE_TO_FIT_FILL
Scales in x and y to fill destination rect.
OH_Drawing_ScaleToFit_SCALE_TO_FIT_START
Scales and aligns to left and top.
OH_Drawing_SrcRectConstraint_FAST_SRC_RECT_CONSTRAINT
Using sampling outside bounds in a faster manner.
OH_Drawing_SrcRectConstraint_STRICT_SRC_RECT_CONSTRAINT
Using sampling only inside bounds in a slower manner.
OH_Drawing_TextAlign_TEXT_ALIGN_CENTER
Center-aligned
OH_Drawing_TextAlign_TEXT_ALIGN_END
TEXT_ALIGN_END achieves the same effect as TEXT_ALIGN_RIGHT when OH_Drawing_TextDirection is TEXT_DIRECTION_LTR; it achieves the same effect as TEXT_ALIGN_LEFT when OH_Drawing_TextDirection is TEXT_DIRECTION_RTL.
OH_Drawing_TextAlign_TEXT_ALIGN_JUSTIFY
Justified, which means that each line (except the last line) is stretched so that every line has equal width, and the left and right margins are straight.
OH_Drawing_TextAlign_TEXT_ALIGN_LEFT
Left-aligned
OH_Drawing_TextAlign_TEXT_ALIGN_RIGHT
Right-aligned
OH_Drawing_TextAlign_TEXT_ALIGN_START
TEXT_ALIGN_START achieves the same effect as TEXT_ALIGN_LEFT when OH_Drawing_TextDirection is TEXT_DIRECTION_LTR; it achieves the same effect as TEXT_ALIGN_RIGHT when OH_Drawing_TextDirection is TEXT_DIRECTION_RTL.
OH_Drawing_TextBaseline_TEXT_BASELINE_ALPHABETIC
Alphabetic, where the letters in alphabets like English sit on.
OH_Drawing_TextBaseline_TEXT_BASELINE_IDEOGRAPHIC
Ideographic. The baseline is at the bottom of the text area.
OH_Drawing_TextDecorationStyle_TEXT_DECORATION_STYLE_DASHED
Dashed style
OH_Drawing_TextDecorationStyle_TEXT_DECORATION_STYLE_DOTTED
Dotted style
OH_Drawing_TextDecorationStyle_TEXT_DECORATION_STYLE_DOUBLE
Double style
OH_Drawing_TextDecorationStyle_TEXT_DECORATION_STYLE_SOLID
Solid style
OH_Drawing_TextDecorationStyle_TEXT_DECORATION_STYLE_WAVY
Wavy style
OH_Drawing_TextDecoration_TEXT_DECORATION_LINE_THROUGH
A strikethrough is used for decoration.
OH_Drawing_TextDecoration_TEXT_DECORATION_NONE
No decoration.
OH_Drawing_TextDecoration_TEXT_DECORATION_OVERLINE
An overline is used for decoration.
OH_Drawing_TextDecoration_TEXT_DECORATION_UNDERLINE
A underline is used for decoration.
OH_Drawing_TextDirection_TEXT_DIRECTION_LTR
Left to right (LTR)
OH_Drawing_TextDirection_TEXT_DIRECTION_RTL
Right to left (RTL)
OH_Drawing_TextEncoding_TEXT_ENCODING_GLYPH_ID
uses two byte words to represent glyph indices
OH_Drawing_TextEncoding_TEXT_ENCODING_UTF8
uses bytes to represent UTF-8 or ASCII
OH_Drawing_TextEncoding_TEXT_ENCODING_UTF16
uses two byte words to represent most of Unicode
OH_Drawing_TextEncoding_TEXT_ENCODING_UTF32
uses four byte words to represent all of Unicode
OH_Drawing_TextHeightBehavior_TEXT_HEIGHT_ALL
both ascend of first row and last row style
OH_Drawing_TextHeightBehavior_TEXT_HEIGHT_DISABLE_ALL
neither ascend of first row nor last row style
OH_Drawing_TextHeightBehavior_TEXT_HEIGHT_DISABLE_FIRST_ASCENT
forbidding ascend of first row style
OH_Drawing_TextHeightBehavior_TEXT_HEIGHT_DISABLE_LAST_ASCENT
forbidding ascend of last row style
OH_Drawing_TextStyleType_TEXT_STYLE_ALL_ATTRIBUTES
All attributes style
OH_Drawing_TextStyleType_TEXT_STYLE_BACKGROUND
Background style
OH_Drawing_TextStyleType_TEXT_STYLE_DECORATIONS
Decorations style
OH_Drawing_TextStyleType_TEXT_STYLE_FONT
Font style
OH_Drawing_TextStyleType_TEXT_STYLE_FOREGROUND
Foreground style
OH_Drawing_TextStyleType_TEXT_STYLE_LETTER_SPACING
Letter spacing style
OH_Drawing_TextStyleType_TEXT_STYLE_NONE
None style
OH_Drawing_TextStyleType_TEXT_STYLE_SHADOW
Shadow style
OH_Drawing_TextStyleType_TEXT_STYLE_WORD_SPACING
Word spacing style
OH_Drawing_TileMode_CLAMP
Replicate the edge color if the shader effect draws outside of its original bounds.
OH_Drawing_TileMode_DECAL
Only draw within the original domain, return transparent-black everywhere else.
OH_Drawing_TileMode_MIRROR
Repeat the shader effect image horizontally and vertically, alternating mirror images so that adjacent images always seam.
OH_Drawing_TileMode_REPEAT
Repeat the shader effect image horizontally and vertically.
OH_Drawing_VertexMode_VERTEX_MODE_TRIANGLES
The vertices are a triangle list.
OH_Drawing_VertexMode_VERTEX_MODE_TRIANGLES_STRIP
The vertices are a triangle strip.
OH_Drawing_VertexMode_VERTEX_MODE_TRIANGLE_FAN
The vertices are a triangle fan.
OH_Drawing_WordBreakType_WORD_BREAK_TYPE_BREAK_ALL
Break All type
OH_Drawing_WordBreakType_WORD_BREAK_TYPE_BREAK_WORD
Break Word type
OH_Drawing_WordBreakType_WORD_BREAK_TYPE_NORMAL
Normal type

Functions§

OH_Drawing_BitmapBuild⚠
@brief Initializes the width and height of an OH_Drawing_Bitmap object and sets the pixel format for the bitmap.
OH_Drawing_BitmapCreate⚠
@brief Creates an OH_Drawing_Bitmap object.
OH_Drawing_BitmapCreateFromPixels⚠
@brief Creates an OH_Drawing_Bitmap object with OH_Drawing_Image_Info object and sets the mem address or pixel storage.
OH_Drawing_BitmapDestroy⚠
@brief Destroys an OH_Drawing_Bitmap object and reclaims the memory occupied by the object.
OH_Drawing_BitmapGetAlphaFormat⚠
@brief Obtains the alpha format of a bitmap.
OH_Drawing_BitmapGetColorFormat⚠
@brief Obtains the color format of a bitmap.
OH_Drawing_BitmapGetHeight⚠
@brief Obtains the height of a bitmap.
OH_Drawing_BitmapGetImageInfo⚠
@brief Gets the image info.
OH_Drawing_BitmapGetPixels⚠
@brief Obtains the pixel address of a bitmap. You can use this address to obtain the pixel data of the bitmap.
OH_Drawing_BitmapGetWidth⚠
@brief Obtains the width of a bitmap.
OH_Drawing_BitmapReadPixels⚠
@brief Copies a rect of pixels from bitmap to dstPixels. Copy starts at (srcX, srcY), and does not exceed bitmap width and height.
OH_Drawing_BrushCopy⚠
@brief Creates an OH_Drawing_Brush copy object.
OH_Drawing_BrushCreate⚠
@brief Creates an OH_Drawing_Brush object.
OH_Drawing_BrushDestroy⚠
@brief Destroys an OH_Drawing_Brush object and reclaims the memory occupied by the object.
OH_Drawing_BrushGetAlpha⚠
@brief Obtains the alpha of a brush. The alpha is used by the brush to fill in a shape.
OH_Drawing_BrushGetColor⚠
@brief Obtains the color of a brush. The color is used by the brush to fill in a shape.
OH_Drawing_BrushGetFilter⚠
@brief Gets the filter from a brush.
OH_Drawing_BrushIsAntiAlias⚠
@brief Checks whether anti-aliasing is enabled for a brush. If anti-aliasing is enabled, edges will be drawn with partial transparency.
OH_Drawing_BrushReset⚠
@brief Resets all brush contents to their initial values.
OH_Drawing_BrushSetAlpha⚠
@brief Sets the alpha for a brush. The alpha will be used by the brush to fill in a shape.
OH_Drawing_BrushSetAntiAlias⚠
@brief Enables or disables anti-aliasing for a brush. If anti-aliasing is enabled, edges will be drawn with partial transparency.
OH_Drawing_BrushSetBlendMode⚠
@brief Sets a blender that implements the specified blendmode enum for a brush.
OH_Drawing_BrushSetColor⚠
@brief Sets the color for a brush. The color will be used by the brush to fill in a shape.
OH_Drawing_BrushSetFilter⚠
@brief Sets the filter for a brush.
OH_Drawing_BrushSetShaderEffect⚠
@brief Sets the shaderEffect for a brush.
OH_Drawing_BrushSetShadowLayer⚠
@brief Sets the shadowLayer for a brush.
OH_Drawing_CanvasAttachBrush⚠
@brief Attaches a brush to a canvas so that the canvas will use the style and color of the brush to fill in a shape.
OH_Drawing_CanvasAttachPen⚠
@brief Attaches a pen to a canvas so that the canvas will use the style and color of the pen to outline a shape.
OH_Drawing_CanvasBind⚠
@brief Binds a bitmap to a canvas so that the content drawn on the canvas is output to the bitmap (this process is called CPU rendering).
OH_Drawing_CanvasClear⚠
@brief Clears a canvas by using a specified color.
OH_Drawing_CanvasClipPath⚠
@brief Clip a path.
OH_Drawing_CanvasClipRect⚠
@brief Clip a rect.
OH_Drawing_CanvasClipRegion⚠
@brief Clips a region.
OH_Drawing_CanvasClipRoundRect⚠
@brief Clip a round rect.
OH_Drawing_CanvasConcatMatrix⚠
@brief Use the passed matrix to transforming the geometry, then use existing matrix.
OH_Drawing_CanvasCreate⚠
@brief Creates an OH_Drawing_Canvas object.
OH_Drawing_CanvasDestroy⚠
@brief Destroys an OH_Drawing_Canvas object and reclaims the memory occupied by the object.
OH_Drawing_CanvasDetachBrush⚠
@brief Detaches the brush from a canvas so that the canvas will not use the style and color of the brush to fill in a shape.
OH_Drawing_CanvasDetachPen⚠
@brief Detaches the pen from a canvas so that the canvas will not use the style and color of the pen to outline a shape.
OH_Drawing_CanvasDrawArc⚠
@brief Draws an arc.
OH_Drawing_CanvasDrawBackground⚠
@brief Fills clipped canvas area with brush.
OH_Drawing_CanvasDrawBitmap⚠
@brief Draws a bitmap.
OH_Drawing_CanvasDrawBitmapRect⚠
@brief Draw the specified area of the bitmap to the specified area of the canvas.
OH_Drawing_CanvasDrawCircle⚠
@brief Draws a circle.
OH_Drawing_CanvasDrawColor⚠
@brief Fills the entire canvas with the specified color and blend mode.
OH_Drawing_CanvasDrawImageRect⚠
@brief Draws the specified source rectangle of the image onto the canvas, scaled and translated to the destination rectangle.
OH_Drawing_CanvasDrawImageRectWithSrc⚠
@brief Draws the specified source rectangle of the image onto the canvas, scaled and translated to the destination rectangle.
OH_Drawing_CanvasDrawLine⚠
@brief Draws a line segment.
OH_Drawing_CanvasDrawOval⚠
@brief Draws an oval.
OH_Drawing_CanvasDrawPath⚠
@brief Draws a path.
OH_Drawing_CanvasDrawPixelMapRect⚠
@brief Draw the specified area of the Media::PixelMap to the specified area of the canvas.
OH_Drawing_CanvasDrawPoint⚠
@brief Draws a point.
OH_Drawing_CanvasDrawPoints⚠
@brief Draws point array as separate point, line segment or open polygon according to given point mode.
OH_Drawing_CanvasDrawRect⚠
@brief Draws a rect.
OH_Drawing_CanvasDrawRegion⚠
@brief Draws region using clip, matrix and paint.
OH_Drawing_CanvasDrawRoundRect⚠
@brief Draws a roundrect.
OH_Drawing_CanvasDrawShadow⚠
@brief Use circular light to draw an offset spot shadow and outlining ambient shadow for the given path.
OH_Drawing_CanvasDrawSingleCharacter⚠
@brief Draws a single character.
OH_Drawing_CanvasDrawTextBlob⚠
@brief Draws a textblob.
OH_Drawing_CanvasDrawVertices⚠
@brief Draw a triangular mesh with vertex descriptions.
OH_Drawing_CanvasGetHeight⚠
@brief Get the height of a canvas.
OH_Drawing_CanvasGetImageInfo⚠
@brief Gets image info of canvas.
OH_Drawing_CanvasGetLocalClipBounds⚠
@brief Get the bounds of clip of a canvas.
OH_Drawing_CanvasGetSaveCount⚠
@brief Gets the number of the canvas status (canvas matrix) saved in the stack.
OH_Drawing_CanvasGetTotalMatrix⚠
@brief Get a 3x3 matrix of the transform from local coordinates to ‘device’.
OH_Drawing_CanvasGetWidth⚠
@brief Get the width of a canvas.
OH_Drawing_CanvasIsClipEmpty⚠
@brief Checks whether the drawable area is empty.
OH_Drawing_CanvasReadPixels⚠
@brief Read pixels data from canvas.
OH_Drawing_CanvasReadPixelsToBitmap⚠
@brief Read pixels data to a bitmap from canvas.
OH_Drawing_CanvasResetMatrix⚠
@brief Reset matrix to the idenmtity matrix, any prior matrix state is overwritten.
OH_Drawing_CanvasRestore⚠
@brief Restores the canvas status (canvas matrix) saved on the top of the stack.
OH_Drawing_CanvasRestoreToCount⚠
@brief Restores the specific number of the canvas status (canvas matrix) saved in the stack.
OH_Drawing_CanvasRotate⚠
@brief Rotates by degrees. Positive degrees rotates clockwise.
OH_Drawing_CanvasSave⚠
@brief Saves the current canvas status (canvas matrix) to the top of the stack.
OH_Drawing_CanvasSaveLayer⚠
@brief Saves matrix and clip, and allocates a bitmap for subsequent drawing. Calling restore discards changes to matrix and clip, and draws the bitmap.
OH_Drawing_CanvasScale⚠
@brief Scales by sx on the x-axis and sy on the y-axis.
OH_Drawing_CanvasSetMatrix⚠
@brief Sets matrix of canvas.
OH_Drawing_CanvasSkew⚠
@brief Skew by sx on the x-axis and sy on the y-axis.
OH_Drawing_CanvasTranslate⚠
@brief Translates by dx along the x-axis and dy along the y-axis.
OH_Drawing_ClearFontCaches⚠
@brief Clear font caches.
OH_Drawing_ColorFilterCreateBlendMode⚠
@brief Creates an OH_Drawing_ColorFilter with a blend mode.
OH_Drawing_ColorFilterCreateCompose⚠
@brief Creates an OH_Drawing_ColorFilter applies the outerColorFilter and then applies innerColorFilter.
OH_Drawing_ColorFilterCreateLinearToSrgbGamma⚠
@brief Creates an OH_Drawing_ColorFilter applies the gamma curve of SRGB to the RGB color channel.
OH_Drawing_ColorFilterCreateLuma⚠
@brief Creates an OH_Drawing_ColorFilter multiplies the luma of its input into the alpha channel, and sets the red, green, and blue channels to zero.
OH_Drawing_ColorFilterCreateMatrix⚠
@brief Creates an OH_Drawing_ColorFilter with a 5x4 color matrix.
OH_Drawing_ColorFilterCreateSrgbGammaToLinear⚠
@brief Creates an OH_Drawing_ColorFilter applies the RGB color channel to the gamma curve of SRGB.
OH_Drawing_ColorFilterDestroy⚠
@brief Destroys an OH_Drawing_ColorFilter object and reclaims the memory occupied by the object.
OH_Drawing_ColorSetArgb⚠
@brief Converts four variables (alpha, red, green, and blue) into a 32-bit (ARGB) variable that describes a color.
OH_Drawing_ColorSpaceCreateSrgb⚠
@brief Creates an OH_Drawing_ColorSpace object that represents the SRGB color space.
OH_Drawing_ColorSpaceCreateSrgbLinear⚠
@brief Creates an OH_Drawing_ColorSpace object with the SRGB primaries, but a linear (1.0) gamma.
OH_Drawing_ColorSpaceDestroy⚠
@brief Destroy an OH_Drawing_ColorSpace object.
OH_Drawing_CreateDashPathEffect⚠
@brief Creates an OH_Drawing_PathEffect object.
OH_Drawing_CreateFontCollection⚠
@brief Creates an OH_Drawing_FontCollection object.
OH_Drawing_CreateFontDescriptor⚠
@brief Creates an OH_Drawing_FontDescriptor object.
OH_Drawing_CreateFontParser⚠
@brief Creates an OH_Drawing_FontParser object.
OH_Drawing_CreateSharedFontCollection⚠
@brief Creates an OH_Drawing_FontCollection object with shared usage between OH_Drawing_TypographyCreate.
OH_Drawing_CreateTextShadow⚠
@brief Creates an OH_Drawing_TextShadow object.
OH_Drawing_CreateTextStyle⚠
@brief Creates an OH_Drawing_TextStyle object.
OH_Drawing_CreateTypography⚠
@brief Creates an OH_Drawing_Typography object.
OH_Drawing_CreateTypographyHandler⚠
@brief Creates a pointer to an OH_Drawing_TypographyCreate object.
OH_Drawing_CreateTypographyStyle⚠
@brief Creates an OH_Drawing_TypographyStyle object.
OH_Drawing_DestroyFontCollection⚠
@brief Releases the memory occupied by an OH_Drawing_FontCollection object.
OH_Drawing_DestroyFontDescriptor⚠
@brief Releases the memory occupied by an OH_Drawing_FontDescriptor object.
OH_Drawing_DestroyFontParser⚠
@brief Releases the memory occupied by an OH_Drawing_FontParser object.
OH_Drawing_DestroyLineMetrics⚠
@brief Releases the memory occupied by line metrics.
OH_Drawing_DestroySystemFontConfigInfo⚠
@brief Releases the memory occupied by system font configuration information.
OH_Drawing_DestroySystemFontList⚠
@brief Releases the memory occupied by a list of system font names.
OH_Drawing_DestroyTextShadow⚠
@brief Releases the memory occupied by the text shadow object OH_Drawing_TextShadow.
OH_Drawing_DestroyTextShadows⚠
@brief Releases the memory occupied by vector with the text shadow object OH_Drawing_TextShadow.
OH_Drawing_DestroyTextStyle⚠
@brief Releases the memory occupied by an OH_Drawing_TextStyle object.
OH_Drawing_DestroyTypography⚠
@brief Releases the memory occupied by an OH_Drawing_Typography object.
OH_Drawing_DestroyTypographyHandler⚠
@brief Releases the memory occupied by an OH_Drawing_TypographyCreate object.
OH_Drawing_DestroyTypographyStyle⚠
@brief Releases the memory occupied by an OH_Drawing_TypographyStyle object.
OH_Drawing_DisableFontCollectionFallback⚠
@brief Disable the font collection fallback.
OH_Drawing_DisableFontCollectionSystemFont⚠
@brief Disable the font collection systemfont.
OH_Drawing_ErrorCodeGet⚠
@brief Obtains the error code of the drawing module.
OH_Drawing_FilterCreate⚠
@brief Creates an OH_Drawing_Filter object.
OH_Drawing_FilterDestroy⚠
@brief Destroys an OH_Drawing_Filter object and reclaims the memory occupied by the object.
OH_Drawing_FilterGetColorFilter⚠
@brief Gets an OH_Drawing_ColorFilter object from an OH_Drawing_Filter object.
OH_Drawing_FilterSetColorFilter⚠
@brief Sets an OH_Drawing_ColorFilter object for an OH_Drawing_Filter object.
OH_Drawing_FilterSetImageFilter⚠
@brief Sets an OH_Drawing_ImageFilter object for an OH_Drawing_Filter object.
OH_Drawing_FilterSetMaskFilter⚠
@brief Sets an OH_Drawing_MaskFilter object for an OH_Drawing_Filter object.
OH_Drawing_FontCountText⚠
@brief Calculate number of glyphs represented by text.
OH_Drawing_FontCreate⚠
@brief Creates an OH_Drawing_Font object.
OH_Drawing_FontDestroy⚠
@brief Destroys an OH_Drawing_Font object and reclaims the memory occupied by the object.
OH_Drawing_FontGetEdging⚠
@brief Gets the font edging effect from an OH_Drawing_Font object.
OH_Drawing_FontGetHinting⚠
@brief Gets hinting pattern from an OH_Drawing_Font object.
OH_Drawing_FontGetMetrics⚠
@brief Obtains the metrics of a font.
OH_Drawing_FontGetScaleX⚠
@brief Gets text scale on x-axis from an OH_Drawing_Font object.
OH_Drawing_FontGetTextSize⚠
@brief Gets text size for an OH_Drawing_Font object.
OH_Drawing_FontGetTextSkewX⚠
@brief Gets text skew on x-axis for an OH_Drawing_Font object.
OH_Drawing_FontGetTypeface⚠
@brief Gets an OH_Drawing_Typeface object from the OH_Drawing_Typeface object.
OH_Drawing_FontGetWidths⚠
@brief Retrieves the advance for each glyph in glyphs.
OH_Drawing_FontIsBaselineSnap⚠
@brief Gets whether the font baselines and pixels alignment when the transformation matrix is ​​axis aligned.
OH_Drawing_FontIsEmbeddedBitmaps⚠
@brief Gets whether to use bitmaps instead of outlines in the OH_Drawing_Font object.
OH_Drawing_FontIsFakeBoldText⚠
@brief Gets whether to increase the stroke width to approximate bold fonts.
OH_Drawing_FontIsForceAutoHinting⚠
@brief Gets whether the font outline is automatically adjusted.
OH_Drawing_FontIsLinearText⚠
@brief Gets whether the font is linearly scalable.
OH_Drawing_FontIsSubpixel⚠
@brief Gets whether the font uses sub-pixel rendering.
OH_Drawing_FontMeasureSingleCharacter⚠
@brief Measures the width of a single character.
OH_Drawing_FontMeasureText⚠
@brief Measures the width of text.
OH_Drawing_FontMgrCreate⚠
@brief Creates an OH_Drawing_FontMgr object.
OH_Drawing_FontMgrCreateFontStyleSet⚠
@brief Creates an OH_Drawing_FontStyleSet object by OH_Drawing_FontMgr object.
OH_Drawing_FontMgrDestroy⚠
@brief Releases the memory occupied by an OH_Drawing_FontMgr object.
OH_Drawing_FontMgrDestroyFamilyName⚠
@brief Releases the memory occupied by font family name.
OH_Drawing_FontMgrDestroyFontStyleSet⚠
@brief Releases the memory occupied by an OH_Drawing_FontStyleSet object.
OH_Drawing_FontMgrGetFamilyCount⚠
@brief Gets the count of font families.
OH_Drawing_FontMgrGetFamilyName⚠
@brief Gets the font family name by the index.
OH_Drawing_FontMgrMatchFamily⚠
@brief Get the pointer to an OH_Drawing_FontStyleSet object for the given font style set family name.
OH_Drawing_FontMgrMatchFamilyStyle⚠
@brief Get the pointer to an OH_Drawing_Typeface object based on the given font style and family name.
OH_Drawing_FontMgrMatchFamilyStyleCharacter⚠
@brief Get the pointer to an OH_Drawing_Typeface object for the given character.
OH_Drawing_FontParserGetFontByName⚠
@brief Gets information about the system font by font name.
OH_Drawing_FontParserGetSystemFontList⚠
@brief Gets a list of system font names.
OH_Drawing_FontSetBaselineSnap⚠
@brief Sets whether the font baselines and pixels alignment when the transformation matrix is ​​axis aligned.
OH_Drawing_FontSetEdging⚠
@brief Sets the font edging effect for an OH_Drawing_Font object.
OH_Drawing_FontSetEmbeddedBitmaps⚠
@brief Sets whether to use bitmaps instead of outlines in the OH_Drawing_Font object.
OH_Drawing_FontSetFakeBoldText⚠
@brief Enables or disables to increase stroke width to approximate bold fonts for an OH_Drawing_Font object.
OH_Drawing_FontSetForceAutoHinting⚠
@brief Sets whether the font outline is automatically adjusted.
OH_Drawing_FontSetHinting⚠
@brief Sets hinting pattern for an OH_Drawing_Font object.
OH_Drawing_FontSetLinearText⚠
@brief Enables or disables linearly scalable font for an OH_Drawing_Font object.
OH_Drawing_FontSetScaleX⚠
@brief Sets text scale on x-axis for an OH_Drawing_Font object.
OH_Drawing_FontSetSubpixel⚠
@brief Sets whether the font uses sub-pixel rendering.
OH_Drawing_FontSetTextSize⚠
@brief Sets text size for an OH_Drawing_Font object.
OH_Drawing_FontSetTextSkewX⚠
@brief Sets text skew on x-axis for an OH_Drawing_Font object.
OH_Drawing_FontSetTypeface⚠
@brief Sets an OH_Drawing_Typeface object for an OH_Drawing_Font object.
OH_Drawing_FontStyleSetCount⚠
@brief Get the count of typeface.
OH_Drawing_FontStyleSetCreateTypeface⚠
@brief Create a typeface for the given index.
OH_Drawing_FontStyleSetFreeStyleName⚠
@brief Releases the memory styleName string.
OH_Drawing_FontStyleSetGetStyle⚠
@brief Get font style for the specified typeface.
OH_Drawing_FontStyleSetMatchStyle⚠
@brief Get the closest matching typeface.
OH_Drawing_FontTextToGlyphs⚠
@brief Converts text into glyph indices.
OH_Drawing_GetAffinityFromPositionAndAffinity⚠
@brief Gets affinity from position and affinity.
OH_Drawing_GetBottomFromTextBox⚠
@brief Gets bottom from textbox.
OH_Drawing_GetEndFromRange⚠
@brief Gets end from range.
OH_Drawing_GetLeftFromTextBox⚠
@brief Gets left from textbox.
OH_Drawing_GetPositionFromPositionAndAffinity⚠
@brief Gets position from position and affinity.
OH_Drawing_GetRightFromTextBox⚠
@brief Gets right from textbox.
OH_Drawing_GetSizeOfTextBox⚠
@brief Gets size of textBox.
OH_Drawing_GetStartFromRange⚠
@brief Gets start from range.
OH_Drawing_GetSystemFontConfigInfo⚠
@brief Gets system font configuration information.
OH_Drawing_GetTextDirectionFromTextBox⚠
@brief Gets direction from textbox.
OH_Drawing_GetTopFromTextBox⚠
@brief Gets top from textbox.
OH_Drawing_GpuContextCreateFromGL⚠
@brief Creates an OH_Drawing_GpuContext object, whose GPU backend context is GL.
OH_Drawing_GpuContextDestroy⚠
@brief Destroys an OH_Drawing_GpuContext object and reclaims the memory occupied by the object.
OH_Drawing_ImageBuildFromBitmap⚠
@brief Rebuilds an OH_Drawing_Image object, sharing or copying bitmap pixels.
OH_Drawing_ImageCreate⚠
@brief Creates an OH_Drawing_Image object.
OH_Drawing_ImageDestroy⚠
@brief Destroys an OH_Drawing_Image object and reclaims the memory occupied by the object.
OH_Drawing_ImageFilterCreateBlur⚠
@brief Creates an OH_Drawing_ImageFilter object that blurs its input by the separate x and y sigmas.
OH_Drawing_ImageFilterCreateFromColorFilter⚠
@brief Creates an OH_Drawing_ImageFilter object that applies the color filter to the input.
OH_Drawing_ImageFilterDestroy⚠
@brief Destroys an OH_Drawing_ImageFilter object and reclaims the memory occupied by the object.
OH_Drawing_ImageGetHeight⚠
@brief Gets pixel row count of image.
OH_Drawing_ImageGetImageInfo⚠
@brief Gets the image info.
OH_Drawing_ImageGetWidth⚠
@brief Gets pixel count in each row of image.
OH_Drawing_LineMetricsGetSize⚠
@brief Get the number of lines.
OH_Drawing_MaskFilterCreateBlur⚠
@brief Creates an OH_Drawing_MaskFilter with a blur effect.
OH_Drawing_MaskFilterDestroy⚠
@brief Destroys an OH_Drawing_MaskFilter object and reclaims the memory occupied by the object.
OH_Drawing_MatrixConcat⚠
@brief Sets matrix total to matrix a multiplied by matrix b. Given: | A B C | | J K L | a = | D E F |, b = | M N O | | G H I | | P Q R | sets Matrix total to: | A B C | | J K L | | AJ+BM+CP AK+BN+CQ AL+BO+CR | total = a * b = | D E F | * | M N O | = | DJ+EM+FP DK+EN+FQ DL+EO+FR | | G H I | | P Q R | | GJ+HM+IP GK+HN+IQ GL+HO+IR | @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param total Indicates the pointer to an OH_Drawing_Matrix object that a * b. @param a Indicates the pointer to an OH_Drawing_Matrix object. @param b Indicates the pointer to an OH_Drawing_Matrix object. @since 12 @version 1.0
OH_Drawing_MatrixCreate⚠
@brief Creates an OH_Drawing_Matrix object.
OH_Drawing_MatrixCreateRotation⚠
@brief Creates an OH_Drawing_Matrix object with rotation. Sets matrix to rotate by degrees about a pivot point at (px, py).
OH_Drawing_MatrixCreateScale⚠
@brief Creates an OH_Drawing_Matrix object with scale. Sets matrix to scale by sx and sy, about a pivot point at (px, py).
OH_Drawing_MatrixCreateTranslation⚠
@brief Creates an OH_Drawing_Matrix object with translation.
OH_Drawing_MatrixDestroy⚠
@brief Destroys an OH_Drawing_Matrix object and reclaims the memory occupied by the object.
OH_Drawing_MatrixGetAll⚠
@brief Gets nine matrix values contained by matrix into array.
OH_Drawing_MatrixGetValue⚠
@brief Get one matrix value. Index is between the range of 0-8. @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param matrix Indicates the pointer to an OH_Drawing_Matrix object. @param index one of 0-8. @return Returns value corresponding to index.Returns 0 if out of range. @since 12 @version 1.0
OH_Drawing_MatrixInvert⚠
@brief Sets inverse to reciprocal matrix, returning true if matrix can be inverted.
OH_Drawing_MatrixIsEqual⚠
@brief Returns true if the first matrix equals the second matrix.
OH_Drawing_MatrixIsIdentity⚠
@brief Returns true if matrix is identity. Identity matrix is : | 1 0 0 | | 0 1 0 | | 0 0 1 |
OH_Drawing_MatrixMapPoints⚠
@brief Maps the src point array to the dst point array by matrix transformation.
OH_Drawing_MatrixMapRect⚠
@brief Sets dst to bounds of src corners mapped by matrix transformation.
OH_Drawing_MatrixPostRotate⚠
@brief Sets matrix to matrix constructed from rotating by degrees about pivot point(px, py), multiplied by matrix, positive degrees rotates clockwise. Given:
OH_Drawing_MatrixPostScale⚠
@brief Sets matrix to backward scale by sx and sy, about a pivot point at (px, py). Given: | J K L | | sx 0 dx | Matrix = | M N O |, S(sx, sy, px, py) = | 0 sy dy | | P Q R | | 0 0 1 | where: dx = px - sx * px dy = py - sy * py sets Matrix to: | sx 0 dx | | J K L | | sxJ+dxP sxK+dxQ sxL+dx+R | S(sx, sy, px, py) * Matrix = | 0 sy dy | | M N O | = | syM+dyP syN+dyQ syO+dy*R | | 0 0 1 | | P Q R | | P Q R |
OH_Drawing_MatrixPostTranslate⚠
@brief Sets backward matrix to translate by (dx, dy). Given:
OH_Drawing_MatrixPreRotate⚠
@brief Sets matrix to matrix multiplied by matrix constructed from rotating by degrees about pivot point(px, py), positive degrees rotates clockwise. Given:
OH_Drawing_MatrixPreScale⚠
@brief Sets matrix to forward scale by sx and sy, about a pivot point at (px, py). Given:
OH_Drawing_MatrixPreTranslate⚠
@brief Sets forward matrix to translate by dx and dy. Given: | A B C | | 1 0 dx | Matrix = | D E F |, T(dx, dy) = | 0 1 dy | | G H I | | 0 0 1 | sets Matrix to: | A B C | | 1 0 dx | | A B Adx+Bdy+C | Matrix * T(dx, dy) = | D E F | | 0 1 dy | = | D E Ddx+Edy+F | | G H I | | 0 0 1 | | G H Gdx+Hdy+I |
OH_Drawing_MatrixReset⚠
@brief Reset matrix to identity, which has no effect on mapped point, sets matrix to: | 1 0 0 | | 0 1 0 | | 0 0 1 |
OH_Drawing_MatrixRotate⚠
@brief Sets matrix to rotate by degrees about a pivot point at (px, py). The pivot point is unchanged when mapped with matrix. Positive degrees rotates clockwise.
OH_Drawing_MatrixScale⚠
@brief Sets matrix to scale by sx and sy, about a pivot point at (px, py).
OH_Drawing_MatrixSetMatrix⚠
@brief Sets the params for a matrix.
OH_Drawing_MatrixSetPolyToPoly⚠
@brief Sets the params of matrix to map src to dst. Count must greater than or equal to zero, and less than or equal to four.
OH_Drawing_MatrixSetRectToRect⚠
@brief Sets matrix to scale and translate src rect to dst rect.
OH_Drawing_MatrixTranslate⚠
@brief Sets matrix to translate by (dx, dy)
OH_Drawing_MemoryStreamCreate⚠
@brief Creates a OH_Drawing_MemoryStream object.
OH_Drawing_MemoryStreamDestroy⚠
@brief Destroys an OH_Drawing_MemoryStream object and reclaims the memory occupied by the object.
OH_Drawing_PathAddArc⚠
@brief Appends arc to path, as the start of new contour.Arc added is part of ellipse bounded by oval, from startAngle through sweepAngle. Both startAngle and sweepAngle are measured in degrees, where zero degrees is aligned with the positive x-axis, and positive sweeps extends arc clockwise.If sweepAngle <= -360, or sweepAngle >= 360; and startAngle modulo 90 is nearly zero, append oval instead of arc. Otherwise, sweepAngle values are treated modulo 360, and arc may or may not draw depending on numeric rounding.
OH_Drawing_PathAddCircle⚠
@brief Adds a circle to the path, and wound in the specified direction.
OH_Drawing_PathAddOval⚠
@brief Adds a oval to the path, defined by the rect, and wound in the specified direction.
OH_Drawing_PathAddOvalWithInitialPoint⚠
@brief Adds a oval to the path, defined by the rect, and wound in the specified direction.
OH_Drawing_PathAddPath⚠
@brief Appends src path to path, transformed by matrix. Transformed curves may have different verbs, point, and conic weights.
OH_Drawing_PathAddPathWithMatrixAndMode⚠
@brief Appends src path to path, transformed by matrix and mode. Transformed curves may have different verbs, point, and conic weights.
OH_Drawing_PathAddPathWithMode⚠
@brief Appends src path to path, transformed by mode. Transformed curves may have different verbs, point, and conic weights.
OH_Drawing_PathAddPathWithOffsetAndMode⚠
@brief Appends src path to path, transformed by offset and mode. Transformed curves may have different verbs, point, and conic weights.
OH_Drawing_PathAddPolygon⚠
@brief Adds contour created from point array, adding (count - 1) line segments.
OH_Drawing_PathAddRect⚠
@brief Adds a new contour to the path, defined by the rect, and wound in the specified direction.
OH_Drawing_PathAddRectWithInitialCorner⚠
@brief Adds a new contour to the path, defined by the rect, and wound in the specified direction.
OH_Drawing_PathAddRoundRect⚠
@brief Adds a new contour to the path, defined by the round rect, and wound in the specified direction.
OH_Drawing_PathArcTo⚠
@brief Draws an arc to a path.
OH_Drawing_PathBuildFromSvgString⚠
@brief Parses the svg path from the string.
OH_Drawing_PathClose⚠
@brief Closes a path. A line segment from the start point to the last point of the path is added.
OH_Drawing_PathConicTo⚠
@brief Draws a conic from the last point of a path to the target point.
OH_Drawing_PathContains⚠
@brief Return the status that point (x, y) is contained by path.
OH_Drawing_PathCopy⚠
@brief Creates an OH_Drawing_Path copy object.
OH_Drawing_PathCreate⚠
@brief Creates an OH_Drawing_Path object.
OH_Drawing_PathCubicTo⚠
@brief Draws a cubic Bezier curve from the last point of a path to the target point.
OH_Drawing_PathDestroy⚠
@brief Destroys an OH_Drawing_Path object and reclaims the memory occupied by the object.
OH_Drawing_PathEffectDestroy⚠
@brief Destroys an OH_Drawing_PathEffect object and reclaims the memory occupied by the object.
OH_Drawing_PathGetBounds⚠
@brief Gets the smallest bounding box that contains the path.
OH_Drawing_PathGetLength⚠
@brief Gets the length of the current path object.
OH_Drawing_PathGetMatrix⚠
@brief Computes the corresponding matrix at the specified distance.
OH_Drawing_PathGetPositionTangent⚠
@brief Gets the position and tangent of the distance from the starting position of the Path.
OH_Drawing_PathIsClosed⚠
@brief Determines whether the path current contour is closed.
OH_Drawing_PathLineTo⚠
@brief Draws a line segment from the last point of a path to the target point.
OH_Drawing_PathMoveTo⚠
@brief Sets the start point of a path.
OH_Drawing_PathOffset⚠
@brief Offset path replaces dst.
OH_Drawing_PathOp⚠
@brief Combines two paths.
OH_Drawing_PathQuadTo⚠
@brief Draws a quadratic Bezier curve from the last point of a path to the target point.
OH_Drawing_PathRConicTo⚠
@brief Draws a conic from the last point of a path to the relative target point.
OH_Drawing_PathRCubicTo⚠
@brief Draws a cubic bezier curve from the last point of a path to the relative target point.
OH_Drawing_PathRLineTo⚠
@brief Draws a line segment from the last point of a path to the relative target point.
OH_Drawing_PathRMoveTo⚠
@brief Sets the relative starting point of a path.
OH_Drawing_PathRQuadTo⚠
@brief Draws a quadratic bezier curve from the last point of a path to the relative target point.
OH_Drawing_PathReset⚠
@brief Resets path data.
OH_Drawing_PathSetFillType⚠
@brief Sets FillType, the rule used to fill path.
OH_Drawing_PathTransform⚠
@brief Transforms verb array, point array, and weight by matrix. transform may change verbs and increase their number. path is replaced by transformed data.
OH_Drawing_PathTransformWithPerspectiveClip⚠
@brief Transforms verb array, point array, and weight by matrix. Transform may change verbs and increase their number.
OH_Drawing_PenCopy⚠
@brief Creates an OH_Drawing_Pen copy object.
OH_Drawing_PenCreate⚠
@brief Creates an OH_Drawing_Pen object.
OH_Drawing_PenDestroy⚠
@brief Destroys an OH_Drawing_Pen object and reclaims the memory occupied by the object.
OH_Drawing_PenGetAlpha⚠
@brief Obtains the alpha of a pen. The alpha is used by the pen to outline a shape.
OH_Drawing_PenGetCap⚠
@brief Obtains the line cap style of a pen.
OH_Drawing_PenGetColor⚠
@brief Obtains the color of a pen. The color is used by the pen to outline a shape.
OH_Drawing_PenGetFillPath⚠
@brief Gets the filled equivalent of the src path.
OH_Drawing_PenGetFilter⚠
@brief Gets the filter from a pen.
OH_Drawing_PenGetJoin⚠
@brief Obtains the line join style of a pen.
OH_Drawing_PenGetMiterLimit⚠
@brief Obtains the stroke miter limit of a polyline drawn by a pen.
OH_Drawing_PenGetWidth⚠
@brief Obtains the thickness of a pen. This thickness determines the width of the outline of a shape.
OH_Drawing_PenIsAntiAlias⚠
@brief Checks whether anti-aliasing is enabled for a pen. If anti-aliasing is enabled, edges will be drawn with partial transparency.
OH_Drawing_PenReset⚠
@brief Resets all pen contents to their initial values.
OH_Drawing_PenSetAlpha⚠
@brief Sets the alpha for a pen. The alpha is used by the pen to outline a shape.
OH_Drawing_PenSetAntiAlias⚠
@brief Enables or disables anti-aliasing for a pen. If anti-aliasing is enabled, edges will be drawn with partial transparency.
OH_Drawing_PenSetBlendMode⚠
@brief Sets a blender that implements the specified blendmode enum for a pen.
OH_Drawing_PenSetCap⚠
@brief Sets the line cap style for a pen.
OH_Drawing_PenSetColor⚠
@brief Sets the color for a pen. The color is used by the pen to outline a shape.
OH_Drawing_PenSetFilter⚠
@brief Sets the filter for a pen.
OH_Drawing_PenSetJoin⚠
@brief Sets the line join style for a pen.
OH_Drawing_PenSetMiterLimit⚠
@brief Sets the stroke miter limit for a polyline drawn by a pen.
OH_Drawing_PenSetPathEffect⚠
@brief Sets the pathEffect for a pen.
OH_Drawing_PenSetShaderEffect⚠
@brief Sets the shaderEffect for a pen.
OH_Drawing_PenSetShadowLayer⚠
@brief Sets the shadowLayer for a pen.
OH_Drawing_PenSetWidth⚠
@brief Sets the thickness for a pen. This thickness determines the width of the outline of a shape.
OH_Drawing_PixelMapDissolve⚠
@brief Dissolves the relationship between OH_Drawing_PixelMap object and NativePixelMap_ or OH_PixelmapNative which is build by ‘GetFrom’ function.
OH_Drawing_PixelMapGetFromNativePixelMap⚠
@brief Gets an OH_Drawing_PixelMap object.
OH_Drawing_PixelMapGetFromOhPixelMapNative⚠
@brief Gets an OH_Drawing_PixelMap object.
OH_Drawing_PointCreate⚠
@brief Creates an OH_Drawing_Point object.
OH_Drawing_PointDestroy⚠
@brief Destroys an OH_Drawing_Point object and reclaims the memory occupied by the object.
OH_Drawing_PointGetX⚠
@brief Gets the x-axis coordinate of the point.
OH_Drawing_PointGetY⚠
@brief Gets the y-axis coordinate of the point.
OH_Drawing_PointSet⚠
@brief Sets the x-axis and y-axis coordinates of the point.
OH_Drawing_RectCopy⚠
@brief Copy the original rectangular object to the destination rectangular object.
OH_Drawing_RectCreate⚠
@brief Creates an OH_Drawing_Rect object.
OH_Drawing_RectDestroy⚠
@brief Destroys an OH_Drawing_Rect object and reclaims the memory occupied by the object.
OH_Drawing_RectGetBottom⚠
@brief Get the bottom position of the rect.
OH_Drawing_RectGetHeight⚠
@brief Get the height position of the rect.
OH_Drawing_RectGetLeft⚠
@brief Get the left position of the rect.
OH_Drawing_RectGetRight⚠
@brief Get the right position of the rect.
OH_Drawing_RectGetTop⚠
@brief Get the top position of the rect.
OH_Drawing_RectGetWidth⚠
@brief Get the width position of the rect.
OH_Drawing_RectIntersect⚠
@brief If rect intersects other, sets rect to intersection.
OH_Drawing_RectJoin⚠
@brief Sets rect to the union of rect and other.
OH_Drawing_RectSetBottom⚠
@brief Set the bottom position of the rect.
OH_Drawing_RectSetLeft⚠
@brief Set the left position of the rect.
OH_Drawing_RectSetRight⚠
@brief Set the right position of the rect.
OH_Drawing_RectSetTop⚠
@brief Set the top position of the rect.
OH_Drawing_RegionContains⚠
@brief Determines whether the region contains the specified coordinates.
OH_Drawing_RegionCreate⚠
@brief Creates an OH_Drawing_Region object.
OH_Drawing_RegionDestroy⚠
@brief Destroys an OH_Drawing_Region object and reclaims the memory occupied by the object.
OH_Drawing_RegionOp⚠
@brief Combines two regions.
OH_Drawing_RegionSetPath⚠
@brief Constructs region that matchs outline of path within clip.
OH_Drawing_RegionSetRect⚠
@brief Sets the region to the specified rect.
OH_Drawing_RegisterFont⚠
@brief Defines an OH_Drawing_RegisterFont, which is used to register a customized font in the FontManager.
OH_Drawing_RegisterFontBuffer⚠
@brief Defines an OH_Drawing_RegisterFontBuffer, which is used to register a customized font in the FontManager.
OH_Drawing_RoundRectCreate⚠
@brief Creates an OH_Drawing_RoundRect object.
OH_Drawing_RoundRectDestroy⚠
@brief Destroys an OH_Drawing_RoundRect object and reclaims the memory occupied by the object.
OH_Drawing_RoundRectGetCorner⚠
@brief Gets an OH_Drawing_Corner_Radii struct, the point is round corner radiusX and radiusY.
OH_Drawing_RoundRectOffset⚠
@brief Translates round rect by (dx, dy).
OH_Drawing_RoundRectSetCorner⚠
@brief Sets the radiusX and radiusY for a specific corner position.
OH_Drawing_SamplingOptionsCreate⚠
@brief Creates an OH_Drawing_SamplingOptions object.
OH_Drawing_SamplingOptionsDestroy⚠
@brief Destroys an OH_Drawing_SamplingOptions object and reclaims the memory occupied by the object.
OH_Drawing_SetTextShadow⚠
@brief Sets the parameter of text-shadow.
OH_Drawing_SetTextStyleBackgroundBrush⚠
@brief Sets the background brush style.
OH_Drawing_SetTextStyleBackgroundPen⚠
@brief Sets the background pen style.
OH_Drawing_SetTextStyleBaseLine⚠
@brief Sets the text baseline.
OH_Drawing_SetTextStyleColor⚠
@brief Sets the text color.
OH_Drawing_SetTextStyleDecoration⚠
@brief Sets the text decoration.
OH_Drawing_SetTextStyleDecorationColor⚠
@brief Sets the color for the text decoration.
OH_Drawing_SetTextStyleDecorationStyle⚠
@brief Sets the decoration style.
OH_Drawing_SetTextStyleDecorationThicknessScale⚠
@brief Sets the decoration thickness scale.
OH_Drawing_SetTextStyleEllipsis⚠
@brief Sets the ellipsis.
OH_Drawing_SetTextStyleEllipsisModal⚠
@brief Sets the ellipsis modal.
OH_Drawing_SetTextStyleFontFamilies⚠
@brief Sets the font families.
OH_Drawing_SetTextStyleFontHeight⚠
@brief Sets the font height.
OH_Drawing_SetTextStyleFontSize⚠
@brief Sets the font size.
OH_Drawing_SetTextStyleFontStyle⚠
@brief Sets the font style.
OH_Drawing_SetTextStyleFontStyleStruct⚠
@brief Sets the text style, including font weight, font width and font slant.
OH_Drawing_SetTextStyleFontWeight⚠
@brief Sets the font weight.
OH_Drawing_SetTextStyleForegroundBrush⚠
@brief Sets the foreground brush style.
OH_Drawing_SetTextStyleForegroundPen⚠
@brief Sets the foreground pen style.
OH_Drawing_SetTextStyleHalfLeading⚠
@brief Sets the half leading.
OH_Drawing_SetTextStyleLetterSpacing⚠
@brief Sets the letter spacing.
OH_Drawing_SetTextStyleLocale⚠
@brief Sets the locale.
OH_Drawing_SetTextStyleWordSpacing⚠
@brief Sets the word spacing.
OH_Drawing_SetTypographyStyleFontStyleStruct⚠
@brief Sets the typography style, including font weight, font width and font slant.
OH_Drawing_SetTypographyStyleTextStrutStyle⚠
@brief Sets the strut style for text typography.
OH_Drawing_SetTypographyTextAlign⚠
@brief Sets the text alignment mode.
OH_Drawing_SetTypographyTextBreakStrategy⚠
@brief Sets the break strategy.
OH_Drawing_SetTypographyTextDirection⚠
@brief Sets the text direction.
OH_Drawing_SetTypographyTextEllipsis⚠
@brief Sets the ellipsis of lines in a text file.
OH_Drawing_SetTypographyTextEllipsisModal⚠
@brief Sets the ellipsis modal.
OH_Drawing_SetTypographyTextFontFamily⚠
@brief Sets the font family of text typography.
OH_Drawing_SetTypographyTextFontHeight⚠
@brief Sets the font height of text typography.
OH_Drawing_SetTypographyTextFontSize⚠
@brief Sets the font size of text typography.
OH_Drawing_SetTypographyTextFontStyle⚠
@brief Sets the font style of text typography.
OH_Drawing_SetTypographyTextFontWeight⚠
@brief Sets the font weight of text typography.
OH_Drawing_SetTypographyTextHalfLeading⚠
@brief Sets the half leading of text typography.
OH_Drawing_SetTypographyTextLineStyleFontFamilies⚠
@brief Sets the font families of line style for text typography.
OH_Drawing_SetTypographyTextLineStyleFontHeight⚠
@brief Sets the font height of line style for text typography.
OH_Drawing_SetTypographyTextLineStyleFontSize⚠
@brief Sets the font size of line style for text typography.
OH_Drawing_SetTypographyTextLineStyleFontStyle⚠
@brief Sets the font style of line style for text typography.
OH_Drawing_SetTypographyTextLineStyleFontWeight⚠
@brief Sets the font weight of line style for text typography.
OH_Drawing_SetTypographyTextLineStyleHalfLeading⚠
@brief Sets the half leading of line style for text typography.
OH_Drawing_SetTypographyTextLineStyleOnly⚠
@brief Sets whether only line style is enabled for text typography.
OH_Drawing_SetTypographyTextLineStyleSpacingScale⚠
@brief Sets the spacing scale of line style for text typography.
OH_Drawing_SetTypographyTextLocale⚠
@brief Sets the locale of lines in a text file.
OH_Drawing_SetTypographyTextMaxLines⚠
@brief Sets the maximum number of lines in a text file.
OH_Drawing_SetTypographyTextSplitRatio⚠
@brief Sets the textSplitRatio of lines in a text file.
OH_Drawing_SetTypographyTextStyle⚠
@brief set line textstyle.
OH_Drawing_SetTypographyTextUseLineStyle⚠
@brief Sets whether to enable line style for text typography.
OH_Drawing_SetTypographyTextWordBreakType⚠
@brief Sets the word break type.
OH_Drawing_ShaderEffectCreateColorShader⚠
@brief Creates an OH_Drawing_ShaderEffect that generates a shader with single color.
OH_Drawing_ShaderEffectCreateImageShader⚠
@brief Creates an OH_Drawing_ShaderEffect that generates a image shader.
OH_Drawing_ShaderEffectCreateLinearGradient⚠
@brief Creates an OH_Drawing_ShaderEffect that generates a linear gradient between the two specified points.
OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix⚠
@brief Creates an OH_Drawing_ShaderEffect that generates a linear gradient between the two specified points.
OH_Drawing_ShaderEffectCreateRadialGradient⚠
@brief Creates an OH_Drawing_ShaderEffect that generates a radial gradient given the center and radius.
OH_Drawing_ShaderEffectCreateRadialGradientWithLocalMatrix⚠
@brief Creates an OH_Drawing_ShaderEffect that generates a radial gradient given the center and radius.
OH_Drawing_ShaderEffectCreateSweepGradient⚠
@brief Creates an OH_Drawing_ShaderEffect that generates a sweep gradient given a center.
OH_Drawing_ShaderEffectCreateTwoPointConicalGradient⚠
@brief Creates an OH_Drawing_ShaderEffect that generates a conical gradient given two circles.
OH_Drawing_ShaderEffectDestroy⚠
@brief Destroys an OH_Drawing_ShaderEffect object and reclaims the memory occupied by the object.
OH_Drawing_ShadowLayerCreate⚠
@brief Creates an OH_Drawing_ShadowLayer object.
OH_Drawing_ShadowLayerDestroy⚠
@brief Destroys an OH_Drawing_ShadowLayer object and reclaims the memory occupied by the object.
OH_Drawing_SurfaceCreateFromGpuContext⚠
@brief Creates an OH_Drawing_Surface object on GPU indicated by context.
OH_Drawing_SurfaceDestroy⚠
@brief Destroys an OH_Drawing_Surface object and reclaims the memory occupied by the object.
OH_Drawing_SurfaceGetCanvas⚠
@brief Gets the canvas that draws into surface.
OH_Drawing_TextBlobBuilderAllocRunPos⚠
@brief Alloc run with storage for glyphs and positions. The returned pointer does not need to be managed by the caller and is forbidden to be used after OH_Drawing_TextBlobBuilderMake is called.
OH_Drawing_TextBlobBuilderCreate⚠
@brief Creates an OH_Drawing_TextBlobBuilder object.
OH_Drawing_TextBlobBuilderDestroy⚠
@brief Destroys an OH_Drawing_TextBlobBuilder object and reclaims the memory occupied by the object.
OH_Drawing_TextBlobBuilderMake⚠
@brief Make an OH_Drawing_TextBlob from OH_Drawing_TextBlobBuilder.
OH_Drawing_TextBlobCreateFromPosText⚠
@brief Creates an OH_Drawing_TextBlob object from pos text.
OH_Drawing_TextBlobCreateFromString⚠
@brief Creates an OH_Drawing_TextBlob object from pos text.
OH_Drawing_TextBlobCreateFromText⚠
@brief Creates an OH_Drawing_TextBlob object from text.
OH_Drawing_TextBlobDestroy⚠
@brief Destroys an OH_Drawing_TextBlob object and reclaims the memory occupied by the object.
OH_Drawing_TextBlobGetBounds⚠
@brief Gets the bounds of textblob, assigned to the pointer to an OH_Drawing_Rect object.
OH_Drawing_TextBlobUniqueID⚠
@brief Gets a non-zero value unique among all OH_Drawing_TextBlob objects.
OH_Drawing_TextStyleAddFontFeature⚠
@brief Add font feature.
OH_Drawing_TextStyleAddFontVariation⚠
@brief Add font variation.
OH_Drawing_TextStyleAddShadow⚠
@brief Adds element in vector of TextShadow in TextStyle.
OH_Drawing_TextStyleClearFontFeature⚠
@brief Clear font features.
OH_Drawing_TextStyleClearShadows⚠
@brief clear elements in vector of TextShadow in TextStyle.
OH_Drawing_TextStyleDestroyFontFamilies⚠
@brief Releases the memory occupied by a list of font families.
OH_Drawing_TextStyleDestroyFontFeatures⚠
@brief Release the memory occupied by array of structures of font features.
OH_Drawing_TextStyleGetBackgroundBrush⚠
@brief Gets the background brush style.
OH_Drawing_TextStyleGetBackgroundPen⚠
@brief Gets the background pen style.
OH_Drawing_TextStyleGetBaseline⚠
@brief Gets the font baseline.
OH_Drawing_TextStyleGetBaselineShift⚠
@brief Get baseline shift of text.
OH_Drawing_TextStyleGetColor⚠
@brief Gets the text color.
OH_Drawing_TextStyleGetDecorationStyle⚠
@brief Gets text decoration style.
OH_Drawing_TextStyleGetFontFamilies⚠
@brief Gets a list of font families.
OH_Drawing_TextStyleGetFontFeatureSize⚠
@brief Get size of font features.
OH_Drawing_TextStyleGetFontFeatures⚠
@brief Get all font features.
OH_Drawing_TextStyleGetFontHeight⚠
@brief Gets font height.
OH_Drawing_TextStyleGetFontMetrics⚠
@brief get line fontmetrics.
OH_Drawing_TextStyleGetFontSize⚠
@brief Gets font size.
OH_Drawing_TextStyleGetFontStyle⚠
@brief Gets font style.
OH_Drawing_TextStyleGetFontStyleStruct⚠
@brief Gets the text style, including font weight, font width and font slant.
OH_Drawing_TextStyleGetFontWeight⚠
@brief Gets font weight.
OH_Drawing_TextStyleGetForegroundBrush⚠
@brief Gets the foreground brush style.
OH_Drawing_TextStyleGetForegroundPen⚠
@brief Gets the foreground pen style.
OH_Drawing_TextStyleGetHalfLeading⚠
@brief Gets whether to set the text to half line spacing.
OH_Drawing_TextStyleGetLetterSpacing⚠
@brief Gets the letter spacing of the text.
OH_Drawing_TextStyleGetLocale⚠
@brief Gets the locale.
OH_Drawing_TextStyleGetShadowCount⚠
@brief Gets the size of vector of TextShadow in TextStyle.
OH_Drawing_TextStyleGetShadowWithIndex⚠
@brief Gets element in vector of TextShadow with index.
OH_Drawing_TextStyleGetShadows⚠
@brief Gets the vector of TextShadow in TextStyle.
OH_Drawing_TextStyleGetWordSpacing⚠
@brief Gets the word spacing of the text.
OH_Drawing_TextStyleIsAttributeMatched⚠
@brief Gets whether two TextStyle objects match attributes
OH_Drawing_TextStyleIsEqual⚠
@brief Gets whether the two TextStyle objects are equal.
OH_Drawing_TextStyleIsEqualByFont⚠
@brief Gets whether the font properties of two TextStyle objects are equal.
OH_Drawing_TextStyleIsPlaceholder⚠
@brief Gets whether placeholder is enable.
OH_Drawing_TextStyleSetBackgroundRect⚠
@brief Set struct of background rect and styleId of text.
OH_Drawing_TextStyleSetBaselineShift⚠
@brief Set baseline shift of text.
OH_Drawing_TextStyleSetPlaceholder⚠
@brief Set placeholder of TextStyle.
OH_Drawing_TypefaceCreateDefault⚠
@brief Creates a default OH_Drawing_Typeface object.
OH_Drawing_TypefaceCreateFromFile⚠
@brief Creates an OH_Drawing_Typeface object by file.
OH_Drawing_TypefaceCreateFromStream⚠
@brief Creates an OH_Drawing_Typeface object by given a stream. If the stream is not a valid font file, returns nullptr. Ownership of the stream is transferred, so the caller must not reference it or free it again.
OH_Drawing_TypefaceDestroy⚠
@brief Destroys an OH_Drawing_Typeface object and reclaims the memory occupied by the object.
OH_Drawing_TypographyDestroyEllipsis⚠
@brief Releases the memory occupied by a list of Ellipsis names.
OH_Drawing_TypographyDestroyLineFontMetrics⚠
@brief Free up all the space taken up by the lineFontMetric.
OH_Drawing_TypographyDestroyTextBox⚠
@brief Releases the memory occupied by text box.
OH_Drawing_TypographyDidExceedMaxLines⚠
@brief Gets the exceed maxLines.
OH_Drawing_TypographyGetAlphabeticBaseline⚠
@brief Gets the alphabetic baseline.
OH_Drawing_TypographyGetEffectiveAlignment⚠
@brief Gets the EffectiveAlign of lines in a text file.
OH_Drawing_TypographyGetGlyphPositionAtCoordinate⚠
@brief Gets the glyphposition at coordinate.
OH_Drawing_TypographyGetGlyphPositionAtCoordinateWithCluster⚠
@brief Gets the glyphposition at coordinate with cluster.
OH_Drawing_TypographyGetHeight⚠
@brief Gets the height.
OH_Drawing_TypographyGetIdeographicBaseline⚠
@brief Gets the ideographic baseline.
OH_Drawing_TypographyGetIndentsWithIndex⚠
@brief Gets element with index in vector of Indents.
OH_Drawing_TypographyGetLineCount⚠
@brief Gets the line count.
OH_Drawing_TypographyGetLineFontMetrics⚠
@brief Getting all font metrics from target row.
OH_Drawing_TypographyGetLineHeight⚠
@brief get line height.
OH_Drawing_TypographyGetLineInfo⚠
@brief Gets the position of the specified line or the first text of the specified line.
OH_Drawing_TypographyGetLineMetrics⚠
@brief Get line metrics information.
OH_Drawing_TypographyGetLineMetricsAt⚠
@brief Gets the specified line by line number.
OH_Drawing_TypographyGetLineTextRange⚠
@brief get line text range.
OH_Drawing_TypographyGetLineWidth⚠
@brief get line width.
OH_Drawing_TypographyGetLongestLine⚠
@brief Obtains the width of the longest line. You are advised to round up the return value in actual use. When the text content is empty, the minimum float value, that is, -340282346638528859811704183484516925440.000000, is returned.
OH_Drawing_TypographyGetMaxIntrinsicWidth⚠
@brief Gets the max intrinsic width.
OH_Drawing_TypographyGetMaxWidth⚠
@brief Gets the max width.
OH_Drawing_TypographyGetMinIntrinsicWidth⚠
@brief Gets the min intrinsic width.
OH_Drawing_TypographyGetRectsForPlaceholders⚠
@brief Gets the rects for placeholders.
OH_Drawing_TypographyGetRectsForRange⚠
@brief Gets the rects for range.
OH_Drawing_TypographyGetTextAlign⚠
@brief Get the text alignment mode.
OH_Drawing_TypographyGetTextDirection⚠
@brief Get the text direction.
OH_Drawing_TypographyGetTextEllipsis⚠
@brief Get the ellipsis of lines in a text.
OH_Drawing_TypographyGetTextMaxLines⚠
@brief Sets the maximum number of lines in a text.
OH_Drawing_TypographyGetTextStyle⚠
@brief Gets the TextStyle of lines in a text file.
OH_Drawing_TypographyGetUnresolvedGlyphsCount⚠
@brief Get the unresolved Glyphs count of lines in a text.
OH_Drawing_TypographyGetWordBoundary⚠
@brief Gets the word boundary.
OH_Drawing_TypographyHandlerAddPlaceholder⚠
@brief Sets the placeholder.
OH_Drawing_TypographyHandlerAddSymbol⚠
@brief Add symbols in creating typography.
OH_Drawing_TypographyHandlerAddText⚠
@brief Sets the text content.
OH_Drawing_TypographyHandlerPopTextStyle⚠
@brief Removes the topmost style in the stack, leaving the remaining styles in effect.
OH_Drawing_TypographyHandlerPushTextStyle⚠
@brief Sets the text style.
OH_Drawing_TypographyIsEllipsized⚠
@brief Gets the IsEllipsized of lines in a text file.
OH_Drawing_TypographyIsLineUnlimited⚠
@brief Gets the UnlimitedLines of lines in a text file.
OH_Drawing_TypographyLayout⚠
@brief Lays out the typography.
OH_Drawing_TypographyMarkDirty⚠
@brief Mark the Typography as dirty, and initially state the Typography.
OH_Drawing_TypographyPaint⚠
@brief Paints text on the canvas.
OH_Drawing_TypographyPaintOnPath⚠
@brief Paints path text on the canvas.
OH_Drawing_TypographySetIndents⚠
@brief Set indents of the typography.
OH_Drawing_TypographyStyleDestroyStrutStyle⚠
@brief Releases the memory occupied by an OH_Drawing_StrutStyle object.
OH_Drawing_TypographyStyleEquals⚠
@brief Overriding the class ParagraphStyle equals operator.
OH_Drawing_TypographyStyleGetEffectiveAlignment⚠
@brief Gets text alignment mode.
OH_Drawing_TypographyStyleGetFontStyleStruct⚠
@brief Gets the typography style, including font weight, font width and font slant.
OH_Drawing_TypographyStyleGetStrutStyle⚠
@brief Gets the strut style for text typography.
OH_Drawing_TypographyStyleIsHintEnabled⚠
@brief Gets whether the hinting is enabled.
OH_Drawing_TypographyStyleSetHintsEnabled⚠
@brief Sets the hinting of text typography.
OH_Drawing_TypographyStyleStrutStyleEquals⚠
@brief Overriding the struct StrutStyle equals operator.
OH_Drawing_TypographyTextGetHeightBehavior⚠
@brief Get mode of applying the leading over and under text.
OH_Drawing_TypographyTextGetLineStyle⚠
@brief Get whether the text layout enables line styles.
OH_Drawing_TypographyTextSetHeightBehavior⚠
@brief Set mode of applying the leading over and under text.
OH_Drawing_TypographyTextlineGetStyleOnly⚠
@brief Get whether only line style is enabled for text typography.
OH_Drawing_TypographyTextlineStyleDestroyFontFamilies⚠
@brief Releases the memory occupied by a list of font families names.
OH_Drawing_TypographyTextlineStyleGetFontFamilies⚠
@brief Get the font families of line style for text typography.
OH_Drawing_TypographyTextlineStyleGetFontSize⚠
@brief Get the font size of font size for text typography.
OH_Drawing_TypographyTextlineStyleGetFontStyle⚠
@brief Get the font style of line style for text typography.
OH_Drawing_TypographyTextlineStyleGetFontWeight⚠
@brief Get the font weight of line style for text typography.
OH_Drawing_TypographyTextlineStyleGetHalfLeading⚠
@brief Get the half leading of line style for text typography.
OH_Drawing_TypographyTextlineStyleGetHeightOnly⚠
@brief Get whether to enable font height for line styles in text layout only.
OH_Drawing_TypographyTextlineStyleGetHeightScale⚠
@brief Get the font height scale in text layout.
OH_Drawing_TypographyTextlineStyleGetSpacingScale⚠
@brief Get the spacing scale of line style for text typography.
OH_Drawing_TypographyUpdateFontSize⚠
@brief Update the font size of lines in a text.

Type Aliases§

OH_Drawing_AlphaFormat
@brief Enumerates alpha formats of bitmap pixels.
OH_Drawing_BlendMode
@brief The blending operation generates a new color for the two colors (source, destination). These operations are the same on the 4 color channels: red, green, blue, alpha. For these, we use alpha channel as an example, rather than naming each channel individually.
OH_Drawing_BlurType
@brief Enumerates blur type.
OH_Drawing_BreakStrategy
@brief Enumerates break strategy.
OH_Drawing_CanvasClipOp
@brief Enumerates clip op.
OH_Drawing_CanvasShadowFlags
@brief Enumerates of shadow flags.
OH_Drawing_ColorFormat
@brief Enumerates storage formats of bitmap pixels.
OH_Drawing_CornerPos
@brief Enumerates of corner radii position.
OH_Drawing_Corner_Radii
@brief Defines a corner radii, which is on x-axis and y-axis.
OH_Drawing_EllipsisModal
@brief Enumerates ellipsis modal.
OH_Drawing_ErrorCode
@brief Enumerates error codes of drawing. @since 12
OH_Drawing_FilterMode
@brief Enumerates storage filter mode.
OH_Drawing_FontConfigInfoErrorCode
@brief Gets system font configuration information list result enum.
OH_Drawing_FontEdging
@brief Enumerates font edging effect.
OH_Drawing_FontHinting
@brief Enumerates font hinting pattern.
OH_Drawing_FontStyle
@brief Enumerates font styles.
OH_Drawing_FontWeight
@brief Enumerates font weights.
OH_Drawing_FontWidth
@brief Enumerates font width.
OH_Drawing_MipmapMode
@brief Enumerates storage formats mipmap mode.
OH_Drawing_PathAddMode
@brief Add mode of path.
OH_Drawing_PathDirection
@brief Direction for adding closed contours.
OH_Drawing_PathFillType
@brief FillType of path.
OH_Drawing_PathMeasureMatrixFlags
@brief Enumerates the matrix information corresponding to the path measurements.
OH_Drawing_PathOpMode
@brief Operations when two paths are combined.
OH_Drawing_PenLineCapStyle
@brief Enumerates line cap styles of a pen. The line cap style defines the style of both ends of a line segment drawn by the pen.
OH_Drawing_PenLineJoinStyle
@brief Enumerates pen line join styles. The line join style defines the shape of the joints of a polyline segment drawn by the pen.
OH_Drawing_PlaceholderVerticalAlignment
@brief Enumerates placeholder vertical alignment.
OH_Drawing_PointMode
@brief Enumerates of scale to fit flags, selects if an array of points are drawn as discrete points, as lines, or as an open polygon.
OH_Drawing_RectHeightStyle
@brief Enumerates rect height style.
OH_Drawing_RectWidthStyle
@brief Enumerates rect Width style.
OH_Drawing_RegionOpMode
@brief Operations when two regions are combined.
OH_Drawing_ScaleToFit
@brief Enumerates of scale to fit flags, how matrix is constructed to map one rect to another.
OH_Drawing_SrcRectConstraint
@brief Enumeration defines the constraint type.
OH_Drawing_TextAlign
@brief Enumerates text alignment modes.
OH_Drawing_TextBaseline
@brief Enumerates text baselines.
OH_Drawing_TextDecoration
@brief Enumerates text decorations.
OH_Drawing_TextDecorationStyle
@brief Enumerates text decoration style.
OH_Drawing_TextDirection
@brief Enumerates text directions.
OH_Drawing_TextEncoding
@brief Enumerates text encoding types. @since 12 @version 1.0
OH_Drawing_TextHeightBehavior
@brief Enumerates of heightmode of text.
OH_Drawing_TextStyleType
@brief Enumerates text style type.
OH_Drawing_TileMode
@brief Enumerates tile mode.
OH_Drawing_VertexMode
@brief Enumerates of vertices flags.
OH_Drawing_WordBreakType
@brief Enumerates word break type.