.DrawVerticalLine()

back to FEHLCD

Description

This function is used to draw a vertical line at a specified x position with specified start and end y positions. The parameters y1 and y2 can be in either order of largest and smallest. The line will be the color set by the most recent use of LCD.SetFontColor().

Syntax

.DrawVerticalLine( int x, int y1, int y2 )

Parameters

x: integer number of pixels in x direction to the vertical line (min 0, max 319)
y1: integer pixel position in y direction for start of line (min 0, max 239)
y2: integer pixel position in y direction for end of line (min 0, max 239)

Returns

None.

Examples

#include <FEHLCD.h>

int main(void)
{
    //Draw a vertical line in the middle of the screen
    LCD.SetFontColor(LIGHTGOLDENRODYELLOW);
    LCD.DrawVerticalLine(160,40,200);
}

Leave a Reply

Your email address will not be published. Required fields are marked *