A Fast Drawing Method of Arbitrary Arc
An arbitrary angle and arc technology, applied in the field of graphic display, can solve the problems of wasting logic resources and long time, and achieve the effects of enhancing real-time performance, strong practicability, and reducing the use of logic resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] The ideal figure to be drawn in this embodiment is θ s ≤θ e , the arc does not pass through the x positive semi-axis.
[0058] figure 1 It is a schematic diagram of interval division of a planar rectangular coordinate system. The x-axis and y-axis of the planar rectangular coordinate system are respectively parallel to the pixel rows and pixel columns of the display, and the screen is symmetrically divided into 8 intervals. Cut a section of the circle where the arc is located, one of its sides is parallel to the pixel row / pixel column of the display Arc, using symmetry to obtain the corresponding pixel coordinates of the remaining 7 intervals.
[0059] figure 2 for θ s ≤θ e The schematic diagram of the arc to determine whether the pixel is within the drawing range. If it is within the drawing range, draw it, otherwise discard it:
[0060]
[0061] In the formula, en indicates whether to draw the pixel, 1 indicates to draw, 0 indicates not to draw; c indicate...
Embodiment 2
[0072] The ideal figure to be drawn in this embodiment is θ s > θ e , then the arc passes through the x positive semi-axis.
[0073] Figure 5 for θ s > θ e The schematic diagram of the arc to determine whether the pixel is within the drawing range. If it is within the drawing range, draw it, otherwise discard it:
[0074]
[0075] In the formula, en indicates whether to draw the pixel, 1 indicates to draw, 0 indicates not to draw; c indicates the interval where the pixel to be judged is currently located, then 1≤c≤8; en' indicates in the start interval a and the end interval b Need to further judge whether to draw. Whether the pixel point in the starting interval a is within the arc drawing range is judged as follows:
[0076]
[0077] Whether the pixel point in the end interval b is within the arc drawing range is judged as follows:
[0078]
[0079] Suppose the θ to be plotted s > θ e arc like Figure 6 As shown, the radius of the arc r is 120 pixels, and...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


