Results 1 to 20 of 21

Thread: Problems working with 8bpp and 24bpp images

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Re: Problems working with 8bpp and 24bpp images

    You' re right Cesar, the results differ!! I will try some colors and see which one is more aproximated.

  2. #2
    Cesar Guest

    Talking Re: Problems working with 8bpp and 24bpp images

    Go ahead! And please, post the results, 'cos I'm too curious

  3. #3
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Re: Problems working with 8bpp and 24bpp images

    Hi, Cesar I have tested a little both versions. In many colors they give me the same results. But, in other cases, your version give me results that looks similar to the original color. Here are two examples:

    Color to aproximate: r:85, g:0, b:255
    Cesar: r:31, g:82, b:138
    SkripT: r:79, g:110, b:140

    Color to aproximate: r:255, g:85, b:255
    Cesar: r:245, g:207, b:178
    SkripT: r:255, g:255, b:255

    In other cases where they gave me different results, was difficult to say which of one was closer to the original color because is a very subjective fact. Finally I maintain your version because looks more professional calculating the difference with the distance between points

    Cheers.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.