Can you crop an image in Flex?

Hi.  I am writing a small Air application in Flex where a bunch of images will be imported at a resolution of 120x80 pixels.  To use them in the application, I need them to be square at 80x80 pixels.  Right now they are squished because I am forcing the 120x80 image to fit into and 80x80 container.  To make it look more professional, I need to crop the images to 80x80 pixels.  Is there a way to do this in Flex, and if so, how?  Thanks.

Once the images are cropped to 80x80 pixels, the images will be manipulated by rotating and moving them.  Because of this, I thought that cropping them would be a better alternative to masking(I don't know if masking also masks mouse-overs and things like that, which is why I thought about cropping)
So if anyone knows how to crop an image in Flex, I would love to hear it.  Or if you know of any good resources or tutorials for it, could you point them out.  Thanks.

Similar Messages

  • Can't crop an image in CC2014

    Hi  I can't crop and image in photoshop. I keep getting the message "Cannot complete your request because of a program error".
    I tried resizing the canvas and received the same error.
    I uninstalled (removing preferences and reinstalled the photoshop app but still get the same error.
    I am in windows 7 Service pack 1. 
    Thanks in advance  for any good ideas on resolving this problem.
    Rose

    Sounds frustrating. Have you tried chatting with Adobe tech support? They're in India, but very smart and very polite. It may take awhile (like an hour), but they've been able to solve every issue I've had so far ...
    http://helpx.adobe.com/contact.html?step=PHSP
    Fill out the details until you see the "Contact Us" link, which leads you to the CHAT link. Be patient, and they will certainly tell you how to solve the problem.
    Good luck.

  • Can I crop the image in the canvas

    Can I crop the image from the canvas area so I could make several windows to add some video clips or do I have to just reduce the size of the image and make the composite of the videos. i want to make vertical, rectangle and square composite of several video clips.

    The Time Remap (simulating the corresponding function in FCP) can do basically 2 things:
    a. apply keyframing to the speed of the clip: you can start a clip with speed = 0% (like a freeze frame) and gradually speed up the clip to its end at 100% (standard speed); or viceversa; or start at 100%, slow down to 0% in the middle and back up to 100% at the end. You can apply just any speed variation by keyframing the Speed control.
    b. force the clip to play a frame in a time different than in the original clip; for example you want to have some action originally at time 2secs in sync with a drum roll occurring at frame 2,5secs: just keyframe that action frame at 2,5secs. Then the video clip before 2secs will slow down to meet the drum roll at 2,5secs and then speedup to go back in sync at the end of the clip.
    A few notes:
    - only video is affected, not audio (different from FCE Speed command)
    - the clip length does not change
    - to see the result in the canvas always render: what you see in the viewer is not the final result.
    - instructions on its use are in the download page - if they are not clear let me know.
    As a suggestion you can read Ken Stone's Time Remap up to Time Remap in timeline excluded. It describes this function as implemented in FCP4, but its principles (and some details) are the same as in my filter.
    Let me know...
    Piero

  • How can you upload an image to MYSQL using php?

    Ok this is a joint thread with one of my other ones because no one else  was posting on it, so I did not get what I needed, so, How can you  upload an image to mysql so when some one logs on to my site, they see  or can upload there own avatar, now there are loads of problems with  this, 1) many people don't know how, 2) It's not every day you try to  encode a image into mysql, 3) Letting people upload images into mysql  can cause traffic problem with people trying to log in. So that's it.

    Uploading images into MySQL is a bad idea, for more reasons than you mention. You should store the images in a directory on the server instead. But if you want to learn the hard way, here is the method:
    The mysql data type must be blob.
    The form enctype must be multipart, like this: enctype="multipart/form-data"
    The form input field myst be type file, like this: <input type="file" name="upload"/>
    Here is example code that prepares the variable $photodata to be inserted into the database.
      $uploadfile = $_FILES['upload']['tmp_name'];
      $photoname = $_FILES['upload']['name'];
      $uploadtype = $_FILES['upload']['type'];
      if ($uploadfile != "") {
    $tempfile = fopen($uploadfile, 'rb');
    $filesize=filesize($uploadfile);
    $width=getimagesize($uploadfile);
    $widthx=$width[0];
    $heightx=$width[1];
    if (($widthx > 102) or (heightx > 135)){
    $image_too_big = " but the image size was too large and was not submitted.";
    } else {
    $photodata = fread($tempfile, filesize($uploadfile));
    $photodata = addslashes($photodata);

  • How can you add an image in Mail without being an attachment?

    How can you add an image in Mail without being an attachment?
    In otherwords I'd like to put my logo in the email not as an attachment but as an image.
    Is there a simpel solution to this problem?

    PBN1 wrote:
    How can you add an image in Mail without being an attachment?
    You don't.
    It's not possible. The e-mail protocol is designed for text; anything else has to go as an attachment.
    Different mail clients (such as Mail.app, the mail client bundled with Mac OS X) may have different ways of handling such attachments, but they are still attachments. Each mail client has its own rules and methods, so one may display a picture as if it were in the body of the message, but another client may do something completely different.
    A way of faking it is to format your message in HTML (which is a kind of text). The image is hosted on a remote server, not added to the message; instead, you include a link to it in the body of the message, as you would when building a web page. (This is also what the two tips helpfully provided by X423424X do, except that the link to the image is added in the signature, rather than the body of the message.) What exactly happens to it is, again, at the discretion of the mail client. In my case, for instance, displaying images in HTML messages is turned off, and will stay resolutely off.

  • Can you add an image as a spacer in SpryMenuBars?

    SpryMenuBarVertical.css - version 0.6 - Spry Pre-Release 1.6.1
    Version CS5 DW – Windows XP 32bit system
    Can you insert an image as a spacer in the Spry Menu Bar widget?
    Page link: http://test.thunderscientific.com/NewMenuTest-Vertical.html
    I need to insert an image between menu items; About Thunder and Product Information that matches the height and width of a new menu item with no link to anything.
    I’ve tried the image as a background image and it just shows up as the image for all menu items and that’s not what I want.
    Would I put the code in the HTML or in the CSS?  I’ve tried both to no avail.
    I also tried to add a new CSS rule and that didn’t work ether.
    Is what I’m asking even a possibility?
    Thanks,
    Thunder Bolt 
    Menu

    I just wanted to say thank you to "vw2ureg" for answering my post, and very quickly I might add.
    This worked perfectly, the only thing I had to change was, the background from a color to an image, and the height to 15 pixels and it worked great!
    Thanks very much…
    ul.MenuBarVertical a.spacer {
    background-image:url(../images/image.gif);
                    cursor: default !important;
                    height: 15px;

  • Can you create an image field in the form so a respondent can upload a photo to it?

    Can you create an image field in the form so a respondent can upload a photo to it?

    Use the File Attachment field to allow respondents to include a photo with their submission.
    Regards,
    Brian

  • Can you crop a picture vertical in imovie11

    Can you crop a picture vertical in imovie 11 

    Hi Matt
    Can this be simulated by use of Pic side by side Pic function and adding one side at a time and a Black photo ?
    First one side
    Export out as QT
    Import this and into a new projec
    add other side (black photo)
    Me just speculating
    • Just tested - Side by Side is 50% - Can this be altered to 33 to 67% ? - Else it will black out with no mid section ?
    May be it can be done by creative use of Pic in Pic (8 small black photos acting as frames - 4 per side) ?
    Yes this can be done and No of black photos in relation to amount of widt of the pillar-frames e.g. 4 per side (25%) and there will be many doings of Export/Import.
    Yours Bengt W

  • Why can you flip an image in Photoshop, but not Cmera RAW, or can you?  (CS5)

    Why can you flip an image in Photoshop, but not Cmera RAW, or can you?  (CS5)

    Doesn't look like you can. I'm just a user, so I don't know why. It can be done in Lightroom if that's any consolation.

  • Can you add an image to an External Style Sheet?

    Can you add an image to an External Style Sheet?  If so how?
    I have not been able to find examples of this?
             Help
                        Obvious Newbie

    To populate all pages in a site with a common banner image or menu, read DW help about Templates, Library Items or Server-Side-Includes.
    As Nadia said, you can style a #header division with CSS to use a background image.
    EXAMPLE here:
    http://alt-web.com/DEMOS/Liquid-header.shtml
    CSS code:
    #header {
         padding:0 10px 0 10px;
         line-height:0;
         color:white;
         font-weight:bold;
         background: #000000 url(../Images/Alt-Web-lensflair.jpg) no-repeat top left;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    HTML Validator - http://validator.w3.org
    CSS Validator - http://jigsaw.w3.org/css-validator/
    Tutorials  - http://w3schools.com/

  • Can you 'link' an image state icon, across a folio.....?

    Here's a thought for you all.....Can you 'link' an image state icon, across a folio.....
    for example a "blinking" 'tap me' 2 state icon, that if you alter, it alters across the whole folio via links??
    Object styles?

    For each icon that you want to use in your email signature:
    locate icon on internet webpage - right-click on the icon and select 'Save Image as'. Save the icon to your computer in a suitable file.
    Then in Thunderbird
    insert > Image
    choose file - locate the saved icon on your computer
    click on Link tab and enter the www etc webpage link info
    click on OK to insert image with link.
    Codewise, where you have the actual icon you would need something stating where the icon is located:
    eg
    <a href="https://www.facebook.com/pages/Ubiquia/146019678805381" target="_blank">
    path to image saved on computer included in within <> </a>

  • Can you create an image map hotspot for an external URL in Dreamweaver CS6?

    Can you create an image map hotspot for an external URL in Dreamweaver CS6?

    Duplicate post: http://forums.adobe.com/thread/1338701?tstart=0

  • Can you save an image in a video as a photo

    Can you save an image in a video as a photo

    I can using the iMovie app on my Mac. I assume you can do the same using the iMovie app on the iPad, but I don't have the iMovie app on my iPad. There may be another app that will work.
     Cheers, Tom

  • Can you crop an Facebook picture from the iPad?

    Can you crop an Facebook picture from the iPad?

    Yes you can crop pictures that are in the albums. I use the app PhotoForge2 It will let you do other editing things too. I creates a new doc so the original is undisturbed. I'm sure other apps will do similar things.

  • Can you replace existing images in Captivate 7 the way you can when using InDesign?

    Can you replace existing images in Captivate 7 the way you can when using InDesign? I need to replace some images but wondering if I'll need to reformat, resize, rename for the Advanced Action, etc.

    The work flow is a bit more complicated than in InDesign (keeps only a link to the image as you know in the frame). I understand the problem with the advanced/shared action references. This is my work flow, maybe someone else has an easier, shorter one:
    Right-click on the image and use 'Find in Library' or use CTRL-ALT-F if it works on your keyboard (doesn't on my AZERTY one)
    In the Library use the right-click menu to open the Properties or double-click the name of the image
    In that dialog box, choose 'Import' and choose your new image; for some reason you cannot choose from the Library however, which I find really sad because I'm used to import all assets to the Library.
    Drawback: if the new image has not the same width/height ratio, it will adapt to the original size of the image, you can use Edit image to repair. You'll keep the name of the image, you don't have to change advanced/shared actions.

Maybe you are looking for

  • Lack of space - How to transfer music to external drive ?

    Hi, I just purchased an external drive so I could free some space on my PC. could someone tell me step by step how to transfer my music in iTunes to my new external drive and still be able to play all my songs by opening itunes. the external drive wi

  • I preordered an album a while ago that came out in October...?

    but I didn't want to download it untill now. I don't have the original email notifying me about it and it just says purchased on both my iphone and PC. what can I do now?

  • Oracle BI Publisher ERROR when trying to load XML Data

    Hi all, I use Oracle BI publisher to make layout for reports.When i try to insert xml data in word, error comes as: Microsoft Visual Basic Run time Error '459' Object or class does not support the set of events. can anybody guide me what modification

  • Unable to deploy EJB application

    Hi iam getting the following exception while deploying an EJB application in WebLogic 8.1 Exception:weblogic.management.ApplicationException: prepare failed for Addition Module: Addition Error: Exception preparing module: EJBModule(Addition,status=NE

  • How to confirure readtimeout/socket timeout value in OSB server.

    How can we handle sockettimeout excpetion/readtimeout excpetion in OSB,on server side any configuration paramere available for the same? Thanks, Anitha