How to Mask Image with different Shape

Hi all,
In my flex application , i am displaying a image which is in
rectangle shape. but i want to show that image in a rounded
rectangle shape, for that i want to mask the image with rounded
rectangle, .
anyone please tell me how to do this,
i also tried by setting the mask property in the image, but i
am not getting.
please help me.
thanks in advance
regards
avanthika

Hi all
i am trying in this way still i did not get it
i have placed image in a canvas.
<mx:Canvas id="c1" x="10" y="10" width="200"
height="200">
<mx:Image id="img2" source="image1.jpg" />
</mx:Canvas>
to mask the above image , i need shape to mask i have written
following code it is not working
import flash.display.*;
public function init(){
var square:Sprite = new Sprite();
square.graphics.beginFill(0xFF0000);
square.graphics.drawRect(0, 0, 200, 200);
c1.addChild(square);
img2.mask=square;
please help me how to get this,
Actually i don't know how to write code for drawing shapes in
flex.
Thanks in advance
Regards
Avanthika

Similar Messages

  • Masking images with custom shapes?

    I made a custom shape, a rounded square with 2 regular corners, I want to mask an image into that shape. Any ideas how to do this? Or how to add my shape as a shape onto pages?
    Thanks in advance!
    Linda

    Linda.h wrote:
    I made a custom shape, a rounded square with 2 regular corners, I want to mask an image into that shape. Any ideas how to do this?
    Select both the shape and the image:
    +Menu > Format > Mask with selected shape+
    Or how to add my shape as a shape onto pages?
    Can't add it to the shapes menu, just keep it in a template or a 'library' document to cut and paste.
    Peter

  • How to mask photo with any shape except rectangle?

    Can anyone tell me how to quick-mask photos using the button at the bottom of the window, but using a shape other than rectangle?

    The masking IS vector masking, it's just only with rectangles. The masking that Pages and Keynote has is vector masking as well, only those programs have a function to Mask to Shape.
    While iWeb doesn't have this function, if you copy a vector masked object from iWork, it will remain masked in iWeb.

  • How do I batch resize images with different aspect ratios?

    How do I batch resize images with different aspect ratios?

    poa66 wrote:
    Landscape: I want result to be 1960 x 1103 px and 72 ppi whether the original is 300 ppi or 220 ppi and wether it is 2Mb or 10 Mb. Cropped centered top and bottom.
    There will be a set of Landscapes that that have a narrower aspect ratio the 1960:1103 that would also need the top and bottom cropped like all Portraits would could be.  You need to realize that center cropping Landscape image that have aspect ratios near 1960:1103 will usually produce acceptable compositions.  However Cropping wide panoramas and portraits will only produce acceptable landscape  1960:1103 composition occasionally.
    Here you will see what happens when image have aspect ratio the do not fit the desired aspect ratio.  Where Landscape  are forced to portrait and portrait forced to Landscape.  Here are two Collage I populated with a mixture of image  with different  aspect ratios.   One collage has all 3:2 Landscape places and the other 2:3 Portrait places.
    I create a 1 image 1960x1103 collage 72dpi and create those too. Note the landscape boy foot is cropped off 3:2 is narrow compared to 1960:1103

  • How to make mask image with free contour points

    I use CVI and VDM8.6, how can I create a mask image with free contour points like the sample image?
     This example is made with vision assistant,

    Hi,
    If you look at the tutorials in fireworks such as changing images/rolover images you will start to get an understanding.
    Cheers

  • Loading images with different horizontal sizes

    I would like to load images with different horizontal
    resolutions (vertical resolution to be the same) dymanically into
    an empty movie clip. I would like them to load with the right hand
    side of the image lined up with the right hand side of my site. I
    have seen many tutorials about how to accomplish the loading of the
    movies, but I cannot figure out how to make them open with the
    right hand side always lined up on the right.
    To be more specific, let's say I have three images of the
    varying pixel resolutions (1200x600, 800x600, and 400x600 for
    example). I would like the horizontal size to always extend away
    from the right hand side of the site with the right hand edge of
    the images always lined up.
    Is this possible to do by loading them into an empty movie
    clip?
    thanks

    When you load an image file into an empty movieClip, that
    clip takes on the dimensions of the loaded content. The
    registration point for the clip is set to the upper left corner.
    So, once the new image is loaded, just set that clip's .x to the
    stage width - the width of the clip.

  • How to sign in with different apple id

    how to sign in with different apple id?

    I would also caution you to make sure that you understand the implications of signing in with another Apple ID. If you changed your Apple ID, go to Settings>iTunes & App Store>Apple ID. Tap the old ID and sign out, then sign in with the new ID. Read this as well.
    What to do after you change your Apple ID email address or password - Apple Support
    If you want to sign into another Apple ID so that you can download purchased content with that other ID without paying for it, that will lock you out of your own ID for 90 days. Read this for more information.
    Manage your associated devices in iTunes - Apple Support

  • How to Watermark multiple images with different dimensions in Photoshop ?

    Is there any way that I can place a watermark on the right bottom of multiple images, no matter what dimension the images are? I have tried using Photoshop Scripts > image processor, but it works only for images of same dimension. I want to put watermark on multiple images of different dimensions. This is the output i got.
    For the first image the watermark got placed correctly, but for the second image watermark got distracted. As you can clearly see the dimensions are different. Please suggest me some solution.

    Open an image to watermark. We must have this open before we start recording an action or else it will keep opening this image and watermarking it over and over again.
    In Photoshop go to Windows >> Actions
    At the bottom of the Actions Palette you will see a little folder icon, click on it and create a new folder to hold you action in.
    Once you have a folder to hold your action we need to hit the Create New Action button (next to the new folder Icon we just used.)
    Give our new action a name and set a function key (if required.)
    If the record button is not already depressed which it should be by default, hit it now to start recording our action. (located near the folder icon again but this time to the left)
    Now that our action is recording go to File >> Place
    When the dialog box comes up navigate to your previously created watermark file.
    Hit the Place button
    Position the watermark as you would normally have it (default is dead center) and hit enter.
    Go to File >> Save as,navigate to where you want your watermarked images to finish up and hit save. DO NOT CHANGE THE FILE NAME if you do when you play the batch it will name all the files it saves the same over-writing each other.
    Close the image we just watermarked.
    when a save dialog comes up do not save the image.
    On the Actions Palette hit stop recording.
    Our Action is now recorded.
    To process an entire folder of images we go to File >> Automate >> Batch
    Select the folder in which your images are currently
    Select the folder you wish to save the watermarked copies too.
    Hit OK
    Photoshop is now watermarking all the Images in the selected folder for you.

  • Batch processing images with different dimensions

    Hi all!
    I've been trying to do this for a while and I'm stumped, so I'd like to know if it's even possible. I'm trying to fathom out how to create an action which…
    Takes a jpg
    draws a shape
    masks the image
    adds another shape
    So I can batch process a ton of images.
    I managed to do something like what I'm after but the thing I'm having trouble with is that the original images will have different dimensions.
    I have attached (via link) an example image which would be the original (start.jpg), one which would be the desired end result (done.jpg) and the .psd
    IF there needs to be a step in the middle of the action where I need to intervene and resize the flat image slightly to fit the canvas it'll still save a load of time.
    I know that opening and saving will be taken care of using the batch feature and the result only needs to be a jpg.
    Any input will be welcomed!
    Here are the working files - http://mikeebee.com/dl/action-test.zip
    Many thanks

    That's an interesting action, but I thought the expected output was different than what this action produces. First, I didn't think image cropping would have been ok (maybe the OP expects this or is ok with cropping). Secondly, I kept getting caught up in how the right edge was going to actually be skewed (as decreasing in size perspectively off into the distance). This action appears to just visually trick the eye (again which may be what the OP wanted or is ok with). Like I said, just that aspect alone is where I kept getting stuck in how this would be possible without some manual manipulation.
    If you take this image http://www.shan-dysigns.com/userForums/photoshop/stripes.jpg and perform this action, you will see how the right side doesn't actually get skewed (as I thought was part of the visual effect wanted). Still, this action is quite nice.

  • One picture, two images with different exposures

    I have a Rebel T2i EOS 550 camera.
    When I take a picture and plug the memory card into the computer, two images of the picture show up.  It appears they are with different exposures.  
    How do I stop the computer/card/camera from doing this, and only take one image?

    dzocher wrote:
    I have a Rebel T2i EOS 550 camera.
    When I take a picture and plug the memory card into the computer, two images of the picture show up.  It appears they are with different exposures.  
    How do I stop the computer/card/camera from doing this, and only take one image?
    If I had to guess, I'd say you are saving in RAW and jpg. Probably the difference in what you're seeing is that the camera is processing the JPG and the RAW file is just with the basic settings, waiting for further processing in DPP or some other software.
    You can set the camera to save in just RAW or JPG.
    http://trulandphoto.zenfolio.com/
    http://trulandphoto.blogspot.com/

  • Re: One picture, two images with different exposures

    In DPP, RAW and JPEG will both show up. The one that says CR2 at the bottom is RAW.
    Like previously said, check your camera setting.

    dzocher wrote:
    I have a Rebel T2i EOS 550 camera.
    When I take a picture and plug the memory card into the computer, two images of the picture show up.  It appears they are with different exposures.  
    How do I stop the computer/card/camera from doing this, and only take one image?
    If I had to guess, I'd say you are saving in RAW and jpg. Probably the difference in what you're seeing is that the camera is processing the JPG and the RAW file is just with the basic settings, waiting for further processing in DPP or some other software.
    You can set the camera to save in just RAW or JPG.
    http://trulandphoto.zenfolio.com/
    http://trulandphoto.blogspot.com/

  • How to read data with different XML schemas within the single connection?

    I have Oracle 11g database
    I access it through jdbc:oracle:thin, version 11.2.0.3, same as xdb.
    I have several tables, each has one XMLType column, all schema-based.
    There are three different XML schemata registered in the DB
    I may need to read the XML data from several tables.
    If all the XMLTypes have the same XML schema ,there is no problem,
    If the schemata are different, the second read throws BindXMLException.
    If I reset the connection between the reads of the XMLType column with different schemata, it works.
    The question is: how can I configure the driver, or the connection to be able to read the data with different XML schemata without resetting the connection (which is expensive).
    The code to get the XMLType data is textbook implementation:
    1   ResultSet resultSet = statement.executeQuery( sql ) ;
    2   String result = null ;
    3    while(resultSet.next()) {
    4   SQLXML sqlxml = resultSet.getSQLXML(1) ;
    5   result = sqlxml.getString() ;
    6   sqlxml.free();
    7   }
    8   resultSet.close();
    9    return result ;

    It turns out, that I needed to serialize the XML on the server and read it as Blob. Like this:
    1    final Statement statement = connection.createStatement() ;
    2    final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;
    3   ResultSet resultSet = statement.executeQuery( sql ) ;
    4   String result = null ;
    5    while(resultSet.next()) {
    6   Blob blob = resultSet.getBlob( 1 );
    7   InputStream inputStream = blob.getBinaryStream();
    8   result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();
    9   inputStream.close();
    10   blob.free();
    11   }
    12   resultSet.close();
    13   statement.close();
    14
    15   System.out.println( result );
    16    return result ;
    17
    Then it works. Still, can't get it work with XMLType in resultset.On the client unwrapping XML blows up when trying to switch to different XML schema. JDBC/XDB problem?

  • How show ONLY images with problems or needing metadata update, etc?

    In LR3, how do I show JUST the images that are waiting for a metadata update on disk?
    Or, more importantly, how do I show images that have a problem - the little box on the top right of the thumbnail with the exclamation point.
    If I have a dozen images out of 50,000 that have an error with "another process has updated the metadata" I want to see JUST THOSE IMAGES
    so I can fix the problem...
    How do I do this?

    Dave, there are two related issues:
    - LR appears to have a number of problems correctly identifying which images have metadata conflicts between the catalog and the files proper:
    http://feedback.photoshop.com/photoshop_family/topics/lr_3_5rc_reproducible_spurious_metad ata_file_needs_to_be_updated
    - LR has no mechanism that allows you to identify just those images with metadata conflicts:
    http://feedback.photoshop.com/photoshop_family/topics/metadata_collisions_between_catalogu e_and_files
    Please visit these feedback topics and add your vote and opinion.  Adobe pays closer attention to the feedback forum than this one.

  • Hello Experts, i have issue with mime repository image with different languages ?

    Good day !
    I was facing the issue with images : we  are creating the images by using CSS tool  to generate a button. that image type is .png , this images we are importing into webdyunpro component as a mime object.
    These images are binided into button image source property. And i am writing the code for calling this button (this is uniq code for all languages).
    But all langaues are working fine for spanish(ES) langage only it was not displaying the image. it is displyind cross mark.
    Naming standard i ma mainintg for mime object name : Export_ES.png.(spanish).
    Please can any one help me on this .
    Regards,
    Venu

    Hi Kiran,
    Thanks for your Promt reply.
    1. i am creating different images for different languages.
      ex : english : Export_EN.png
             Spanish : Export_ES.png
    Code will be : here i am creating attribute and bing that attribute to button image source.
    me ->get_button_img
        EXPORTING
          im_button_id    = 'Export'
          im_button_value = 'IMG_EXPORT'
          im_type         = '.png'
        CHANGING
          ch_context_ele  = lo_el_images.
    'IMG_EXPORT' : attribute name
    method : get_button_img
       DATA: lv_img_name TYPE string,
            lv_lang     TYPE string.
    *        lv_jpg(4)   TYPE c VALUE '.jpg'.
      lv_lang  =  sy-langu .
      CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT'
        EXPORTING
          input  = lv_lang
        IMPORTING
          output = lv_lang.
      CONCATENATE im_button_id  '_' lv_lang IM_TYPE INTO lv_img_name.
      CALL METHOD CH_CONTEXT_ELE->set_attribute
        EXPORTING
          value = lv_img_name
          name  = im_button_value.
    here lv_img_name : Export_ES.png.
    But its not working.
    thank you

  • How to draw image in different dpi?

    I wonder is there any approach can be used to draw a image in different dpi, such as 144dpi, in a JPanel?
    'cause my image processed from other tools is not good, if I can draw image in a high dpi, then the image will looks much better, though the image becomes smaller.
    Note: no SCALE!

    I have a image which is 152dpi, then, how does the Widows draws this image? It looks much better than scale the 72dpi image to the same size.
    Really puzzled-_-                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for