Results 1 to 2 of 2

Thread: Colors?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    14

    Colors?

    When I write a program that displays a picture.. (BMP), some of the colors are not like they were when I made the picture.

    Red is displayed as blue, and cyan as yellow etc.

    Why is this so? And what can I do about it?
    /Hamcha

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Colors?

    Hi !

    You have swapped the red green and blue components, RGB/BGR.

    Mikael

Similar Threads

  1. Replies: 3
    Last Post: 06-19-2016, 08:11 AM
  2. Replies: 2
    Last Post: 06-15-2015, 03:26 AM
  3. Colors
    By roadkillguy in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 06-26-2011, 09:07 AM
  4. 32 bit colors with ATI
    By Thomas Krog in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 08-15-2003, 11:12 AM
  5. Colors
    By FoxDie in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-23-2001, 09:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean