Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Problem in Drawing a 16bits image (black and white)

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2003
    Posts
    6

    Problem in Drawing a 16bits image (black and white)

    Hi,
    can u tell me plz how to draw a 16bits image ( image monochrome(black and white) )
    using "glDrawPixels";Assuming that we have a
    buffer of that image as follow :

    GLshort buffer[256][256];
    what must be each parameter of "glDrawPixesls"
    thanks for help

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2003
    Location
    Virginia
    Posts
    586

    Re: Problem in Drawing a 16bits image (black and white)

    Not positive, but try:
    glDrawPixels(256, 256, GL_LUMINANCE, GL_SHORT, buffer[0]);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •