PDA

View Full Version : To Fit a Picture to a Window



Swift
02-27-2003, 04:01 AM
Hi,

Anyone know how to change the size of the picture, so that it would fit nicely into a Window. Thanks.

From
Swift

nexusone
02-27-2003, 05:01 AM
The easy way would be to load the picture as a texture and put it on a quad.

Then scale the quad to match the window size.



Originally posted by Swift:
Hi,

Anyone know how to change the size of the picture, so that it would fit nicely into a Window. Thanks.

From
Swift

Gavin
02-27-2003, 04:23 PM
As nexus says let opengl do the rescaling

Swift
03-02-2003, 03:57 PM
Thanks for your reply and advice ... http://www.opengl.org/discussion_boards/ubb/smile.gif

Swift
03-02-2003, 07:51 PM
What if I have draw a something shape and would like to fit the drawing nice into a window?

mikael_aronsson
03-02-2003, 11:19 PM
Hi !

Are you talking about a 3D or a 2D shape, 2D is easy, 3D is a little more tricky to fit in the window, but it can be done.

Mikael

Swift
03-04-2003, 04:18 PM
Hi,

I am still dealing with 2D drawing. So anyone know how to Fit a drawing into the centre of window? Thanks.