Missing zoom function - Zoom image to fit window size?

Hi
Can anyone tell me if it's possible to zoom the image so it fits the current document window size? (Not Fit-To-Screen, as this will change the doc window size)
Thanks
Steve

I don't think there is a button per se for this like there is for Fit to Screen, but can use any of the numerous zoom functions to make the document fit inside the document window.

Similar Messages

  • Preview doesn't display images to fit window

    I'm running OSX 10.6.8 on a 27" iMac, and when I enlarge the Preview window to fit the screen (by dragging the corner), the images don't enlarge. They seem to be stuck at about 1920 pixels wide (at a guess) instead of 2560 wide. I can zoom in, but I want the images to exactly fit the window. Preferences > Scale large images to fit window doesn't work, neither does View > Zoom to fit (which is grayed).
    Any suggestions as to how I make images fit the window?

    Hi, Guy Burns,
    What is the resolution of the images you try to enlarge?
    My guess:
    If the resolution of your images is lower then 2560 wide (your screen resolution), the window will open with the exact size and resolution of the picture (for instance 1920 wide). i.e. One pixel on your screen equals one pixel of your picture.You can indeed enlarge the window and zoom in, but then you are enlarging pixels, the image will get less sharp.
    The "Scale large images to fit window" function, is meant for "large images" as the name implies, so images with a larger resolution then your screen resolution. With this function, you can reduce the size of images that would otherwise not fit entirely on your screen, to the necessary size to view the whole picture as big as possible. So this function does not work if the "scale" is 100% or more.
    In slideshow mode however, there's a function to automatically adapt the size of smaller images to "full screen", and also "quicklook" (spacebar) supports full screen mode.

  • Screen Position & Scaling to Fit Window Size

    Hi there!
    I was hoping someone might be able to help me or point me in
    the direction of help! I'm not sure if I'm asking a really stupid
    question! I'm also not sure of what I'm asking for is called so
    I've looked at existing examples on the web to illustrate my
    questions.
    I've come across this website (
    http://www.toshiba-emi.co.jp/hikki/index_f.htm)
    which features a swf which is displayed at 100% width and height,
    and with no scaling.
    Firstly, I was wondering how the background photo can be
    rescaled depending on the window size, even with the noscale param?
    Secondly, I'd like to know how the 'Last Update' box always
    aligns to the bottom left and the title box always aligns to the
    top left. Another website (
    http://www.square-enix.co.jp/kingdom2fm/)
    shows similar with elements snapping to the extremities of the
    screen while the main content stays centred.
    Thanks for taking the time to read this. I'd really
    appreciate any help you can give me!
    Andy

    bmihura wrote:
    I'm studying for the CLD and I notice that one of the requirements is this:
    Develop block diagrams to fit a screen resolution of 1024 x 768.
    When I create a new VI, its resolution is slightly too big: 1110 x 768.
    When I create a subVI via the menu item Edit >> Create SubVI, it is way too small: 800 x 543.
    For both methods of creating new VIs, I would like to specify both the screen position and window size. But if that is not possible in LabVIEW, I'd like a quick way to make this happen. I see some property nodes for VIs where I could write a subVI that could do this for the front panel, but that is awkward. And it does not apply to block diagrams.
    Is there a clever way to do these things?
    It doesn't mean the default size of the window. It means once your code is complete, your block diagram should be small enough that you can see all your code when its on a monitor of that resolution. Before you test, set your computer monitor resolution to 1024x768. Write your code. If all the code on your block diagram can be seen without scrolling, you will be fine. They won't measure this explicitly. They are basically just saying "you shouldn't have a huge block diagram."
    CLA, LabVIEW Versions 2010-2013

  • Safari option to resize image to fit window?

    This item has come up here before, but seems to always fizzle out. Did anyone ever find a plugin for Safari that would resize images so that they fit in the browser window?
    The problem is when you try to view pictures that are larger than the screen size, I would like to be able to have my Safari browser automatically resize them to fit the screen. MS Internet Explorer has this feature and I have gotten used to it!
    Randy.

    Geert01 wrote:
    I want to achieve this: Table whith background image but cannot get it to work in an Apex page with HTML region.
    Adding the following code to the html region:
    <table class="tableWithBackground" width="300px" height="200px" border="1">
        <tr>
            <td>
                <img class="tableBackground" src="#APP_IMAGES#Demo.jpg">
                Hello
            </td>
            <td>
                World
            </td>
        </tr>
        <tr>
            <td>How are<br><br><br><br><br>you?</td>
            <td>I am fine</td>
        </tr>
    </td>
    Results in a page with a table but without borders (at his stage I have not yet uploaded the Demo.jpg). After uploading the Demo.jpg results in a table with the entire image placed in het first cell. After placing the class code in the CSS inline property I expected to see the result as is shown in the Table whith background image  demo. For some reason this does not work (the image is no longer visible).
    Can anybody tell me how to achieve my goal?
    This is a workaround. What's your real goal? Why do you want to do this?
    What browser(s)/version(s) are you using? All current browser versions have support for CSS3 background sizing which is the proper way to do this.

  • Automatically zoom and crop an image to fit in a square

    I've got an mx:Image which is loading an image from the web.  I don't know how big the image will be in advance.  I'd like the loaded image to fit within the mx:Image's square frame by zooming and cropping off the sides or top/bottom as needed.  In other words, if the image frame is 64x64 and the loaded image is 70x64, it will be centered and lose a few pixels on the right and left sides.  Is it possible to do automatically?  I've played with maintainAspectRatio and scaleContent but I haven't been able to get what I want.

    In an ideal world we would use a high resolution version with a 100% width set for every device (and screen size). Because of bandwidth reasons, the page should load only a version of the image intended for a specific width range.
    Sometime in the future we will (probably) be able to use this:
    <picture width="500" height="500">
       <source media="(min-width: 45em)" src="large.jpg">
       <source media="(min-width: 18em)" src="med.jpg">
       <source src="small.jpg">
       <img src="small.jpg" alt="">
       <p>Accessible text</p>
    </picture>
    However, this will not yet work. Therefore, ideally, a polyfill picturefill method that works quite well can alternatively be used:
    https://github.com/scottjehl/picturefill
    Solution:
    Call the picturefill.js (see above url for more information and sample code)
    body:
    <span data-picture data-alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
            <span data-src="small.jpg"></span>
            <span data-src="medium.jpg"     data-media="(min-width: 400px)"></span>
            <span data-src="large.jpg"      data-media="(min-width: 800px)"></span>
            <span data-src="extralarge.jpg" data-media="(min-width: 1000px)"></span>
            <!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
            <noscript>
                <img src="external/imgs/small.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
            </noscript>
        </span>
    This works in all browsers and devices. On a mobile platform only the lower resolution image will be loaded up.

  • Zoom function not working correctly in the playback options window.

    When selecting the start and stop timepoints for creating a text file in signal express I can't zoom in on selected areas. When I use the zoom function the trace just dissapears. 
    Could anyone help me with this?
    Cheers.

    Is this a LabVIEW or a signal express question?
    (You post in the LabVIEW forum but only mention signal express. There is a dedicated signalexpress forum. If this is a LabVIEW question, please explain in more detail.)
    LabVIEW Champion . Do more with less code and in less time .

  • Fit the image to window width, window height and  the window size

    hi all
    here we wrote the code for "fit the image to window width, window height and the window size". we are facing some problems in it. and all these operations have to perform even after zooming operations are done.if the below code doesnt satisfy kindly provide appropriate code .
    thanks .
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.io.File;
    import javax.swing.filechooser.FileFilter;
    import java.awt.geom.*;
    public class DP extends JFrame implements ActionListener,
                                               MouseListener,
                                               MouseMotionListener {
        private final int PEN_OP = 1;
        private final int CLEAR_OP = 2;
        private int radius;
        private int radius1;
        private int mousex = 0;
        private int mousey = 0;
        private int prevx = 0;
        private int prevy = 0;
        private boolean initialFreeHand = true;
        private boolean initialLine = true;
        private boolean initialEraser = true;
        private int Orx = 0;
        private int Ory = 0;
        private int OrWidth = 0;
        private int OrHeight = 0;
        private int drawX = 0;
        private int drawY = 0;
        private int polyX = 0;
        private int polyY = 0;
        private int eraserLength = 5;
        private int udefRedValue = 255;
        private int udefGreenValue = 255;
        private int udefBlueValue = 255;
        private int opStatus = PEN_OP;
        private int colorStatus = 1;
        private double zoomPercentage=10;
        private Color mainColor = new Color(0, 0, 0);
        private Color xorColor = new Color(255, 255, 255);
        private Color userDefinedColor =
            new Color(udefRedValue, udefGreenValue,udefBlueValue);
        private JButton openButton = new JButton("open");
        private JButton closeButton = new JButton("close");
         private JButton zoominButton = new JButton("ZoomIn");
         private JButton zoomoutButton = new JButton("ZoomOut");
         private JButton zoomto100Button = new JButton("ZoomTo100");
         private JButton fwwButton = new JButton("Fit window width");
         private JButton fwhButton = new JButton("Fit window height");
         private JButton fwButton = new JButton("Fit the window");
        private JButton clearButton = new JButton("Clear");
        private JTextField colorStatusBar = new JTextField(20);
        private JTextField opStatusBar = new JTextField(20);
        private JTextField mouseStatusBar = new JTextField(10);
        private JPanel controlPanel = new JPanel(new GridLayout(18, 1, 0, 0));
        JToolBar jToolbar = new JToolBar();
        private Container container;
        private JScrollBar horizantalSlide=new JScrollBar();
        public BufferedImage image;
        BufferedImage bgImage;
    //    public ImageIcon icon=null;
        JFileChooser fileChooser;
        DrawPanel drawPanel = new DrawPanel(bgImage,zoomPercentage);
        public DP() {
            super("WhiteBoard");
            fileChooser = new JFileChooser(".");
            container = getContentPane();
            container.setBackground(Color.white);
            container.setLayout(new BorderLayout());
            container.add(jToolbar,BorderLayout.NORTH);
            container.add(horizantalSlide);
            jToolbar.add(openButton);
            jToolbar.add(closeButton);
              jToolbar.add(zoominButton);
              jToolbar.add(zoomoutButton);
              jToolbar.add(zoomto100Button);
              jToolbar.add(fwwButton);
              jToolbar.add(fwhButton);
              jToolbar.add(fwButton);
            jToolbar.add(clearButton);
            colorStatusBar.setEditable(false);
            opStatusBar.setEditable(false);
            mouseStatusBar.setEditable(false);
            controlPanel.setBackground(Color.white);
            drawPanel.setBackground(Color.white);
            container.add(controlPanel, "West");
            container.add(drawPanel, "Center");
            openButton.addActionListener(this);
            closeButton.addActionListener(this);
              zoominButton.addActionListener(this);
              zoomoutButton.addActionListener(this);
              zoomto100Button.addActionListener(this);
              fwwButton.addActionListener(this);
              fwhButton.addActionListener(this);
              fwButton.addActionListener(this);
            clearButton.addActionListener(this);
            drawPanel.addMouseMotionListener(this);
            drawPanel.addMouseListener(this);
            addMouseListener(this);
            addMouseMotionListener(this);
            opStatusBar.setText("FreeHand");
            colorStatusBar.setText("Black");
        public void actionPerformed(ActionEvent e) {
            if(e.getActionCommand().equals("open"))
                showDialog();
            if(e.getActionCommand().equals("close"))
                closeDialog();
              if(e.getActionCommand().equals("ZoomIn"))
                   drawPanel.zoom(1);
              if(e.getActionCommand().equals("ZoomOut"))
                   drawPanel.zoom(-1);
              if(e.getActionCommand().equals("ZoomTo100"))
                   drawPanel.zoom(+10);
              if(e.getActionCommand().equals("Fit window width"))
                   drawPanel.fitwindowwidth();
              if(e.getActionCommand().equals("Fit window height"))
                   drawPanel.fitwindowheight();
              if(e.getActionCommand().equals("Fit the window"))
                   drawPanel.fitthewindow();
            if (e.getActionCommand() == "Clear")
                opStatus = CLEAR_OP;
            switch (opStatus) {
                case CLEAR_OP:
                    clearPanel();
        private void showDialog() {
            if(fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
                File file = fileChooser.getSelectedFile();
                try {
                    bgImage = ImageIO.read(file);
                } catch(IOException e) {
                    System.out.println("IO error: " + e.getMessage());
                clearPanel();
        private void closeDialog() {
            drawPanel.setVisible(false);
            drawPanel.repaint();
        public void clearPanel() {
            opStatusBar.setText("Clear");
            Graphics g = image.getGraphics();
            g.setColor(drawPanel.getBackground());
            g.fillRect(0, 0, drawPanel.getBounds().width, drawPanel.getBounds().height);
            if(bgImage != null)
                g.drawImage(bgImage, 0, 0, this);
            g.dispose();
            drawPanel.repaint();
        public boolean mouseHasMoved(MouseEvent e) {
            return (mousex != e.getX() || mousey != e.getY());
        public void setActualBoundry() {
            if (mousex < Orx || mousey < Ory) {
                if (mousex < Orx) {
                    OrWidth = Orx - mousex;
                    drawX = Orx - OrWidth;
                } else {
                    drawX = Orx;
                    OrWidth = mousex - Orx;
                if (mousey < Ory) {
                    OrHeight = Ory - mousey;
                    drawY = Ory - OrHeight;
                } else {
                    drawY = Ory;
                    OrHeight = mousey - Ory;
            } else {
                drawX = Orx;
                drawY = Ory;
                OrWidth = mousex - Orx;
                OrHeight = mousey - Ory;
        public void setGraphicalDefaults(MouseEvent e) {
            mousex = e.getX();
            mousey = e.getY();
            prevx = e.getX();
            prevy = e.getY();
            Orx = e.getX();
            Ory = e.getY();
            drawX = e.getX();
            drawY = e.getY();
            OrWidth = 0;
            OrHeight = 0;
        public void mouseDragged(MouseEvent e) {
            updateMouseCoordinates(e);
            switch (opStatus) {}
        public void mouseReleased(MouseEvent e) {
            updateMouseCoordinates(e);
            switch (opStatus) {}
        public void mouseEntered(MouseEvent e) {
            updateMouseCoordinates(e);
        public void updateMouseCoordinates(MouseEvent e) {
            String xCoor = "";
            String yCoor = "";
            if (e.getX() < 0)
                xCoor = "0";
            else {
                xCoor = String.valueOf(e.getX());
            if (e.getY() < 0)
                xCoor = "0";
            else {
                yCoor = String.valueOf(e.getY());
            mouseStatusBar.setText("x:" + xCoor + " y:" + yCoor);
        public void mouseClicked(MouseEvent e) { updateMouseCoordinates(e); }
        public void mouseExited(MouseEvent e) { updateMouseCoordinates(e); }
        public void mouseMoved(MouseEvent e) { updateMouseCoordinates(e); }
        public void mousePressed(MouseEvent e) { updateMouseCoordinates(e); }
        public static void main(String[] args) {
            DP wb = new DP();
            wb.setDefaultCloseOperation(EXIT_ON_CLOSE);
            wb.setSize(1024,740);
            wb.setVisible(true);
        private class DrawPanel extends JPanel {
            private double m_zoom = 1.0;
            private double m_zoomPercentage;
            private BufferedImage m_image;
            double theta = 0;
            double thetaInc = Math.PI/2;
            public DrawPanel(BufferedImage imageb,double zoomPercentage) {
                m_image = imageb;
                m_zoomPercentage = zoomPercentage / 100;
            protected void paintComponent(Graphics g) {
                Graphics2D g2d=(Graphics2D)g;
                if(image == null)
                    initImage();
                g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                                     RenderingHints.VALUE_INTERPOLATION_BICUBIC);
                double x = (1.0 - m_zoom)*getWidth()/2.0;
                double y = (1.0 - m_zoom)*getHeight()/2.0;
                AffineTransform at = AffineTransform.getTranslateInstance(x, y);
                at.rotate(theta,m_zoom*getWidth()/2,m_zoom*getHeight()/2);
                at.scale(m_zoom, m_zoom);
                g2d.drawRenderedImage(image, at);
      public void zoom(int inc) {
            m_zoom += inc * m_zoomPercentage;
            repaint();
              public void fitwindowwidth()
                int w1=drawPanel.getWidth();
                int h1=drawPanel.getHeight();
                BufferedImage image2=image.getScaledInstance(w1,h1,Image.SCALE_DEFAULT);
                drawPanel.setPreferredSize(new java.awt.Dimension(100,image2.getImage().getHeight(null)));
               drawPanel.repaint();
              public void fitwindowheight()
           BufferedImage image2=image.getScaledInstance(500,680,1); 
           drawPanel.setImage(iicon);
           drawPanel.setPreferredSize(new java.awt.Dimension(100,image2.getImage().getHeight(null)));
           drawPanel.repaint();
              public void fitthewindow()
           BufferedImage image2=image.getScaledInstance(1000,680,1);
           drawPanel.setPreferredSize(new java.awt.Dimension(100,image2.getImage().getHeight(null)));
           drawPanel.repaint();
            private void initImage() {
                int w = getWidth();
                int h = getHeight();
                image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
                Graphics2D g2 = image.createGraphics();
                g2.setPaint(getBackground());
                g2.fillRect(0,0,w,h);
                g2.dispose();
    }

    thank you for giving reply.
    your code is very helpful to us.but i couldn't integrate it in my code.here's my code.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.io.File;
    import javax.swing.filechooser.FileFilter;
    import java.awt.geom.*;
    public class IS extends JFrame implements ActionListener,
                                               MouseListener,
                                               MouseMotionListener {
        private final int PEN_OP = 1;
        private final int CLEAR_OP = 2;
         private     final int DISTORT = 3;
        private final int SCALE   = 4;
        private final int FIT     = 5;
        private final int FILL    = 6;
        int scaleMode = SCALE;
        private int radius;
        private int radius1;
        private int mousex = 0;
        private int mousey = 0;
        private int prevx = 0;
        private int prevy = 0;
        private boolean initialFreeHand = true;
        private boolean initialLine = true;
        private boolean initialEraser = true;
        private int Orx = 0;
        private int Ory = 0;
        private int OrWidth = 0;
        private int OrHeight = 0;
        private int drawX = 0;
        private int drawY = 0;
        private int polyX = 0;
        private int polyY = 0;
        private int eraserLength = 5;
        private int udefRedValue = 255;
        private int udefGreenValue = 255;
        private int udefBlueValue = 255;
        private int opStatus = PEN_OP;
        private int colorStatus = 1;
        private double zoomPercentage=10;
        private Color mainColor = new Color(0, 0, 0);
        private Color xorColor = new Color(255, 255, 255);
        private Color userDefinedColor =
            new Color(udefRedValue, udefGreenValue,udefBlueValue);
        private JButton openButton = new JButton("open");
        private JButton closeButton = new JButton("close");
         private JButton zoominButton = new JButton("ZoomIn");
         private JButton zoomoutButton = new JButton("ZoomOut");
         private JButton zoomto100Button = new JButton("ZoomTo100");
         private JButton fwwButton = new JButton("Fit window width");
         private JButton fwhButton = new JButton("Fit window height");
         private JButton fwButton = new JButton("Fit the window");
        private JButton clearButton = new JButton("Clear");
        private JTextField colorStatusBar = new JTextField(20);
        private JTextField opStatusBar = new JTextField(20);
        private JTextField mouseStatusBar = new JTextField(10);
        private JPanel controlPanel = new JPanel(new GridLayout(18, 1, 0, 0));
        JToolBar jToolbar = new JToolBar();
        private Container container;
        private JScrollBar horizantalSlide=new JScrollBar();
        public BufferedImage image;
        BufferedImage bgImage;
    //    public ImageIcon icon=null;
        JFileChooser fileChooser;
        DrawPanel drawPanel = new DrawPanel(bgImage,zoomPercentage);
        public IS() {
            super("WhiteBoard");
            fileChooser = new JFileChooser(".");
            container = getContentPane();
            container.setBackground(Color.white);
            container.setLayout(new BorderLayout());
            container.add(jToolbar,BorderLayout.NORTH);
            container.add(horizantalSlide);
            jToolbar.add(openButton);
            jToolbar.add(closeButton);
              jToolbar.add(zoominButton);
              jToolbar.add(zoomoutButton);
              jToolbar.add(zoomto100Button);
              jToolbar.add(fwwButton);
              jToolbar.add(fwhButton);
              jToolbar.add(fwButton);
            jToolbar.add(clearButton);
            colorStatusBar.setEditable(false);
            opStatusBar.setEditable(false);
            mouseStatusBar.setEditable(false);
            controlPanel.setBackground(Color.white);
            drawPanel.setBackground(Color.white);
            container.add(controlPanel, "West");
            container.add(drawPanel, "Center");
            openButton.addActionListener(this);
            closeButton.addActionListener(this);
              zoominButton.addActionListener(this);
              zoomoutButton.addActionListener(this);
              zoomto100Button.addActionListener(this);
              fwwButton.addActionListener(this);
              fwhButton.addActionListener(this);
              fwButton.addActionListener(this);
            clearButton.addActionListener(this);
            drawPanel.addMouseMotionListener(this);
            drawPanel.addMouseListener(this);
            addMouseListener(this);
            addMouseMotionListener(this);
            opStatusBar.setText("FreeHand");
            colorStatusBar.setText("Black");
        public void actionPerformed(ActionEvent e) {
            if(e.getActionCommand().equals("open"))
                showDialog();
            if(e.getActionCommand().equals("close"))
                closeDialog();
              if(e.getActionCommand().equals("ZoomIn"))
                   drawPanel.zoom(1);
              if(e.getActionCommand().equals("ZoomOut"))
                   drawPanel.zoom(-1);
              if(e.getActionCommand().equals("ZoomTo100"))
                   drawPanel.zoom(+10);
              if(e.getActionCommand().equals("Fit window width"))
                   //drawPanel.fitwindowwidth();
              drawPanel.scaleImage(0,0,0,0);
              if(e.getActionCommand().equals("Fit window height"))
              drawPanel.scaleImage(0,0,0,0);
              if(e.getActionCommand().equals("Fit the window"))
              drawPanel.scaleImage(0,0,0,0);
            if (e.getActionCommand() == "Clear")
                opStatus = CLEAR_OP;
            switch (opStatus) {
                case CLEAR_OP:
                    clearPanel();
        private void showDialog() {
            if(fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
                File file = fileChooser.getSelectedFile();
                try {
                    bgImage = ImageIO.read(file);
                } catch(IOException e) {
                    System.out.println("IO error: " + e.getMessage());
                clearPanel();
        private void closeDialog() {
            drawPanel.setVisible(false);
            drawPanel.repaint();
        public void clearPanel() {
            opStatusBar.setText("Clear");
              int w = image.getWidth();
            int h = image.getHeight();
            Graphics g = image.getGraphics();
            g.setColor(drawPanel.getBackground());
            g.fillRect(0, 0, w, h);
            if(bgImage != null) {
                int x = (w - bgImage.getWidth())/2;
                int y = (h - bgImage.getHeight())/2;
                g.drawImage(bgImage, x, y, this);
            g.dispose();
            drawPanel.repaint();
        public boolean mouseHasMoved(MouseEvent e) {
            return (mousex != e.getX() || mousey != e.getY());
        public void setActualBoundry() {
            if (mousex < Orx || mousey < Ory) {
                if (mousex < Orx) {
                    OrWidth = Orx - mousex;
                    drawX = Orx - OrWidth;
                } else {
                    drawX = Orx;
                    OrWidth = mousex - Orx;
                if (mousey < Ory) {
                    OrHeight = Ory - mousey;
                    drawY = Ory - OrHeight;
                } else {
                    drawY = Ory;
                    OrHeight = mousey - Ory;
            } else {
                drawX = Orx;
                drawY = Ory;
                OrWidth = mousex - Orx;
                OrHeight = mousey - Ory;
        public void setGraphicalDefaults(MouseEvent e) {
            mousex = e.getX();
            mousey = e.getY();
            prevx = e.getX();
            prevy = e.getY();
            Orx = e.getX();
            Ory = e.getY();
            drawX = e.getX();
            drawY = e.getY();
            OrWidth = 0;
            OrHeight = 0;
        public void mouseDragged(MouseEvent e) {
            updateMouseCoordinates(e);
            switch (opStatus) {
        public void mouseReleased(MouseEvent e) {
            updateMouseCoordinates(e);
            switch (opStatus) {}
        public void mouseEntered(MouseEvent e) {
            updateMouseCoordinates(e);
        public void updateMouseCoordinates(MouseEvent e) {
            String xCoor = "";
            String yCoor = "";
            if (e.getX() < 0)
                xCoor = "0";
            else {
                xCoor = String.valueOf(e.getX());
            if (e.getY() < 0)
                xCoor = "0";
            else {
                yCoor = String.valueOf(e.getY());
            mouseStatusBar.setText("x:" + xCoor + " y:" + yCoor);
        public void mouseClicked(MouseEvent e) { updateMouseCoordinates(e); }
        public void mouseExited(MouseEvent e) { updateMouseCoordinates(e); }
        public void mouseMoved(MouseEvent e) { updateMouseCoordinates(e); }
        public void mousePressed(MouseEvent e) { updateMouseCoordinates(e); }
        public static void main(String[] args) {
            IS wb = new IS();
            wb.setDefaultCloseOperation(EXIT_ON_CLOSE);
            wb.setSize(1024,740);
            wb.setVisible(true);
        private class DrawPanel extends JPanel {
            private double m_zoom = 1.0;
            private double m_zoomPercentage;
            private BufferedImage m_image;
            double theta = 0;
            double thetaInc = Math.PI/2;
            public DrawPanel(BufferedImage imageb,double zoomPercentage) {
                m_image = imageb;
                m_zoomPercentage = zoomPercentage / 100;
            protected void paintComponent(Graphics g) {
                   super.paintComponent(g);
                Graphics2D g2d=(Graphics2D)g;
                if(image == null)
                    initImage();
                g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                                     RenderingHints.VALUE_INTERPOLATION_BICUBIC);
                              int w = getWidth();
                    int h = getHeight();
                  int iw = image.getWidth();
                  int ih = image.getHeight();
                  if(scaleMode == SCALE) {
                double x = (w - m_zoom*iw)/2;
                double y = (h - m_zoom*ih)/2;
                AffineTransform at = AffineTransform.getTranslateInstance(x, y);
                at.rotate(theta,m_zoom*getWidth()/2,m_zoom*getHeight()/2);
                at.scale(m_zoom, m_zoom);
                g2d.drawRenderedImage(image, at);
                   else {
                scaleImage(w, h, iw, ih);
              private void scaleImage( int w, int h, int iw, int ih) {
                             Graphics2D g2d = image.createGraphics();
            double xScale = (double)w/iw;
            double yScale = (double)h/ih;
            AffineTransform at = new AffineTransform();
            if(scaleMode == DISTORT) {
                double x = (w - xScale*iw)/2;
                double y = (h - yScale*ih)/2;
                at.setToTranslation(x, y);
                at.scale(xScale, yScale);
            } else {
                double scale = (scaleMode == FIT) ? Math.min(xScale, yScale)
                                                  : Math.max(xScale, yScale);
                double x = (w - scale*iw)/2;
                double y = (h - scale*ih)/2;
                at.setToTranslation(x, y);
                at.scale(scale, scale);
            g2d.drawRenderedImage(image, at);
      public void zoom(int inc) {
            m_zoom += inc * m_zoomPercentage;
            repaint();
            private void initImage() {
                int w = getWidth();
                int h = getHeight();
                image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
                Graphics2D g2 = image.createGraphics();
                g2.setPaint(getBackground());
                g2.fillRect(0,0,w,h);
                g2.dispose();
    }

  • Why is CS6 Zoom change window size is different then previous versions?

    Why in CS6 when zoom changes window size and a folating window fits in Photoshop window or on other display screen do I get scroll bars where a select all selection marching ants are not visible on all four sides till I drag out the window to get rid of the scroll bars so I can see all of marching ants.  In preious versions of Photoshop space for scroll bars is present but there are no scrool bar, select all marching ants are visible on all four sides when an image's window fits in Photoshop window or on second display. Is there a way to make CS6 work like previous versions? Also if I just open a document and Photoshop fits it to Photoshop window or second display the floating window is correct without scroll bars. Zoon add then even when not needed....

    Without manually resizing each open document window on my Mac, Photoshop 13.x would be simply unusable.
    I hadn't posted anything on the subject because the system on which I run Ps 13.0.1 is based on a laptop (MacBook) literally rescued from the trash and with minimal specs.  The graphics card is not even involved in processing.
    I put up with it because I'm basically using it to run ACR 7.2RC1, then bring the converted and ACR-adjusted onto my regular working machine running CS4.
    In a nutshell, nothing will make the window fit the main monitor, not Fit To Window, nor 100% view, nor any shortcut.
    I need to drag the window manually from the lower right-hand corner in order for it to fit the monitor.  Otherwise, there are substantial gaps on the right and at the bottom.  I never run in tab view.
    For the sake of thoroughness:
    2007, 2GHz MacBook 2,1, Intel Core 2 Duo, 4 GB of RAM (can use 3 GB), 160 GB internal boot disk, dedicated FireWire400 external HD for Ps scratch disk, external Time Machine HD.  Dual external monitors + built-in laptop screen Snow Leopard 10.6.8.
    The Mac-Intel is used for no other purpose than running ACR 7.2RC1 and the only other application I occasionally run on said Mac-Intel is TextEdit.
    My main working machine is a Power Mac (PPC) G5 Quad with 16 GB of RAM, on which 11.0.2 is the last version of Photoshop to run, so I have the Mac-Intel system described above just to run ACR 7.x under Photoshop 13.0.1.  I convert my raw files in ACR7.x open them in Ps 13.0.x and save them via Ethernet to an external HD connected to the G5 Quad for further processing in CS4.
    2.5 GHz Power Mac (PPC) G5-Quad; 16GB RAM; mutant, flashed 550MHz nVidia GeForce 7800GTX 1,700MHz 512MB VRAM; ATTO ExpressPCI UL5D LP SCSI card; Mac OS X Tiger 10.4.11 and Leopard 10.5.8 boot drives; intrusive Spotblight, Dashboard and Time Machine permanently disabled; dual 22" CRT monitors; USB wireless 'n' available but connected to the Internet via wired Ethernet; FW flatbed scanner; 2 SCSI scanners (one tabloid-size transparency scanner and a film scanner); various internal & external HDs; FW Epson 2200 and Ethernet Samsung ML-2850ND printers; 2 X Back-UPS RS 1500 XS units.

  • How to Zoom and Pan in the program window.

    Hi,
    I have been using scale to adjust larger than 4K image sequences so they fit 1080 and 4K output. I want to be able to zoom in and pan/tilt the program window so I can see the edges of the program window close up, so I can see to make a fine adjustment of scale. I want to be able to adjust scale precisely so I don't lose a single pixel, or include any black around the edges of the images. Of course I can't see the edges close up enough while looking at the entire image, to really see if I have scaled too much or too little. I know how to zoom in the program window, but how do I pan over to the side and bottom edges ? Without being able to pan I instantly lose the edges of the frame when I zoom in the program window.

    Perhaps this will help it make sense to you.
    I am taking tme lapse sequences shot on a DSLR and putting them onto Blu Ray disks for viewing. I also outputted a 4K file to try to play at Best Buy on a 4K television. The images are  4928 X 3280 pixels, which is larger than 4K, and much larger than 1080. One of the advantages of using these large images directly and not reducing them in Photoshop first is that I can have a time lapse zoom, which is very difficult to achieve otherwise. I can also pan and tilt. Another advantage is not having to reduce thousands of images three times, once for 1080, once for 4K, and once for stills..
    I usually work with 1080 video, and animated 1080 still sequences from Maya, or standard definition video. This is the my first opportunity to work with higher resolutions.
    Generally, for my first evaluation of these DSLR stills, i wanted to show some of them fully without cutting any off. This means there is a black border onthe sides because the DSLR stills are 2:3 instead of 9:16. For this I have used a scale of 32.6% for 1080, and 66% for 4K. For some sequences i wanted to just completely fill the frame. For this I used 38.9% for 1080, and 77.9% for 4K.
    My assumption is that Premier should do scaling as well as Photoshop does, and so  I have let Premier do the work, saving me a lot of extra work. First i take all the original images and process them from raw to tiff, for the day exposures. Then i process them again for the night exposures. Then i bring them into either my 1080 project, or my 4K project. I put the night pictures above the day pictures on a separate video track. I use opacity to dissolve from the day to night processed images as night falls inthe scene.
    Two sequences I shot are of the night sky during the recent meteor shower. After watchign the video I see i caught three instances of persistent meteor trails distorting in the sky. I was able to zoom in quite a bit, and track the position, because the sequence is of greater resolution than the native 1080 format. It gives me a second change at composition, or the ability to zoom in on something interesting that happens in the scene.
    It seems to me that the only reason i would want to first process the images down to 1080 in Photoshp, would be if the quality of the scaling was higher in Photoshop.
    When i adjust the scale, I am adjusting the scale of an image that is 4928 X 3280, in the program monitor which is probably only well less than 1000 pixels on my screen. It would be nice if I could not only zoom, but pan in the program window, so I could more accurately adjust scale by looking at the edges. So if there is no other way to do this visually, I am suggesting adding the ability to pan and tilt in the program monitor to accomplish this. Sure I could figure out the scale mathematically. I could still end up adding a row of black pixels, or cutting off a row of image pixels, due to some error such as rounding errors, or starting with 1 instead of zero, or vice versa.

  • Zoom functionality

    Hello,
    There's an issue that I am having regarding the "Insert -> Standard Objects -> Zoom Area...". Or perhaps, rather a function that I'd like but probably overlooked. I'll elaborate:
    I have a project, in that project I have a "Rollover Area", as soon as you hover your mouse over it, it displays a small image (Actually a large image cropped)
    I'd like the "Zoom Area..." to actually show the part of the large image, instead of just stretching open the small image (Resulting in large pixels). I hope the image below will help clarifying what I am getting and what I want to achieve.
    http://img11.imageshack.us/img11/1644/zoomdhj.jpg
    As you can see, the original large image looks much sharper than the zoomed in version of the image that was cropped. How can I best achieve retaining the quality and yet keep the nifty zoom function?
    I'm using Captivate 4 by the way
    Thanks for the help!

    Hi there
    Tklok wrote:
    Double-clicking the zoom destination area and picking a picture, just seems the same as "Insert -> Image" to me. Am I missing something here?
    While you are correct in that the project size will likely increase as a result of using a Zoom Area, using an image is definitely not the same. It may appear to you that it is, but trust me, it isn't.
    When you insert an image, the image appears where you inserted it. But it remains in one position on the screen or stage. When you insert an image into a Zoom Destination, it will move from wherever the beginning of the Zoom area is to the location of the Zoom Destination area.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Scroll-zoom function does not work.

    Hey,
    I am using Adobe Acrobat 6.0 Pro on  Windows XP and somehow I am not able to use Ctrl+scroll for zooming in and out.
    It only works using Ctrl++ and Ctrl+-.
    Do you know how I can turn the scroll-zooming function on again?
    Thank you,
    Finn

    In later versions the setting is controlled by:
    Edit > Preferences > General > Basic Tools > Make Hand tool use mouse-wheel scrolling
    I don't have a copy of A6 to verify if the entry is in the same place or not.

  • Zoom in on Images

    Flash 8 Trial Mode, XP-P, Kinda new to Flash, too.
    I'm using the template Modern Photo Slideshow that came with
    the trial
    version. Its default stage is 640 x 480, which I need to
    change to 320 x
    240. I know how to do that, but once I do that, does it
    resize the rest
    of the template items or do I need to manually do that? If
    manually, any
    pointers?
    Actually, the controller in this template does not do
    zooming, and I
    wanted people to be able to zoom in on the vastly reduced in
    size initial
    image to any point on the much, much larger final zoomed
    image. I hope
    that makes sense. I see this all the time on various web
    sites, like
    Blair.com.
    This template allows autoplay or manually controlling moving
    between
    images in the gallery. My photos are mostly 3264 x 2448, so
    there is a
    lot of zooming potential. I also need to add a caption to
    each photo.
    I'm not seeing how to put this all together. Are there any
    tutorials on
    this, web sites, etc that can also help? Not knowing all the
    terminology
    yet makes it hard and time consuming to Google all this. I
    don't have
    much time to finish this. I know I am never going to get it
    done by
    tonight. Maybe I should just PayPal someone to do it for me?
    Any help available out there - either in instructions or
    reasonable price
    for doing it for me and delivering the raw file for me to add
    the captions?
    TIA,
    CS

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    <b> To Enable SafeMode </b>
    *You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    *''Once you get the pop-up, just select "'Start in Safe Mode"''
    If it works in Safe Mode and in normal mode with all extensions (Tools > Add-ons > Extensions) disabled then try to find which extension is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: "Firefox > Quit Firefox"; Linux: "Firefox/File > Quit")
    * https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Adding a button with zoom function

    Hello,
    I am working on a product catalog and for this purpose we have used a professional photographer to shoot product photos. The photos are really nice and they can be zoomed in to see every detail clearly. The photos have been inserted into the pdf catalog but because of the limited space they are not very detailed.
    Is it possible to add a button or link with zoom function? For example, an icon such as a magnifier or just the word zoom so when a user clicks it, it will zoom in the pre set area to a pre set level and center it.
    Sounds quite fancy right? Maybe i'm thinking the impossible... but it's worth a try here :)
    Regards,
    Rudi

    ok. i got it! :))
    i have made some changes myself. When the mouse enters button1, button2 becomes visible and button1 becomes hidden (otherwise it is overlapping button2). I have set this in the actions of button1. I would also add the following function: when visible button2 is clicked it hides button2 (this you have already shown and works) and makes button1 visible again. I guess making button1 visible again has to be done with a Javascript in the actions of button2 under mouse up.
    I have no knowledge of programming. Can you tell me how to do this?
    After i openen the pdf file and used this function and close the pdf file it asks to save the pdf file. How can i prevent this to show up? I dont want this to happen to my customers.
    Is it possible to see the exact dimensions of the button? Then i could create both buttons so that they fit in my catalog exactly as i want them, and then check the dimensions and scale my photos to it. Although it seems that Acrobat does something with the photo size already as the photo in button2 is 34mb while the pdf file is only 200kb.
    thanks.
    rudi
    BTW this is really a well thought out solution and i think not many people are aware of this because i have never seen it before

  • How do I permanently set the zoom-function, so I will not have to zoom every time I open a new tab/page?

    I have recently installed Firefox on my one month old laptop which has a 17" screen. Every time I open Firefox I have to use the zoom-function (ctr +) four times to be able to read comfortably. Every time when I next open a website, or tab, or window I have to use the zoom-function again. This is kind of getting old, fast.
    Is there any way I can set the zoom to a higher/closer setting permanently, so I do not have to use the zoom-function about 50 times everytime I use the internet?
    If you could help me that would be lovely!
    Thanks,
    Kikki

    You can use an extension to set a default font size and page zoom on web pages.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • ZOOM functionality in GANTT UI in WD ABAP not working

    Dear Experts
    We are using GANTT UI element in webdynpro ABAP application with time
    scale.
    While we increase or decrease GANTT zoom then time scale is not zooming
    accordingly.
    We are using below transformation lines to generate XML for TIMESCALE,
            <types class="TIMESCALE">
            <type inherits="Gantt.Ribbon" name="Gantt.Ribbon.Days">
                <size>,25</size>
                <labels format="dd MMMM yyyy" unit="DAY"/>
                <fillColor type="C.Ribbon.Middle"/>
              </type>
              <type inherits="Gantt.Ribbon" name="Gantt.Ribbon.Hours">
                <size>,25</size>
                <labels format="HH" unit="HOUR"/>
                <fillColor type="C.Ribbon.Middle"/>
              </type>
            </types>
              <timeScale>
                <!--          &amp;lt;section&amp;gt;
                        &amp;lt;ribbon type="Gantt.Ribbon.Days"&amp;gt;
                                  &amp;lt;fillColor type="C.Ribbon.Light"/&amp;gt;
                             &amp;lt;/ribbon&amp;gt;
                             &amp;lt;ribbon type="Gantt.Ribbon.Hours"/&amp;gt;
                        &amp;lt;/section&amp;gt;-->
                <section>
                  <ribbon type="Gantt.Ribbon.Days"/>
                  <ribbon type="Gantt.Ribbon.Hours">
                    <fillColor type="C.Ribbon.Light"/>
                  </ribbon>
                </section>
              </timeScale>
    Is there any additional parameter we need to use to make this GANTT ZOOM functionality for time scale.
    Appreciate your help in this directon.
    Many thanks

    Thank you Tom,
    I'm actually talking about the standard integrated search help which gets created automatically by the system (you got it right). When I click the arrow next to the select option (Material), it open up a small window with title "Multiple Selections". I can enter multiple values manually here. So far it is good. Now if in this screen I click on the dropdown for column "From", I get a list of Materials to select from. The list has multiple selection capabilities. But when more then one value is selected I get an error message "Select exactly one row of value list to copy". The users are asking if we can give them the capability of selecting more then one row here so that multiple values are populated in the small "Multiple Selections" popup. This way they don't have to type single values separately.
    Hope this explains the problem. I don't know how to send screen shots in this post. Thanks much for your response.

Maybe you are looking for