ResizeImage() #PB_Image_Proportional

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

ResizeImage() #PB_Image_Proportional

Post 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)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: ResizeImage() #PB_Image_Proportional

Post by DoubleDutch »

+1
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: ResizeImage() #PB_Image_Proportional

Post by luis »

Or 1 division and 1 multiplication ... :shock:
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: ResizeImage() #PB_Image_Proportional

Post by DoubleDutch »

Or pretty just pretty handy.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Little John
Addict
Addict
Posts: 4779
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: ResizeImage() #PB_Image_Proportional

Post by Little John »

Such a flag would provide an elegant way of proportional resizing.
+ 1
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: ResizeImage() #PB_Image_Proportional

Post by DoubleDutch »

Another resize option would be handy - resize the bitmap size WITHOUT actually resizing the image.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
mestnyi
Addict
Addict
Posts: 1098
Joined: Mon Nov 25, 2013 6:41 am

Re: ResizeImage() #PB_Image_Proportional

Post by mestnyi »

Code: Select all

PB_Image_Proportional
This is good, :) but even whether such flags :D

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
Post Reply