Introduction to ArkGraphics 2D

ArkGraphics 2D provides APIs for drawing and displaying graphics. With this set of APIs, you'll find your application development easier and more efficient.

Available Capabilities

Use Scenarios

  • Image effect processing: You can use the effectKit module to process image effects based on UI effect requirements.

  • Setting color spaces: You can use image files and set color space information based on design requirements to draw and display images with a wide color space effect.

  • Frame rate customization: You can customize the frame rate for drawing based on different content and requirements. For example, you can set different frame rates for different gaming scenarios and screens to smoothen user experience and balance power consumption.

  • Self-drawing scenario: You can use Drawing and other modules to draw and display custom components (except the ArkUI components) or custom UI effects based on different UI effects and scenario requirements.

Features

  • Multiple frame rates in the same window: Different frame rates can be customized for different content in the same window, such as animations or self-drawing UIs. Different content runs independently.

  • Dynamic frame rate configuration: A third-party framework can dynamically request the frame rate for drawing based on UI scenarios, such as gaming and videos.

  • Recording playback: Recording commands can be cached and drawing commands can be played back to improve UI drawing efficiency.

  • Multiple rendering backends: A set of code can be used for multiple rendering backends. This reduces multi-device adaptation costs and meets differentiated application requirements.