Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 473
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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