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?

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.

Similar Messages

  • Any way of getting Real Media files to play in Front Row?

    I was just wondering if there is any way to get Real Media files to play in Front Row? I realise this is probably not possible, but I thought I'd ask people who know more about this than me!!
    I do have Real Player installed if that helps......

    Probably not right now. Since Front Row uses iPhoto to play slideshows, the DVD Player to play DVDs, iTunes to play MP3s and the QuickTime Player to play videos, there's no way now to change the default video player application. All of those connections are hard-wired into the software. Apple has not released any kind of SDK (software development kit) for third parties to add on to Front Row, so it would have to be an unauthorized hack to get another video player to run. I might suggest you send Apple some Mac OS X feedback and let them know you'd like to see third party add-ons to Front Row.
    -Doug

  • My ipod decided to delete all of my Apps and I have had to sync them all back and I now have to start all my games from scratch, is there any way of getting the saved files back ?

    Please does anyone know how to get saved files back from deleted applications ?

    Hello Pixiekins,
    Do you have a backup available via iTunes to restore from?  For more information, see this Apple support document.
    http://support.apple.com/kb/ht1414
    B-rock

  • Is there any way to get the files from other computer ?

    Hai all,
    I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
    regards,
    Namanc

    Bro Take it easy.
    Think you need to send a Image file named ("abc.gif")
    now develop a server using ServerSocket and connect it in local IP and any PORT
    For example i think ur server is connected in "localhost" and 9000 port.
    Now make ur server educated using some commands.
    For example:
    FileName: <File Name String>
    [Means new file is sending by connected client]
    FileSize: <File size long or int value>
    [ So that ur server can determind about the total length of sender file]
    DataModeOpen
    [Now your client will send its image data, this command means your client software is sending data]
    fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
    l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
    2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
    DataModeClose
    [Means file sending finished]
    Close
    [Means your client connection is closed]
    Now develop a client supporting this command.
    For example(Server):
    String getFileName=null;
    long getFileSize=0;
    public handleCommand(String getCmd) {
        if(getCmd.startsWith("FileName")) {
                String[] splitData=getCmd.split(":");
                this.getFileName=   splitData[1];
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("FileSize")) {
                String[] splitData=getCmd.split(":");
                this.getFileSize=Long.parseLong(splitData[1]);
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeOpen")) {
               //data mode open so receive data
              receiveData();
              outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeClose")) {
              //close client socket
             getClientSocket.close();
    }For client:
    DataInputStream dataIn=null;
    BufferedOutputStream bout=null;
    public sendFile(bytes[] getBytes) {
            //if ok found then do other or show error message
        if(sendCmd("FileName:"+getFileName)) {
            if(sendCmd("FileSize:"+getFileSize)) {
                if(sendCmd("DataModeOpen")) {
                   bout.write(getBytes);
                } else {
                   showError(3);
            } else {
                   showError(2);
       } else {
            showError(1);
    }i think it will help u

  • Is there any way to get the height/width of an image before importing it in the indesign document.

    Hi All,
    I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
    I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
    I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
    Is there any way to get the height/width of image without importing it in the indesign document.
    Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
    At this point I am clueless where to search next.
    Any help will be appriciated.
    Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
    Thnx,
    D.

    You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
    Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
    For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
    Perhaps Quicktime could provide you with a platform independant solution.

  • I deleted contents from pages school report by accident. is there any way to get it back. I reopened the file and it is blank, I deleted the contents from a school report by accident. is there any way to get it back. I reopened the file and it is blank

    I opened a file to print and by accident highlighted and deleted the content. Then in a panic I closed the file and now when I open it is blank. Is there any way to get it back.  I have looked and can not see anyway. I dont have anything in my backup?

    I'm not sure about older versions, but in Pages 3.x (OS X 10.9.x) select File > Revert To > Browse All Versions.  Hopefully there will be an earlier version that you can "revert to".

  • Is there any way to get the file for your site from Creative Cloud?

    I lost the file for my Muse site and was wondering if there was any way to get the file from the server or from somewhere in Creative Cloud.
    Thanks.

    Are you Mac or Windows?

  • I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again?  I stupidly synced the wrong one.

    I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage when I thought I was syncing correctly I wasn't so I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again? 

    Have you not got a backup of your content on, for example, external drives ? If not then you could have a look to see if any of the utilities mentioned in this old post still exist and work : https://discussions.apple.com/message/11014893?messageID=11014893#11014893

  • I've got a iPod classic 80g I've got loads of pictures on there and I want to get them off. I've tried something where the files I get off come up as thumbnails which I can't open. Is there any way of getting them off and viewing them as a normal photo?

    I've got a iPod classic 80g I've got loads of pictures on there and I want to get them off. I've tried something where the files I get off come up as thumbnails which I can't open. Is there any way of getting them off and viewing them as a normal photo?

    Oh no... NOT THE 99-PAGER!!! Anything but THAT!!!

  • Is there any way to get .wav files to play on iOS devices?

    Is there any way to get .wav files to play on iOS devices? I know some apps can play .wav however I was looking to have safari load a suitable player as needed, but it shows a audio file with a line across it... and does not play the file. Any workaround? Thanks,
    Fabio

    Hi James,
    That is very helpful, thanks. However, that ends up presenting two other problems...
    Initially, the original .wav file has to be downloaded somewhere, how does one download a file from Safari to the phone and then open the file with the app? Is there any way to configure iOS to always use an app for a particular file type? How does iOS handle file types? Do you know why safari does not allow add-ons? Can I configure another app as the 'default' browser?
    Once again, thanks for pointing this out.
    Best wishes

  • I lost my hard drive in my old computer, replaced the computer, merge didn't transfer the I-Tunes files, I have them on my I-pod, any way to get my songs back in my computer w/o deleting and reloading all the CD's?

    I lost my hard drive in my old computer, replaced the computer, merge didn't transfer the I-Tunes files, I have them on my I-pod, any way to get my songs back in my computer w/o deleting and reloading all the CD's?

    What is the make and model of this recorder?  Do you have that information available?
    You can still use iTunes to transfer and manage your recorded audio.
    iPod: Recording voice memos
    B-rock

  • So Wat to do? Is there any way to get out as a single swf file from captivate.

    Dear friends,
    I am beginner in Adobe Captivate. We have a E-learning
    project. We are using Dockers as our LMS. Previously we were using
    Flash for all. Now we are trying Captivate for better and faster
    results. I have few swf files and i inserted al files in Captivate
    and i published. So instead of getting single output, am getting
    all the swfs, skin swf and html file. Html file is accessing all
    swfs and works. But it is not working in Dockers. Single swf will
    only work in Dockers. So Wat to do? Is there any way to get out as
    a single swf file from captivate. please Help mee.
    Thanks
    Flashlover

    If 'Dockers' cannot handle a .zip file as the content and
    instead
    requires a single, uncompressed content file, then it is not
    SCORM-compliant. The SCORM specification requires the LMS to
    handle a
    'pif' file (most common is .zip) which contains the lesson
    and the
    required manifest file. If Dockers doesn't support that then
    you can't
    do SCORM-compliant content.
    Erik
    loverflash wrote:
    > Dear friends,
    >
    > We are using
    > Dockers as our LMS.
    > So instead of getting single output, am
    > getting all the swfs, skin swf and html file. Html file
    is accessing all swfs
    > and works. But it is not working in Dockers. Single swf
    will only work in
    > Dockers.
    >
    > Thanks
    > Flashlover
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • Any simple way to get the trace file

    One user want the trace file i went to bdump dir.
    any way to fine that trace file from there.

    Re: dbms_session and sql_trace
    ALTER SESSION SET TRACEFILE_IDENTIFIER= will help you identify the file name.
    Search is a wonderful help in this forum.

  • Deleted an Effect any way to get it back PSE 7

    help,
    ive deleted the glow effect by accident, thinking it would remove the glow from the image....
    is there any way to get this back?
    thanks in advance

    Hi,
    You need to delete the ThumbDatabase.db3 file placed at C:\ProgramData\Adobe\Photoshop Elements\8.0 in Vista/Win 7 and
    C:\documents and settings\all users\application support\adobe\photoshop elements\8.0 in XP after closing PSE
    Relaunch Editor this will take sometime to launch as it will build the database again. This will bring back the effects deleted accidently from PSE.
    Regards,
    Swarnima

  • Federal court website gives a .pl document which opens as garbage until we manually change it to .pdf, is there any way to get Firefox to do this automatically?

    I am using a Mac. When downloading a document from the federal court website using Firefox, we get a .pl document which opens as garbage (in TextEdit) until we manually change it to .pdf, which causes it to open just fine (in Preview). It used to work fine, giving a .pdf document every time, but apparently upgrades to Firefox have removed this functionality. As far as I can tell my computer, an iMac running Mac system OS X 10.10.1, does not recognize the .pl format. Is there any way to get Firefox to automatically convert a downloaded file from .pl format to .pdf format? My friend tells me that Google Chrome downloads these documents with no problem. I would prefer to stick with Firefox but I might have to change if every downloaded document is in an unreadable format.
    This is a typical example of what I get when I try to open a .pl document (the pdf version is a one page document using plain English):
    =====
    %PDF-1.5
    %‚„œ”
    2 0 obj
    <</Length1 15628/Length 10121/Filter/FlateDecode>>stream
    xúÌ{i`U∂9∑™∫;kWoYÈtuöK“ÑR@“ F!,Å$ñêÑÑd Ç䆆¢≤)
    ¢Ääƒet\FeûN࣌∆y3"ÈÔ‹Í|Ûæ˜˝˙˛LUNü{œ›Œ=€=∑i

    HI jlawrence1,
    Is it possible to associated the pl file mimetype with an application? [[Applications panel - Set how Firefox handles different types of files]]

Maybe you are looking for

  • Help restricting report output

    Hi All, Just a quick caveat before I expose my significant ignorance, I have no SAP training or background. Nearly all of my SAP knowledge has come from Google Unfortunately I've come to an impasse that even Google can't help me with Ive been working

  • Which axis version i'm using?

    in my axis list the verion.wsdl displayed like this. WSDL created by Apache Axis version: 1.2.1 Built on Jun 14, 2005 (09:15:57 EDT) but i have seen on the internet there are two main versions in axis - axis and axis 2. which version does my axis bel

  • Library Copies and Podcast Entries and Files

    I had two iTunes Library directories on separate volumes with identical sets of files. I followed the directions about "Using multiple iTunes libraries" from iTunes help without realizing there is also a Preferences setting for the iTunes Library loc

  • Need response super quick!

    Hi all I am just sending my phone back to UPS to they can send it to a Nokia repair centre, but I have no idea what to put on the front of the envelope, I havent been told what the address it. I live in the surrey area, KT22 and I beleive that they a

  • HT5706 my apple tv light is blinking fast and telling me to hook it up to itunes

    apple tv light is blinking fast and telling me to hook it up to itunes. is there any other way to fix this?