Deteremine the pixel dimension of a string given a font

Hi,
I need to measure some text before I place it down in my scene programmatically. Is there something like a measureString(s:String, f:Font) function? If so, can someone give me some hints of where it is?
Thanks!

Doesn't AS3 also contain functions for drawing shapes and stuff, including text, without the use of things like the TextField. I can see the the textwidth of a TextField will give me the data I need, but I was wondering if there was anything more direct.

Similar Messages

  • How do you find the pixel dimensions of a photo to embed in Illustrator CC?

    We recently upgraded our software from CS3 to CC. I'm having trouble determining the pixel dimensions of the photo I want to embed in Illustrator. In our old work flow, we simply clicked on the object in Illustrator, and then opened a new document in Photoshop, and it would retain the dimensions at our document size in Illustrator. It was then a simple matter to paste the photo into the box, position and crop and save as a PSD file and then place in Illustrator. That does not work any more in Creative Cloud. The object downsizes to 72 DPI while retaining the resolution setting. We need to keep our Illustrator files to the minimum, so embedding larger than needed files is not possible.
    I've researched a bit and I see others with similar problems, but I haven't seen a workaround or a way to determine the pixel size. Document info in Illustrator gives the 72 dpi pixel settings, even though the document is set to reproduce at 200 dpi.
    This is something that used to be so simple I didn't think much of upgrading. Now my workflow is horrendously long. I have to rasterize the entire graphic and then crop what is the inset photo. If there is a simpler way, please tell me. All the literature is backwards, about placing an already sized PS image into Illustrator. I need the other way 'round.
    Thanks in advance for any help.

    I think I have a workaround: Make sure the clipboard settings are on 72 by cutting and pasting a 72 dpi file in PS, as it seems Illustrator images are seen that way, no matter what the output resolution is. Click on Photoshop and start a new document. It will retain the proportions of the Illustrator image in 72 dpi. Then open image size and make sure the resample box is checked. Change the resolution to the desired, in my case 200.. Then place and crop your photo, and save the PSD file. Open Illustrator and place the PSD file. This works for me.

  • How do I change DPI in Photoshop CC without changing the pixel dimension of the file?

    I used to be able to do this in Photoshop CS6 by simply clicking the check boxes in the "image size" dialog box:
    scale styles
    constrain proportions
    resample image
    (all boxes UNCHECKED)
    Then input the dpi (usually converting a 300dpi print file to 72dpi for web). And the pixel dimension will stay the same.
    In CC the only option I see is "scale styles" which does not apply to the pixel dimension of the file.
    Please help. I would hate to have to do this function in CS6 all the time.
    CS6:
    CC:

    Just uncheck the [ ] Resample checkbox, then change your Resolution.
    Change the units from Percent to Pixels if you want to see pixel dimensions.
    Once you've successfully run it through (after OK), note that it will remember your units settings the next time you use it.
    -Noel

  • What are the pixel dimensions of emailed photos from a 4S?

    Don't have a 4S and I'm wondering what the pixel dimensions (e.g. 1280x960) are for the Actual sized photos, Large size, and Medium size when you email a photo.
    Thanks!

    See Optimizing performance in your iBooks Author books
    Density is discussed by Apple in this context as 'dpi'...
    132 - iPad 2
    264 - new iPad
    At the top of this forum there are popular links listed on the right, including image sizing etc. Be sure to study those existing/previous threads on this topic.
    Good luck.
    Ken

  • What are the pixel dimensions for creating an Apple ibook book cover?

    I'm trying to create a book cover for Apple ibooks, what are the pixel dimensions requirements?

    Thanks again.
    Apple seems to have made it more confusing than it should be.
    As an aside, the Apple documentation contradicts itself.
    Cover art (also known as a marketing image or jacket) should be at least 1400 pixels along the smaller axis and must be a JPEG or PNG file in RGB Color mode.
    This clearly says the shorter side must be at least 1400 pixels. The next sentence says this:
    For an average trade paperback, this could be 400 x 1400 minimum size, as the books are generally taller than they are wide.
    That doesn't make sense, seeing that the shorter side is supposed to be at least 1400 pixels, meaning it should say "1400 x 4900" for the same aspect ratio.
    ...I did notice this too.
    So, if as you say, that the Cover Art and Cover image terms are the same and the 2 million limit does not apply, then it is unclear to me why Apple sent this message to me about cover file being rejected
    "Action Required: Your book could not be delivered to the iBookstore.
    The following images are larger than two million pixels and must be resized:
    Full ePub: Cover_xyz.jpg "
    I'll probably need to have the cover file in epub and Cover Image for Asset in iTunes Producer be named differently (but be copies of the same file) so I can understand which one is the "problem" file.
    And finally, why does Apple refer to Cover Art twice here and then end in last sentence with Cover Image if they are the same ( and if they are the same why not state "this cover image").
    "Cover art (also known as a marketing image or jacket) should be at least 1400 pixels along the smaller axis and must be a JPEG or PNG file in RGB Color mode. For an average trade paperback, this could be 400 x 1400 minimum size, as the books are generally taller than they are wide. For best results, deliver the largest pixel dimensions possible. When possible, match cover art to the cover contained in the book file. The 2 million pixel maximum does not apply to the cover image".

  • How to change the pixel dimension height?

    I need to fix the pixel dimension height "768" for tiff images via scripting. Kindly advise me how to change the height for the images.

    i am using vb.net i can't able to fix exact width and heigth for my below code
    appref.Preferences.RulerUnits = Photoshop.PsUnits.psInches
    docref = appref.Open(CheckerPath.Path &  \" & InputFile_From_Illust)
    TiffSv.ImageCompression = Photoshop.PsTiffEncodingType.psTiffLZW
    docref.SaveAs(IllustFolder + "\" + IllustFile.Name, TiffSv)
    docref.ChangeMode(DestinationMode:=Photoshop.PsChangeMode.psConvertToRGB)
    TiffSv.EmbedColorProfile = False
    Dim heg, wid As Double
    heg = 768 / 300
    wid = 576 / 300
    docref.ResizeImage(wid, heg, Resolution:=300)
    But its fixing width as 0.46 and height as 0.613 why its happen i don't.
    please advise me.

  • When I export photos from Aperture, the pixel dimensions are halved thus losing data.  I have set the export preferences to export at original size, to no avail.  This happens even if I just drag to the desktop and then back, or if I export into my iphoto

    When I export photos from Aperture to desktop or iphoto I lose pixels.  The pixel dimensions are halved, despite setting the export preference to export at original size.  Anyone know why or how to correct this?

    Dragging an Image from Aperture exports the Preview.  Preview parameters are set on the Previews tab of Aperture preferences.
    Are you seeing the same results when you export using one of the export commands?
    Is so, confirm that the settings in the selected Image Export Preset ("Aperture➞Presets➞Image Export") truly represent those in the Image Export Preset's name.
    HTH,
    --Kirby.

  • How to find out the Pixel Dimensions and Document Size of placed images?

    Is it possible to find out the placed image details like Pixel Dimensions(Width,Height) Document Size(Width,Height) in illustrator through scripting. Kindly advice me with some examples.

    http://www.adobeforums.com/webx/.3bbaa316.59b84fd8
    I hope the snippet therein will get you started.
    But after all, when you place an image via pi=layer.placedItems.add() it should pop in with its default dimensions, so that you have pi.height and pi.width ready.
    Is this what you are aiming at?

  • Export JPG at 100% is reducing the pixel dimensions ??

    Im using the most up to date Lightroom (5.5) on a Mac running os 10.9.4.
    In the not too distant past (i've only been using Lightroom since April)  I have been able to export my processed images to full sized jpegs.  This refers to the physical dimensions....not the amount of data.
    Now i cannot figure out why, but Lightroom has started to shrink my jpegs. My test image  was 4665x4000 pixels and a month ago Lightroom exported the jpg at exactly those dimensions.  Since then something has changed (probably an update!) and when i now try to export the same image its reducing the output dimensions to 1985x1702 !!
    My export settings are set to jpeg 100% Quality,  resize options are switched off. Limit File size is switched off.
    I have trashed the Lightroom and Photoshop prefs.
    Whats going on??
    I need to export these files at full dimensions but Lightroom seems to be ignoring its own settings!
    help!!
    Adam

    Hi DJ,
    agreed - and thats what used to happen. I think it stopped working that way when i had to reinstall all the adobe apps when CC14 came out.
    The photo is cropped - but that should not matter. The file being saved is still half the size of the cropped image.  And when i did this a month ago, it recreated the exact same dimensions in the jpgs and not just once - every time.  Now i cannot get it to work at all.
    This composite grab shows the export dialogue, you can also see the images correct dimensions in the metadata section, and on the right is the file this dialogue created - less than half the dimensions it should be!
    adam

  • Where is it possible to batch process the size of images?--I am able to change pixel dimensions in image processor but not image size in inches.

    Hi- I need to batch process images for video project.  I am able to change the pixel dimensions in the image processor but don't seem to have the option to change image size in inches.  Please advise!  Thanks

    You don't need inches for video (or screen viewing in general). It all goes by pixel count. Inches is for print, nothing else.
    But to answer the question, you can run actions in the Image Processor, and this is where you set size in inches. Just bring up Image Size, uncheck "resample image", and specify size. You'll notice resolution changes to reflect the fact that the existing image pixels are now redistributed over the new print size.
    But again, screen doesn't care about size or resolution. It only counts pixels.

  • Changing ppi changes pixel dimensions but not document size?

    I have an image that is W=4.375 H=6.124 at 355 ppi the pixel dimensions area under Img > Image Size indicates it is W=1553 px H=2174
    When I change the resolution to 72 px it is only changing the pixel dimensions and not the document size. I'm confuesed.
    1. What is the difference between pixel dimensions and document size?
    2. Is the document the same physical size regardless if I make it 200 ppi, 150 ppi or 72?
    Thanks.

    Let me see if I understand all of this:
    - If I change the resolution the print dimension will stay the same, though what is it actually doing to the image if I increase the resolution, though it still is the same print dimension? I am guessing you can not just add pixels to a given size image and expect it to print better.
    - If I change the dimensions, the resolution will change because there will be either more pixels for a smaller area or fewer pixels for a larger area, depending on how I size it.
    Thanks.

  • How do I change the pixel size of my photos?

    Hello,
    Please give me step by step instructions on how to change the pixel size of my photos from the time I log in.
    Thank you.

    There are basically two ways.
    Image>Image Size... This will adjust the quality of the image, allowing you to adjust the pixel dimensions and keep the full image.
    In the tool bar on left side of screen 5th icon down looks like a sliding picture frame. That is the crop tool, that will adjust the pixel size of a document by removing a portion of the image, allowing you to get rid of portions of the image you do not want.
    There are some other ways to accomplish the above, but these are the basics that everyone needs to know. I recommend playing with these tools on a copy of an image, that way you won't be afraid of destroying an image.

  • Is there any way to batch change resolution, but not pixel dimensions?

    I was changing the resolution of my digital photos from 180 to 300 ppi individually as I edited them, but sometimes I would forget. Since I need the higher resolution for printing, I decided to automate that step by using PSE's "Process Multiple Files" feature. I noted that the Resolution selection was grayed out until I checkmarked "Resize Images." Since I didn't want to change the number of pixels, I left those fields blank.
    When I started the automated processing I noticed it was terribly slow, so I cancelled it and looked at the resulting files. They had more than doubled in file size because PSE was nearly doubling the Pixel Dimensions! I don't want to try a work-around by "resizing" to the current pixel dimensions, because the processing still takes about 45 seconds per file, and if I've cropped the photos, the pixel dimensions vary. Is there an automated way to change only the resolution in PSE . . . quickly?
    Also, I really wanted to double the resolution from 180 ppi to 360 ppi, but PSE limits my choices to either 600 or 300 or less. I've read about Scripts, but I don't think PSE supports them. I have version 6.
    Thanks for some help.

    Thanks for your input, and you may be right, but I'm not sure. I'm still trying to figure this out. I know it's the same photo on my monitor, but I keep reading that print resolution (ppi) is different from pixel resolution (i.e. 2000x3000.) This is my situation-- I'm sending the photos to a publisher for printing in a book. The publisher did not specify a size in inches--in fact I think the photos will be different sizes when printed on the page. They told me to send the photos in at 1600x1200 pixels. I've heard that 300 ppi is the standard resolution for publishing, so to get decent quality printing of my photos I thought I should increase the resolution from 180 to 300. But thinking about the different sizes, it seems that the resolution (ppi) will change depending on the size the photo is actually printed. At 300 ppi, a 1600x1200 photo will be printed at size 5.333" X 4". If a photo is printed full bleed on the cover of the book that is 8" x 10.667", then it will be 150 ppi. So, I guess you are right that I don't need to worry about the ppi resolution for the book photos.
    Now, let me figure about what I need to print my own 4x6 photos. My digital camera was set to 16x9 jpg, so my workflow is to make PNG copies to work with and after editing, save them in the 16x9 format before cropping at 1600x1200 pixels, then sharpening before doing Save As jpg in Book folder. I was thinking I needed to change the resolution to 300 ppi when saving in the 16x9 format so if I want to later make 4x6 prints, I'll have good quality prints. But you have made me think a little harder--what I do is choose the 4x6 crop tool which takes care of whatever ppi resolution is needed for that size print. Oh good, you have saved me extra work. Thanks!
    (BTW, I choose the 16x9 format because I was planning to use the photos in a widescreen slideshow, but my husband wanted something he could hold in his hand--hence, the book . . . and a lot of cropping!)

  • Is it possible to resize a photo in iPhoto--controlling the maximum dimensions and the dpi?

    is it possible to resize a photo in iPhoto--controlling the maximum dimensions and the dpi?

    The dpi depends on the print size you'll be making. This explains it in detail:  The Myth of DPI.
    A 300 dpi image for a 4x6 print will have fewer pixels in it than a 300 dpi image for an 8. 10 print. 
    You can set the pixel dimension of a photo by exporting it via the File ➙ Export ➙ File Export menu option and use the Custom size setting.  However, you should crop the photo to the size ratio you want before exporting, i.e 4 x 6, 5 x 7, etc.  Then set the maximum pixel size you want for the image:
    OT

  • Image files with large pixel dimensions display out of focus in a Bridge viewer?

    I Create image files with pixel dimensions 2048x1365. When I display these files from Bridge on my Mac, either by pressing the space bar or in a slideshow, the images are out of focus. If I left click or click/hold and move the images slightly on screen they display in sharp focus. Unfortunately, although landscape-orientation images display correctly with no change in position or size, portrait-orientation files are enlarged and display with top and bottom off the screen. The pixel dimensions of my monitor are 2450x1600 so, yes, if portrait images are displayed at 100% they should display off screen, but this does not excuse the out of focus display of landscape files on this large screen. Nor does this explain why the portrait files are out of focus when they fit on screen. When the same files open in a Camera Raw window they are in focus. When they open in Photoshop at 100% the files are in focus.

    Hi, Clay. Photoshop.com has its own forum, so you might want to post this there:
    http://forums.adobe.com/community/photoshopdotcom

Maybe you are looking for

  • Sent Mail STILL not showing anything in the attachments column

    I was hoping this would be fixed with the 10.7.1 update but it hasn't happened. All I can see is the paper clip icon at the top of the column, but NO indication of any attachments alongside individual messages. So how am I supposed to know that my at

  • HP w2338h Showing black border with HDMI

    I switched to using HDMI and now my monitor has about an inch black border around the screen. I can not figure out how to get it to display fully on the screen. I went into the menu settings on the monitor and 'image control' is greyed out, not avail

  • Isight pic has blue bands - iChat problem?

    Hi ~ I recently set up a new external isight with my G4 desktop and 17" studio display. I have not yet tried to video conference; thus far I've only checked out the camera to be sure it works. I have no trouble getting an image within iChat 3.1.5, bu

  • Error in segement

    Hi,          I have one query regarding Cashjournal segment i am selecting splitting tab and i have entered more than two line items with different cost centers it is working but when i am trying to view document as a general ledger view every sgemen

  • Disable HTTP TRACE causes error 413 instead of 501

    Hello, I�ve tried to disable the HTTP TRACE Method for a Webserver 6.0 SP5 Instance as described in the according SUN Solve document: obj.conf: <Object name="default"> <Client method="TRACE"> AuthTrans fn="set-variable" remove-headers="transfer-encod