Moving an image inside a frame

Hi all,
I have an image in place holder.
I want to resize and move the image inside it.
How can I do this with VBScript?
I tried to do this:
set myRect = myPage.Rectangles.Add
myRect.GeometricBounds = Array(17.2,10.8,38.3,40.2)
call myRect.Place("C:\image2.jpg")
call myRect.Fit(idFitOptions.idContentToFrame)
myRect.Resize idCoordinateSpaces.idInnerCoordinates, idAnchorPoint.idCenterAnchor, idResizeMethods.idMultiplyingCurrentDimensionsBy,Array(2, 2)
myRect.RotationAngle = 2
But it resize the frame and not the image...
Thanks
Yael

Double click on the image and you will see the shape that frames it. Click outside the frame and your cursor becomes a hand to drag it around.  Click on the handles of the image and you can resize it.
When in doubt try the usual things.
Peter

Similar Messages

  • Moving of images inside a frame anywhere

    hi
    i have a problem in writing a programm that how can i move pieces of images in panel or frame anywhere (i.e.drag a piece of image and put it near to the another piece of image so that i can join them).

    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    import javax.swing.event.*;
    public class DraggingImages
        public static void main(String[] args)
            Frame f = new Frame();
            f.addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);
            f.add(new ImageMover());
            f.setSize(400,300);
            f.setVisible(true);
    class ImageMover extends Panel
        Image[] images;
        Rectangle[] r;
        Point offsetP;
        int imageIndex = 0;
        boolean dragging = false;
        public ImageMover()
            offsetP = new Point();
            loadImages();
            placeImages();
            Mover mover = new Mover();
            addMouseListener(mover);
            addMouseMotionListener(mover);
        public void paint(Graphics g)
            super.paint(g);
            for(int i = 0; i < images.length; i++)
                int x = r.x;
    int y = r[i].y;
    g.drawImage(images[i], x, y, this);
    private class Mover extends MouseInputAdapter
    public void mousePressed(MouseEvent e)
    Point p = e.getPoint();
    for(int i = 0; i < images.length; i++)
    if(r[i].contains(p))
    offsetP.x = p.x - r[i].x;
    offsetP.y = p.y - r[i].y;
    imageIndex = i;
    dragging = true;
    break;
    public void mouseReleased(MouseEvent e)
    dragging = false;
    public void mouseDragged(MouseEvent e)
    if(dragging)
    Rectangle r1 = r[imageIndex].getBounds();
    Point p = e.getPoint();
    r[imageIndex].x = p.x - offsetP.x;
    r[imageIndex].y = p.y - offsetP.y;
    Rectangle r2 = r[imageIndex].getBounds();
    Rectangle r12 = r2.union(r1);
    repaint(r12.x, r12.y, r12.width, r12.height);
    private void loadImages()
    String[] fileNames = {
    "T3.gif", "T4.gif", "T5.gif"
    images = new Image[fileNames.length];
    for(int i = 0; i < fileNames.length; i++)
    try
    URL url = getClass().getResource("images/" + fileNames[i]);
    images[i] = ImageIO.read(url);
    catch(MalformedURLException mue)
    System.out.println(mue.getMessage());
    catch(IOException ioe)
    System.out.println(ioe.getMessage());
    private void placeImages()
    int[][] coords = {
    {75,90}, {150,200}, {40,30}
    r = new Rectangle[coords.length];
    for(int i = 0; i < coords.length; i++)
    int w = images[i].getWidth(this);
    int h = images[i].getHeight(this);
    r[i] = new Rectangle(coords[i][0], coords[i][1], w, h);

  • Moving an image inside  a shape

    OS X Yosemite, Pages 5.5.1. I am trying to move an image I opened as a filling for a shape. I how can I move the image inside the shape without moving the actual shape?

    Double click on the image and you will see the shape that frames it. Click outside the frame and your cursor becomes a hand to drag it around.  Click on the handles of the image and you can resize it.
    When in doubt try the usual things.
    Peter

  • Looking for that effect that vibrates/shakes your image inside the frame

    Do you know where I can find that? It's a pretty common effect, that basically vibrates the centering of your image, probably inside a matted frame for a very shaky look. An example of what I'm talking about can be seen in Fincher's Fight Club during the Tyler Durden's Close-Up monologue "You're not your ******' khakis".
    I've perused all FCP's visual effects and can't locate anything, but hopefully I'm missing it. Or maybe there's a free plugin that someone knows about. help appreciated.

    You must have not looked too hard; there several 'jiggle' filters available. AmaFX has a 'Jump' and 'Vibrate', Eureka has 'Jiggle', Rainer has 'Wiggle', RiverRock Studios has 'Jitterbug' and there are probably more.
    For a comprehensive list of FCP compatible plugin vendors click here: http://proapptips.com/tips/links.php?category=Plugins
    -DH

  • CS3-style of placing the images inside frames in CS4.

    Hi everyone,
    I'm trying to find a way to have the cs3 - style of placing the images into frames in the new Indy CS4. I mean when I hit cmd+D and draw a frame I don't want any scaling / fitting of the placed image. I know there's no scaling if you drop an image into existing frame but when you draw one on-the-fly it's either the frame that keeps the proportions of the image or when you hold shift the image gets scaled to fit into.
    I'd rather have the old style placing as an option - but didn't find such a switch anywhere in the prefs.
    Thnx.
    R.

    Interesting request. I wouldn't have thought anyone would want the older way of creating images in frames, but I guess there's always someone who wants the old ways.
    I can't find any preference to restore the behavior back to the pre-CS4 way.
    But if you want to work with images the old way, you can. Your commands are just a little different, in a different order. But you may actually save a step.
    Consider:
    b In CS3 you had to do the following:
    1. Drag to create a frame.
    2. Switch to the Direct Selection tool.
    3. If desired, change the position the image inside the frame
    4. If desired, scale the image inside the frame
    5. If desired, use the Fitting commands to fit the image inside the frame.
    b In CS4 you have to do the following:
    1. Drag to create a frame.
    2. Switch to the Direct Selection tool.
    3. Scale the image inside the frame.
    4. Position the image inside the frame.
    However, step 5 is probably eliminated as you already started with the image fitting inside the frame.
    I agree no one likes to need to learn new work habits, but it's not such a big deal.

  • Moving image inside a shape (a bit like a TV)?

    Hey, first time here, so apologies if this has been asked before.
    It's a little tricky to word what I'm looking for, so searches haven't proved very fruitful. Basically, I'm looking to have an image move across a 'screen' like box. The best example I can think of is this:
    http://i.gyazo.com/2f007ca29633a58bdf527c97dcc318e0.gif
    Actually to be honest, that's exactly the effect I'm trying to achieve. Keeping the image inside a particular box, moving across it to give off a panning effect.
    How can I achieve this with After Effects?

    I checked back here knowing I'd find this. Yep, I applied that and it worked perfectly.
    Thank you though.

  • Problems putting Images inside large buttons

    The problem below is using the Fireworks program to create a
    Button with an Image inside.
    Ok I have created a generic button , This button is not a
    fireworks button it was made from scratch, the size is roughly
    90x90 , what I want to do is place and Image inside this button and
    then to be able to move the image into the correct place, If I
    paste the image into the button it simply places the image where it
    wants I cannot move the image , I tried creating a Layer and Frame
    and using the marque tool but it pastes the image top left hand
    corner and the image cannot be moved.
    Where am I going wrong.?.
    SPECCY.

    do this in an image editor. It would be much simpler/easier
    and more
    reliable that using html.
    If you still want to do it in html, put the button image as a
    background.
    > Where am I going wrong.?.

  • Problem with exporting moving still images

    Hello.
    I would like to create a sequence where the movie is made of still images (photos in .PSD format, reminiscent of a old-fashioned Polaroid photos) with added motion.
    Now the problem is that after rendering and exporting (DV format, both interlaced and progressive) these moving-images somehow bounce or leap on the edges, especially inner white edge. It doesn't matter if I turn on or off the "optimize stills" option.
    I attached short sample but it shows what I mean.
    The file is 1MiB, 5sec, progressive, compressed with XviD with constant quantizer=2, resized to 640x480.
    But all above modifications of exported file do not matter what so ever. It's the same with original export.
    What shoud I do to improve fluency and smoothness of the movie?
    I use Premiere Pro 1.5.

    Hi,
    I'm a newbee...brand new at learning premiere pro cs3....so I should not give you advice but others here are very very good at this stuff. I like the effect of your sample video. When I first looked at it I thought only the bottom edge was slightly jittery, but I can now see that the entire image inside the white border does jump...the jittery-ness is the vertical (not horizontal) movement of the image about 1 or 2 pixels up and down as it is interpolated at certain points in time.  The larger the screensize of the image the more noticeable it is.
    I found this help file about keyframes and animation and interpolation...
    Change transition settings
    In the Timeline panel, click a transition to select it.
    In the Effect Controls panel, adjust settings:
    Edge selectors
    Change the orientation or direction of the transition. Click an Edge selector arrow on the transition’s thumbnail. For example, the Barn Doors transition can be oriented vertically or horizontally. A transition doesn’t have Edge selectors if it has one orientation or if orientation isn’t applicable. 
    Start and End sliders
    Set the percentage of the transition that is complete at the start and end of the transition. Hold down the Shift key to move the start and end sliders together. 
    Show Actual Sources
    Displays the starting and ending frames of the clips. 
    Border Width
    Adjusts the width of the optional border on the transition. The default Border is None. Some transitions do not have borders. 
    Border Color
    Specifies the color of the transition’s border. Double‑click the color swatch or use the eyedropper to choose the color. 
    Reverse
    Plays the transition backward. For example, the Clock Wipe transition plays counterclockwise. 
    Anti‑Aliasing Quality
    Adjusts the smoothness of the transition’s edges. 
    Custom
    Changes settings specific to the transition. Most transitions don’t have custom settings.
    Maybe the anti-aliasing quality adjustment will help?
    I put your sample clip into VirtualDub and tried a filter called "Field Bob" (compensates for field jumping in field- split video by applying bob-deinterlacing techniques). In the filter setting I tried "smooth" for both even and odd fields.  It didn't really help.
    Rod

  • Is it possible to place a video inside a frame or behind an object to crop it?

    I'm trying to place a video behind a psd of a TV screen that is a different aspect ratio than the placed video. When I try to place it inside a frame or behind the psd with a clear window, it will not export to interactive pdf as such. It shows the vid full size. Is there any way around this?

    Lauragalora119,
    There's a way around this. But it takes a few steps.
    Place your video as usual.
    Now, create a frame that would be the outside of the TV screen. Now create another curved corner rectangle that would be the screen of the TV. Select them both. I would make these outside the area of the video as you don't want the video to be the in the next step.
    With those two frames selected, choose Objects> Pths> Compound Path Make.
    You now have a hole in the frames.
    Fill with a color or Paper. Optional: Import an image of the woodgrain of a TV set.
    Now, with this compound path selected, choose Buttons and Forms and make this a button that does nothing.
    Now, if you were to export this as a PDF, the video will play "inside" the screen frame but it's really playing behind a button. The button is on top of the video because it was on top of the video in the ID file.
    However, you can't click on the video to play it because it's behind the button. PDFs don't recognize the holes in compound paths.
    SO, back in InDesign, I created a little round button that I would consider the dial to turn on the TV. (I'm old enough to remember televisions that had rounded objects to turn them on and off. You may want a more digital looking object.)
    This button will have an action applied that plays the video.
    TaDa!!! You've done it!
    And your day is not ruined.

  • Drawing moving GIF images?

    Is it possible to draw moving gif images on a simple Frame applet?
    I made an image drawer class for my applet and i can draw simple 2d images.
    Here is the basis of my GameSprite class;
        public byte[] pixels;
        public int width;
        public int height;
        public GameSprite(String imageName, int requestIndex) {
         try {
                    // Removed code, it's zipInputStream, but it can be used just as ./image.jpg etc
         javax.swing.ImageIcon icon = new javax.swing.ImageIcon(fileBytes);
         width = icon.getIconWidth();
                     height = icon.getIconHeight();
                     pixels = fileBytes;
         } catch(Exception e) {
              e.printStackTrace();
        public void drawSprite(int x, int y) {
         try {
              Image image = Toolkit.getDefaultToolkit().createImage(pixels);
                                    //Removed code here
              graphics.drawImage(image, x, y + 7, width, height, observer);
         } catch(Exception e) {
              e.printStackTrace();
        }If i try to draw an animated gif image it dosn't move.
    Thanks for any help.

    In Java you need to override the paint method in AWT and paintComponenet method in SWING to do graphics/animation. If you go to an offscreen rendering, then you can paint to the graphics context of an image you use for a drawImage in your paint/paintComponent...
    If you where overriding a Panel in AWT you would override paint:
    public void paint(Graphics g){
      g.drawImage(im, 0, 0, this);
    }Then where you are maipulating your graphics you would do something like this:
    //code snippet
    Graphics g = im.getGraphics();
    //make what ever changes to im by manipulating the graphics context g
    repaint();

  • How do I create a duplicate image inside the same page? Then how do I change the color of that image

    how do I create a duplicate image inside the same page? Then how do I change the color of that image from black to red?

    Hello there!
    Here is one way to create a duplicate image and colorize it. As you can see below, I have one image right now, that I want to duplicate.
    My layers panel looks like below.
    To duplicate your image, click the downward arrow on the right side of your Layer Panel.
    Select Duplicate Layer. This will duplicate the layer that the image is on.
    Select "OK" to approve the duplication.
    As you can now see in the Layers panel, the image is duplicated. The new layer is now at the top of the Layer panel.
    Now to colorize your image, go to Window > Adjustments.
    The Adjustments panel will now be opened. Select the Hue and Saturation icon as seen circled in red.
    The Hue and Saturation propertied panel will be opened. I selected "Colorize", and adjusted the hue and saturation bar to achieve the level red in my photo.
    As you can see below, the image is now red.
    Now i want to make sure only ONE of my image layers is red. I moved the Hue and Saturation layer to only be on top of the bottom layer. The image on the top layer now will not be affected by the red.
    Select the move tool, so I can now move the image layers so we can see both of them.
    With each image layer selected, you can take the move tool and move the images. I moved mine on top of eachother and you can see my red layer (bottom) and the non red layer (top).
    I hope that helps. i have also included helpful links.
    Please post back with any questions,
    Janelle

  • FCP 10.1.3 multiple graphic images into one frame

    Hi - How do I put multiple graphic images into one frame? - so it kind of looks like a video wall - except these are still images. I can do it manually but it's not precise. Anyone found a way other than this? Thanks.

    Here is my quick and dirty generator called "9 Pictures": https://www.dropbox.com/s/92c536wgesh2yzj/9%20Pictures.zip?dl=0
    To install it, unzip the file and place the folder inside /Users/yourname/Movies/Motion Templates/Generators
    It will look like this in FCP X. You just have to click each drop zone icon in the inspector and then select the desired clip from the browser. Use the Pan and Scale controls in the inspector to select which part of each image you want to use. Note: this was done in the hope that it may be helpful, but it is no more than a quick thing. You can also control-click the generator in the generator browser and choose open in motion (if you have it) to see how it was done and to modify it.

  • JEditorPane extra blank when display "image inside table"

    Hi,
    I try to use the JEditorPane to view the html file. Everythings work fine except
    shows the following
    <table border="1">
    <tr><td><img src="http://somewhere/a.jpg"></td></tr>
    <tr><td><img src="http://somewhere/b.jpg"></td></tr>
    </table>It can shows out the image inside the table cell.
    But there is an "extra blank line" follow the images. This "extra blank line" is inside the table cell.
    It likes following
    [image]
    [image]
    But it supposes to be like this
    [image]
    [image]
    I try some sample code in web. It also shows the same problem. Any one have ideas and solutions?
    Thanks a lot.
    kfchu

    Worked fine for me. Here is my test program:
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    public class EditorPaneLoad extends JFrame
         public EditorPaneLoad()
              throws Exception
              FileReader reader = new FileReader("blank.html");
              JEditorPane editor = new JEditorPane();
              editor.setContentType( "text/html" );
    //          editor.setEditable( false );
              editor.read(reader, null);
              JScrollPane scrollPane = new JScrollPane( editor );
              scrollPane.setPreferredSize( new Dimension(300, 200) );
              getContentPane().add( scrollPane );
         public static void main(String[] args)
              throws Exception
              EditorPaneLoad frame = new EditorPaneLoad();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }

  • I am trying to create a polygon shape and place an image inside of it.

    I am trying to create a polygon shape and place an image inside of it similar to this: http://media-cache-ak0.pinimg.com/originals/1f/47/51/1f4751aeb7c30099e4caf61393990fca.jpg
    How do I go about doing it? Thanks!

    Hi
    You would need to design the image outside of Muse using any image editor like photoshop , where apply polygon frame on top of the image and area outside shape should match the color of the image of page, then insert the image on Muse page, it would be same effect. Currently we cannot create any shape in Muse , but you can try some customization using custom code.
    Thanks,
    Sanjit

  • Accessing all of the individual images inside a database?

    I just checked my Pictures folder and found my iPhoto database, though I can not access the images inside it, when I double-click on the database file it opens iPhoto. Where are all of the individual images inside of my iPhoto database stored?
    Thanks.

    They are stored within the Library Package.
    Since iPhoto 7 (iLife 08) the old iPhoto Library Folder is a Package File. This is simply a folder that looks like a file in the Finder. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    So, accessing the files via the Finder is not supported. iPhoto replaces the Finder for anything you want to do with your images - and I do mean anything. It can all be don with with or via iPhoto. If you use it's the Go-To app for anything to do with you photos.
    For instance: want to edit an image in Photoshop? You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    As to accessing your photos to upload/email/use in another app:
    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.
    Finally: If you want to inspect the Library package:
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Standard Warning: Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things, deleting them or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.

Maybe you are looking for

  • AND/OR + some nulls in filter

    I'm running into another problem with the AND/OR filter. The filter for selecting from object "a" and joining to objects b, c & d is: (b.theid==2 || c.theid==2 || d.theid==3) && active=="Y" The SQL that gets generated is: SELECT <...> FROM b t1, d t3

  • Percentage calculation based on subtotals

    Hi, I am creating a report with few columns and having a subtotal on table by start date. For each start date, I have different events for which I would calculate the percentage based on the subtotal. Attached the report and the column in green is wh

  • I am unable to install the Neo Content after download.

    I am using a Windows 64-Bit computer. I have downloaded the zip file but my computer will not extract the files.

  • Microsoft Word has disappeared from Macbook, I can't open word files

    Microsoft Word has disappeared from my MacBook, I can't open my Word files and need to asap. How do I fix this?

  • Bring pictures to organizer from backup

    My hard drive on my new laptop crashed.  Tech was able to back up my picture files onto an external hard drive, however an important slide show I had made evidently did not make it.  I just tried to carry the album over from my adobe backup to my org