Re: Simple GUI application attempted.

From: Roedy Green (look-on_at_mindprod.com.invalid)
Date: 07/23/04


Date: Fri, 23 Jul 2004 18:11:37 GMT

On 23 Jul 2004 05:13:05 -0700, dragon@netyp.com.au
(flesh_eating_dragon) wrote or quoted :

> digitDisplay.setIndex(1, OFF);
> digitDisplay.setIndex(2, ON);
> digitDisplay.setIndex(3, ON);
> digitDisplay.setIndex(4, ON);
> digitDisplay.setIndex(5, OFF);
> digitDisplay.setIndex(6, ON);
> digitDisplay.setIndex(7, OFF);

Surely you can change the index colour map as a whole? You could then
have premade maps for each of the digits, then blast that map in.
Do you pass just a reference to the map in? Perhaps it is kosher to
change the map on the fly AFTER you have given it to the colour model.

However, under the covers someone is going to have to convert that
indexed map to the actual bit map. It would probably be more
efficient just to have premade images of the digits in full colour.

In practice, you might design or find a font with the LCD digits.

-- 
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming. 
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


Relevant Pages