PDA

View Full Version : Draw lines and write small text in VGA mode ?



MC-Bernd
10-09-2006, 04:45 PM
Hello,
I'm looking for simple routines to draw lines like: Line(x1,y1,x2,y2) or LineTo(x,y) and write Text at a (x/y)· or (row/col) position like: Locate(x,y) and Text(string) or TextAt(x,y,string)· together in VGA mode.

Thanks for help

e-mail: Bernd888@gmx.net (mailto:Bernd888@gmx.net)

Bernd

El Paisa
10-09-2006, 08:12 PM
I went to this before.

The graphics_demo program gives you enough info to do that.

You have to disect the program to get what you want.

El Paisa
10-09-2006, 08:14 PM
Oops.

This comments intended for the TV mode.

A good place to start.

MacGeek117
10-10-2006, 09:53 AM
This is a template I've designed that answers your second question.
RoboGeek

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"

Adam Savage, Mythbusters
www.parallax.com (http://www.parallax.com/)
www.goldmine-elec.com (http://www.goldmine-elec.com)
www.expresspcb.com (http://www.expresspcb.com)
www.startrek.com (http://www.startrek.com)

El Paisa
10-12-2006, 10:17 AM
This is one of the programs that do not specify which mode runs.
In my case (VGA basic 640x480) it give me an error "Over Range"

If you look at the program VGA_Hires_Text.spin it gives you a choice of 3 resolutions (1084x768, 800x600, 640x480).
I think this should be the norm.