[gameprogrammer] Re: Image sizing with constrain
- From: "Ludovic Famechon" <ludovic.famechon@xxxxxxxxxxx>
- To: <gameprogrammer@xxxxxxxxxxxxx>
- Date: Wed, 28 Jul 2004 12:07:54 +0200
Hi,
If 70 is in pixel, the formula is
nombre of pixel to reduce to the y of the image =
size_y * nb_pixel_reduced_of_x / size_x
in your example = 300 * 70 / 400 = 52
I hope it's what you want...
----- Message d'origine -----
De : "Orel Beckford" <force_ogb@xxxxxxxxx>
À : <gameprogrammer@xxxxxxxxxxxxx>
Envoyé : mercredi 28 juillet 2004 11:52
Objet : [gameprogrammer] Image sizing with constrain
> Hi
>
> I have'nt posted to this list for months, still
> reading you mails :-)
>
> I having a problem trying to resize an image with
> constrain. for example if I have an image which was
> 400 x 300 and I wanted to reduce the x of the image by
> 70, I need to calculate what the reduction of y
> should be, to keep the image looking like the the
> original but smaller, if I was to reduce the y by 70
> also the image looks a bit stretched, does anyone have
> the formular to work out how much to reduce the y by.
>
> Rgds
> Force
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
>
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] Image sizing with constrain
- From: Orel Beckford
Other related posts:
- » [gameprogrammer] Image sizing with constrain
- » [gameprogrammer] Re: Image sizing with constrain
- » [gameprogrammer] Re: Image sizing with constrain
- » [gameprogrammer] Re: Image sizing with constrain
- » [gameprogrammer] Re: Image sizing with constrain
- [gameprogrammer] Image sizing with constrain
- From: Orel Beckford