Associate III
June 20, 2019
Question
How to draw a sine wave in a specific width and height ?
- June 20, 2019
- 4 replies
- 2637 views
Hi, I am trying to draw a sine wave, but just confused that how to specify the width and height, particularly for the setRange() functions, the graphic it draws are not I expected, sometime too small, sometime draw nothing. My Demo Screen is 800 * 480 (PC UI), I want to draw a sine wave graphic that the height is 240 and its width is 800.
The attachment is my source code, thanks!!!