• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 482
  • Last Modified:

Font setcolor

I have my font unit, it stores each letter in pointer.
For setcolor I tried to go through all pointers, and if encountered current color, change it to new. But it's extremely slow. What should I do ?
0
mitya83
Asked:
mitya83
  • 2
1 Solution
 
jack_p50Commented:
Hey, that's simple! Just add to your putimage routine such thing : when plotting pixel, plot not it's color, but some transtable[it's color], and in transtable you should set on default font color's index needed color. That's all.
0
 
mitya83Author Commented:
Thanks. I like people who answer fast.
0
 
jack_p50Commented:
And I like people who accepts answer fast ;)
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now