Draw the line

Draw the lineExample IntroductionAPI DocumentationExample CodeExample running effect

Example Introduction

In this section, we introduce the draw_line() method for drawing lines

API Documentation

The draw_line function can be used to draw a line on an image.

 

Example Code

We use the Draw_line method to draw a Yahboom logo

 

Example running effect

As you can see, we draw a string "Yahboom" in a straight line in the center of the screen

image-20250401200658337