hi,
I compiled and ran the code in this link:
Free glut, Rastering a .raw file
However, i am not able to modify it to zoom into a x , y coordinates using mouse click.
I used glpixelzoom, but that expands the whole image.
hi,
I compiled and ran the code in this link:
Free glut, Rastering a .raw file
However, i am not able to modify it to zoom into a x , y coordinates using mouse click.
I used glpixelzoom, but that expands the whole image.
1. There are several posts of code, which one did you end up basing your work off.
2. You need to post your actual attempt.
Just saying "I tried x and y didn't happen" isn't helping us to figure out where you went wrong.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
to zoom the whole image i just added glPixelZoom before glDrawPixels. zoom factor got obtained from a mouse callback function. For zoom into a mouse x,y code, got rid of when cleaning. can't provide more for now.
Last edited by cprogg; 07-18-2024 at 10:50 PM.