Abstract:In response to the demand for rapid graphics rendering of aerospace display instruments, the existing 2D graphics rendering algorithms are studied. An improved Bresenham line drawing method is proposed, which uses the midpoint of the line segment to speed up the drawing. Two points can be drawn at the same time in one cycle, which saves about 30% of the calculation steps than the original algorithm; a seed filling algorithm based on convex polygons is proposed, which uses convex polygons. A certain single side determines the filling seed, which is recorded as the starting point of filling, and the remaining edges are used as the filling boundary, which is recorded as the filling end point. All starting and ending points are marked to complete the filling, which simplifies the calculation steps and reduces the algorithm complexity by half. Experiments have verified the superiority of the algorithm in terms of execution time when drawing complex instrument images. It is better than traditional algorithms in theory and experiment, and can better meet the needs of aerospace display instruments for acceleration of two-dimensional graphics. It has been successfully applied to In the instrument of the manned aircraft.