Jump to content
  • Advertisement
Sign in to follow this  

Scaling a bitmap

This topic is 4442 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

          glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
          glDrawPixels(bitmapInfoHeader.biWidth, bitmapInfoHeader.biHeight, GL_RGB, GL_UNSIGNED_BYTE, bitmapData);

That draws a bitmap, and it works. However, the bitmap shows up too big. So I tried putting in a glScalef() in there, but that had NO effect. I tried changing the raster position so the bitmap seemed farther away. I tried not using glRasterPos() and using glTranslatef() instead. None of those worked. The bitmap just stayed the same size. How do I change the size of this bitmap?

Share this post

Link to post
Share on other sites
Original post by bballmitch
how would I do that?

By using Google, of course:


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!