This is a discussion on "Referencing the original size of a .jpg..." within the Flash & Multimedia Forum section. This forum, and the thread "Referencing the original size of a .jpg... are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Referencing the original size of a .jpg...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Referencing the original size of a .jpg...
Hello all,
I'm using the fileReference class to allow users to load images from their computer into a movie clip. I am also using a custom freeTransform class to allow the user to scale/rotate/move the image/movie clip. The freeTransform class has a sizeRestrict function, which allows you to set xMin, xMax, yMin & yMax values, but this works on a scale of the original image - i.e: xMin:50, xMax:50, yMin:50, yMax:50, restricts the movie clip to 50% of the original jpg size.... What I want to do, is restrict the size of the move clip to specific width & height dimensions - regardless of the jpg's original size... Does anyone know if there is a way of reading the original dimensions of a jpg? If I could reference these values I can do a sum (desied size/actual size x100) to get the right xMin, xMax, yMin & yMax values for each jpg.... Any help would be greatly appreciated... Thanks, DrGonzo. |
|
|
![]() |
| Tags |
| _height, _width, jpg, restrict, scale, sizing, transform |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pulll Down menu referencing a list | rmcellig | Web Page Design | 8 | Feb 23rd, 2008 14:17 |
| referencing createEmptyMovieClip with dynamic names | acidgreen | Flash & Multimedia Forum | 2 | Jun 5th, 2007 15:02 |
| sha1 and the original password | kool77 | PHP Forum | 6 | May 15th, 2007 20:04 |
| Basic Chat, original please. | TheSealPortalTeam | ASP.NET Forum | 2 | May 7th, 2007 02:44 |
| http://www.flowerinstyle.co.uk/original.html | chubbs | Free Web Site Critique | 3 | Dec 6th, 2006 05:30 |