Adobe Dreamweaver Forums



Last 10 THreads :         Re: CS4 GPU Acceleration and Intel X3100 (Last Post : Paul_B_Brown@adobeforums.com - Replies : 0 - Views : 1 )           »          error 1034 (Last Post : shottogan - Replies : 0 - Views : 1 )           »          Keyboard events don't work in player or projector (Last Post : tunghoy - Replies : 0 - Views : 1 )           »          Help with caption box question (Last Post : NZ-developer - Replies : 1 - Views : 2 )           »          Realistic Cat Hair and... (Last Post : chrisf111 - Replies : 0 - Views : 1 )           »          PLACING NEW LAYER BELOW THE ORIGINAL (Last Post : dave_milbut@adobeforums.com - Replies : 3 - Views : 4 )           »          Re: CS4 bug: brush cursor display is incomplete (Last Post : sam_shand@adobeforums.com - Replies : 0 - Views : 1 )           »          PS CS4 "Save As ..." format choices appear in duplicate (Last Post : dave_milbut@adobeforums.com - Replies : 5 - Views : 6 )           »          CreateODBCDate and cfqueryparam with cf_sql_date (Last Post : Dan Bracuk - Replies : 2 - Views : 3 )           »          Strip EXIF camera data from PSD files? (Last Post : Ho - Replies : 1 - Views : 2 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-03-2008, 04:37 AM
Handycam
 
Posts: n/a
Diggs:
Default Any way to get an image file's height?

I am now trying to dynamically insert a Canvas component with an image
component inside of it. I need to re-used the code for many images.
Apparently it is only working if I give the canvas a width and height, which
needs to be the size of the image file.

How can I do this?



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-2008, 04:37 AM
-Hob
 
Posts: n/a
Diggs:
Default Re: Any way to get an image file's height?

Images are just display objects. You should be able to grab the measuredWidth
and measuredHeight properties off of it to determine how big your canvas needs
to be. If you're dynamically changing the source of your image, watch for the
dataChange event that the image dispatches when its source changes.

Reply With Quote
Reply


Thread Tools
Display Modes

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

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



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 03:06 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk