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 3 of 3

Thread: Copy & Paste Pixels

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2001
    Posts
    13

    Copy & Paste Pixels

    Hi. How do I copy a line of pixels and paste it somewhere else? (eg. from [minX, maxX, Y] to somewhere) please help, thanks.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2000
    Posts
    139

    Re: Copy & Paste Pixels

    What is you are trying to achieve by this?

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2001
    Posts
    13

    Re: Copy & Paste Pixels

    |------------------|
    |******************| <-Copy from here
    | | |
    | | |
    | | |
    | | <--| to this position
    |------------------|

    Assuming that the square box above is my view port and those "*" are a line of pixels. Now I am trying to copy the whole line or maybe half of the line to the bottom of the screen. I am not familiar with glReadPixels, glCopyPixels and glDrawPixels. Please help me how to copy and paste pixels. Thanks.

Posting Permissions

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