Page 1 of 1
ResizeImage() #PB_Image_Proportional
Posted: Thu Mar 05, 2015 10:18 pm
by IdeasVacuum
I think a #PB_Image_Proportional flag would be useful. For Example:
Code: Select all
ResizeImage(#MyImage, 200, #PB_Image_Proportional, #PB_Image_Smooth)
ResizeImage(#MyImage, #PB_Image_Proportional, 100, #PB_Image_Smooth)
Re: ResizeImage() #PB_Image_Proportional
Posted: Fri Mar 06, 2015 10:57 am
by DoubleDutch
+1
Re: ResizeImage() #PB_Image_Proportional
Posted: Fri Mar 06, 2015 11:58 am
by luis
Or 1 division and 1 multiplication ...

Re: ResizeImage() #PB_Image_Proportional
Posted: Fri Mar 06, 2015 12:05 pm
by DoubleDutch
Or pretty just pretty handy.
Re: ResizeImage() #PB_Image_Proportional
Posted: Fri Mar 06, 2015 3:28 pm
by Little John
Such a flag would provide an elegant way of proportional resizing.
+ 1
Re: ResizeImage() #PB_Image_Proportional
Posted: Fri Mar 06, 2015 5:05 pm
by DoubleDutch
Another resize option would be handy - resize the bitmap size WITHOUT actually resizing the image.
Re: ResizeImage() #PB_Image_Proportional
Posted: Sun Mar 08, 2015 5:03 am
by mestnyi
This is good,

but even whether such flags
Code: Select all
#PB_Image_Stretch=1<<0
#PB_Image_Center=1<<1
#PB_Image_Mosaic=1<<2
http://www.purebasic.fr/english/viewtop ... 02#p441988