Menu

#1 direct 24 bit colors

open
None
5
2001-05-05
2000-05-11
Paul Gyugyi
No

Handle 24 bit direct colors (no dither).

Discussion

  • Paul Gyugyi

    Paul Gyugyi - 2001-05-05
    • assigned_to: nobody --> gyug
     
  • Paul Gyugyi

    Paul Gyugyi - 2001-08-19

    Logged In: YES
    user_id=30782

    Lars C. Hassing wrote in http://www.lugnet.com/cad/dev/?
    n=4187
    > (snip)
    > During implementation of Gyugyi's Direct Colors, I
    browsed his LDLite
    code:
    > (snip)
    > and read his doc:
    > (snip)
    > The code and the doc doesn't match!
    > If the code is the "truth", then the hex ranges in the
    last two
    > paragraphs should be swapped:
    > (snip)
    > Please decide which to change, the code or the doc.
    > (FYI MLCad follows the code)

    Well, Paul, have you decided?

    > Also I would like to suggest that 16 is replaced with 17
    (0x11):
    >
    > | zcp->r = 17 * ((c & 0x00000f00) >> 8);
    > | zcp->g = 17 * ((c & 0x000000f0) >> 4);
    > | zcp->b = 17 * ((c & 0x0000000f) >> 0);
    >
    > In this way the max color intensity of 15 (0xF) gets
    mapped to 255 (0xFF)
    > in stead of just 240 (0xF0).

     
  • Don Heyse

    Don Heyse - 2003-09-24

    Logged In: YES
    user_id=24760

    I updated the web page to match the code.

     

Log in to post a comment.