| View previous topic :: View next topic |
| Author |
Message |
w_lamoreaux Newbie
Joined: 05 Jul 2006 Posts: 1
|
Posted: Wed Jul 05, 2006 6:30 pm Post subject: Porpotional |
|
|
by default it is set to "Any Dimensions" how can i modify the code to
#1 be Proportional by default
#2 Don't display the radio boxes for this choice
i do not want them to be able to do any (x,y) i wish for it to be proportional to the default H,W that i put in
Thanks
William |
|
| Back to top |
|
 |
amnuts Site Admin

Joined: 01 Sep 2002 Posts: 662 Location: East Sussex, England
|
Posted: Thu Jul 06, 2006 3:36 am Post subject: |
|
|
Hi, and welcome to the board!
You have the latest version of the cropping interface, right? If so, to set the cropping type to be proportional by default you'd use the setCropTypeDefault method. For example:
| Code: | | $ci->setCropTypeDefault(ccRESIZEPROP); |
If you didn't want them to be able to swap between 'any' and 'proportional' you'd turn off that option with the setCropTypeAllowChange method. For example:
| Code: | | $ci->setCropTypeAllowChange(false); |
If you didn't want a drop-down list, simply don't assign any options with the setCropSizeList method. By not using that method it wont have any sizes to list and so wont show the drop-down box.
Andy |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|