Hardware text clipping?

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
BoB-O
LCD?
Posts: 6
Joined: Mon Feb 09, 2004 12:43 am

Hardware text clipping?

Post by BoB-O »

Hello,

I'm trying to write a little windowing system for my GLK24064-25. I've gone through a lot of hoops to do line clipping in software, but it appears I'm sunk for text clipping. Is there any way I can get the screen to clip the text as it draws it?

Thanks,
BoB
Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

I'm not sure what you mean by "clip"
Henry J.
President
Matrix Orbital
Mat-Moo
LCD Guru
Posts: 502
Joined: Wed Jan 16, 2002 4:00 pm
Contact:

Post by Mat-Moo »

E.G If you ask for text to be draw at -10,10 (10 pixels to the left of the screen actual start) will it clip the text? Same on the otherside I guess, does it wrap around or cut it off?
## # Mat # ##
LCDC - Drive it to the edge baby!
http://www.lcdc.cc
Matthew@DPS.uk.com
DPS Ltd. (Not MO!)
BoB-O
LCD?
Posts: 6
Joined: Mon Feb 09, 2004 12:43 am

Post by BoB-O »

Henry wrote:I'm not sure what you mean by "clip"
Say I want to have text across the middle of the screen (horizontally) with a filled circle on top of it. I'd just draw the text, then draw the circle. Now, suppose I want to change the text without redrawing the circle. I could approximate it by drawing the first part of the text on one side and the end of the text on the other. This, however, would not be fully accurate as the letters which intersect the circle would not be present. Clipping would allow me to draw the whole string and have the hardware not draw in the region where the circle is.

Clear as mud?

Thanks,
BoB
Miles
Matrix Orbital
Matrix Orbital
Posts: 1105
Joined: Mon Mar 04, 2002 4:00 pm

Post by Miles »

Will the character string be constantly changing??
Miles Y.
Head of Technical Support
Product Manager
Matrix Orbital
BoB-O
LCD?
Posts: 6
Joined: Mon Feb 09, 2004 12:43 am

Post by BoB-O »

Miles wrote:Will the character string be constantly changing??
I can think of applications where this will be the case. Like I said, I'm developing a windowing library for a consumer electronics project, so the applications are limitless. :wink:

BoB
Post Reply