Results 1 to 2 of 2

Thread: Loading bitmap of format 1 bit per pixel

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2008
    Posts
    3

    Loading bitmap of format 1 bit per pixel

    Hi,

    Is there any method to load a 1 bit per pixel bitmap to texture( using glTexImage2D or using some other functions )?

    I know that, I can load the image after converting it to 8 bit image. But I am looking for some direct method

    Thanks in advance

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2009
    Location
    Poland
    Posts
    111

    Re: Loading bitmap of format 1 bit per pixel

    You can use GL_BITMAP as format parameter to glTexImage, but it's probably deprecated (I don't remember right now).

Similar Threads

  1. stippling masks and the bitmap format
    By applesauce in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-19-2006, 01:41 PM
  2. pixel format
    By crazytrain in forum OpenGL: Windows
    Replies: 2
    Last Post: 01-07-2004, 11:12 AM
  3. Pixel Format vs. Display Format
    By Nakoruru in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 08-16-2002, 05:17 AM
  4. How to convert GL_RGB pixel data format (image) to GL_RGBA format
    By Coloro.cl in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 02-13-2002, 06:01 AM
  5. Pixel Format
    By Rong Yao in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-26-2001, 05:30 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