Referencing the original size of a .jpg...

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 15th, 2007, 11:32
New Member
Join Date: Oct 2006
Location: Hemel Hempstead
Age: 25
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

Reply

Tags
_height, _width, jpg, restrict, scale, sizing, transform

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 19:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43