Welcome, Guest. Please login or register.

Author Topic: colour pens question..  (Read 3804 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Minuous

Re: colour pens question..
« Reply #14 from previous page: February 20, 2012, 06:42:27 AM »
Ah, I see now. I'll improve the program so that it uses this method on deep screens. Thanks Itex, Thomas and Piru for your help.
 

Offline Minuous

Re: colour pens question..
« Reply #15 on: February 20, 2012, 07:18:27 AM »
I replaced the call to WritePixelArray8() with SetRGB32() & WritePixel(); this works but is very slow. Presumably doing efficient >8-bit output would require CGX/P96. That's probably not worth it in the case of this particular program.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: colour pens question..
« Reply #16 on: February 20, 2012, 07:23:27 AM »
Quote from: Minuous;681076
I replaced the call to WritePixelArray8() with SetRGB32() & WritePixel(); this works but is very slow.

Yeah, there's a lot of overhead when writing single pixels like this.
Quote
Presumably doing efficient >8-bit output would require CGX/P96.

cybergraphics/WritePixelArray can be used to render truecolor gfx. P96 emulates this API.

Quote
That's probably not worth it in the case of this particular program.

Yeah. If it begins to matter then you should use cgx/WPA.