How fast is Image.getHeight ()?

Can anyone tell me how fast the Image class' getHeight () and getWidth () methods are? Do these do some sort of complicated analysis on the picture, or do they simply return a variable that Java computes when the image is created?
Here's the thing: I'm making a game. In this game, there are a lot of collisions. I check every object for collision with every other object. Thus I have about n^2 collision checks if there are n objects on the screen. Since there may be up to 50 objects on the screen at once, this could be as much as 2500 collision checks per frame = 50,000 collision checks per second. Each collision method calls the getHeight () and getWidth () methods several times. Unless they are very fast, I might not be able to use this in my program.
Thank you for all your help.

Can anyone tell me how fast the Image class'
getHeight () and getWidth () methods are? Do these
do some sort of complicated analysis on the picture,
or do they simply return a variable that Java
computes when the image is created?Considering Image is abstract and there's nothing in the contract about performance requirements nobody can answer this. It depends on the implementation. Generally, it's going to return very quickly and isn't going to require any kind of analysis at runtime.
Here's the thing: I'm making a game. In this game,
there are a lot of collisions. I check every object
for collision with every other object. Thus I have
about n^2 collision checks if there are n objects on
the screen. Since there may be up to 50 objects on
the screen at once, this could be as much as 2500
collision checks per frame = 50,000 collision checks
per second. Each collision method calls the
getHeight () and getWidth () methods several times.
Unless they are very fast, I might not be able to
use this in my program.Then use a specific implementation you know is fast, or don't use the image directly.

Similar Messages

  • How to copy images from another MC in reversed order??

    Hi everyone,
    I'm new to AS3 and have been fighting and searching for a solution to this problem for a week now, and I'm VERY close!
    I crated a MC holding of a series of images (about 50) and I jump around in it using plenty AS3 scripts (most of which I don't fully understand yet, but I'm working on that to! )
    I had to find a way to "rewind" (= play backwards) the MC. Since there is a stop(); command in almost every frame, prevFrame does not work and if I put that in a loop, it goes WAY to fast (but worked).. So I could think of only one way...
    Create a new (reverserd) MC with the same image sequence ald reverse it manually and play that one.
    This all works fine (very proud of it ).
    Now my question:
    To get this to work for multiple image sequences, I have to load all images twice (once in MC_1 and again in MC_2 and select them and reverse them).
    Not a big one, unless you want to create MANY of those SWF's...
    Is it possible to load the 50 images of the first MC in reverse into the second MC dynamically? JUST the images, noting else.
    extra info: the MC_2 is already in the lib(empty) and placed on the stage.
    something like:
    var pointer:Number=1;
    for (var:i:Number=50;i>=0;i--) {
    get MC_1.picure(var);
    put it in MC_2.frame(pointer);
    pointer = pointer + 1;
    All help is welcome and please take into account that I have little experience and copy most of my scripting from people like you
    T.I.A.
    Melluw

    I tried your advice (thanks for that)
    The event I already have is the mouse leave
    I //-d out the part I removed (what did work)
    The code I ended up with is:
    function Start() {
    stage.addEventListener(Event.MOUSE_LEAVE, cursorHide);
    function cursorHide(evt:Event):void {
    var currFrame = MC_1.currentFrame;
    if (CCW == true) {  //it is true in this case
      movStart = (50 - currFrame);
    else {
      movStart = currFrame;
    if (movStart>25) {
      MC_1.prevFrame();
    // removed swapChildren(MC_1, MC_2); // This is the part I removed
    // removed MC_2.gotoAndPlay(movStart);
    else {
      MC_1.gotoAndPlay (movStart);
    And if I leave the stage on the part where movStart is indeed >25
    Nothing happens,
    So I guess this is not what you meant
    Subject: Action Script 3 how to copy images from another MC in reversed order??
    I cannot direct you in the loading of the images approach, it will be too complicated, and will probably not work anyways... when you move away from a frame that has dynamic content, you lose the content.  So basically, there is nothing practical in taking that approach.
    I do niot understand what the problem will be with the enterFrame/prevFrame approach. If everything you can do with the mouse is already used (which I doubt) by the first mc, then there is nothing else you can do with this file.  You probably just need to rethink your control scheme.  You should search Google for "AS3 slideshow tutorial", and to lighten up your design, add "XML" in that search.
    >

  • How to stretch image

    Hi
    I am using the following method to resize an image, but when the new width and height do not maintain the aspect ratio of the image, the image doesn't stretch to the new size, but rather fills the background with black.
    I would like to change the method to stretch the image if the new coords do not maintain the image's aspect ratio.
    Also, how would I add support for saving the resized image as a GIF?
    Kind regards
    Peter
    public static void resizeImage(String filename, int newWidth, int newHeight)
         try
              BufferedImage input = ImageIO.read(new File(filename));
              BufferedImage output = new BufferedImage(newWidth, newHeight, BufferedImage.TYPE_INT_RGB);
              double scale = (double)Math.max(newWidth,newHeight)/(double)input.getHeight(null);
              if (input.getWidth(null) > input.getHeight(null)) {
                   scale = (double)Math.max(newWidth,newHeight)/(double)input.getWidth(null);
              // Set the scale.
              AffineTransform tx = new AffineTransform();
              if (scale < 1.0d)
              tx.scale(scale, scale);
              // Paint image.
              Graphics2D g2d = output.createGraphics();
              g2d.drawImage(input, tx, null);
              g2d.dispose();
              //TODO: Add support for GIF.
              ImageIO.write(output,MiscUtils.extractFileExt(filename),new File(filename));
         catch(IOException e)
              e.printStackTrace();
    }

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.net.*;
    import java.text.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ImageScaling
        public static void main(String[] args)
            JFrame f = new JFrame("Image Scaling");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            BufferedImageComponent bic = new BufferedImageComponent();
            ImageSelector selector = new ImageSelector(bic, f);
            ImageAdjustor adjustor = new ImageAdjustor(bic);
            f.setJMenuBar(selector.getMenuBar());
            f.getContentPane().add(bic);
            f.getContentPane().add(adjustor, "South");
            f.setSize(500,350);
            f.setLocation(400,200);
            f.setVisible(true);
            System.out.println(bic.getSize());
    * Image component displays scaled image.
    class BufferedImageComponent extends JPanel
        URL fileURL;
        BufferedImage image;
        int width, height;
        JLabel label;
        NumberFormat nf;
        boolean centerImage;
        public BufferedImageComponent()
            width = 300;
            height = 200;
            label = new JLabel();
            nf = NumberFormat.getNumberInstance();
            nf.setGroupingUsed(false);
            nf.setMaximumFractionDigits(3);
            centerImage = false;
            setBackground(Color.white);
            setLayout(new GridBagLayout());
            add(label, new GridBagConstraints());
        private void scaleImage(int width, int height)
            BufferedImage scaledImage = new BufferedImage(width, height,
                                                BufferedImage.TYPE_INT_RGB);
            double imageWidth = image.getWidth();
            double imageHeight = image.getHeight();
            // the smaller dimension of image will fill scaledImage
            // allowing the longer dimension to overflow scaledImage
            double wScale = width/imageWidth;
            double hScale = height/imageHeight;
            double scale = Math.max(wScale, hScale);
            double y = (height - scale*imageHeight)/2;
            double x = (width - scale*imageWidth)/2;
            System.out.println("wScale = " + nf.format(wScale) + "\t" +
                               "hScale = " + nf.format(hScale) + "\n" +
                               "scale = " + nf.format(scale) + "\n" +
                               "x = " + nf.format(x) + "\ty = " + nf.format(y) + "\n" +
                               "scaledImageWidth = " + nf.format(scale*imageWidth) + "\t" +
                               "scaledImageHeight = " + nf.format(scale*imageHeight));
            AffineTransform xform = new AffineTransform();
            if(centerImage)
                xform.translate(x,y);
            xform.scale(scale, scale);
            Graphics2D g2 = scaledImage.createGraphics();
            g2.drawImage(image, xform, this);
            g2.dispose();
            label.setIcon(new ImageIcon(scaledImage));
            revalidate();       
            repaint();
        private void loadImage()
            try
                image = ImageIO.read(fileURL);
            catch(IOException ioe)
                System.out.println("IOE: " + ioe.getMessage());
        public void setImage(URL url)
            fileURL = url;
            loadImage();
            scaleImage(width, height);
        public void setCenterFlag(boolean b)
            centerImage = b;
            scaleImage(width, height);
        public void setWidth(int w)
            width = w;
            scaleImage(width, height);
        public void setHeight(int h)
            height = h;
            scaleImage(width, height);
    * JSpinners to change the width and height of the image displayed
    * in BufferedImageComponent and a JCheckBox that offers a centering option.
    * Loaded into south section of content pane in main method.
    class ImageAdjustor extends JPanel
        BufferedImageComponent bic;
        public ImageAdjustor(BufferedImageComponent c)
            bic = c;
            SpinnerNumberModel widthModel = new SpinnerNumberModel(300, 50, 400, 10);
            final JSpinner widthSpinner = new JSpinner(widthModel);
            SpinnerNumberModel heightModel = new SpinnerNumberModel(200, 50, 400, 10);
            final JSpinner heightSpinner = new JSpinner(heightModel);
            ChangeListener l = new ChangeListener()
               public void stateChanged(ChangeEvent e)
                   JSpinner spinner = (JSpinner)e.getSource();
                   int value = ((Integer)spinner.getValue()).intValue();
                   if(spinner == widthSpinner)
                       bic.setWidth(value);
                   if(spinner == heightSpinner)
                       bic.setHeight(value);
            widthSpinner.addChangeListener(l);
            heightSpinner.addChangeListener(l);
            final JCheckBox centerCheck = new JCheckBox("center");
            centerCheck.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    bic.setCenterFlag(centerCheck.isSelected());
            setLayout(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.weightx = 1.0;
            gbc.insets = new Insets(2,2,2,2);
            gbc.anchor = gbc.EAST;
            add(new JLabel("width"), gbc);
            gbc.anchor = gbc.WEST;
            add(widthSpinner, gbc);
            gbc.anchor = gbc.EAST;
            add(new JLabel("height"), gbc);
            gbc.anchor = gbc.WEST;
            add(heightSpinner, gbc);
            gbc.anchor = gbc.CENTER;
            add(centerCheck, gbc);
    * JFileChooser used to load images into BufferedImageComponent.
    * Accessed through file menu.
    class ImageSelector
        BufferedImageComponent bic;
        JFrame frame;
        JFileChooser chooser;
        JMenuBar menuBar;
        public ImageSelector(BufferedImageComponent c, JFrame f)
           bic = c;
           frame = f;
           chooser = new JFileChooser();
           JMenu fileMenu = new JMenu("file");
           final JMenuItem openItem = new JMenuItem("open");
           ActionListener l = new ActionListener()
               public void actionPerformed(ActionEvent e)
                   JMenuItem item = (JMenuItem)e.getSource();
                   if(item == openItem)
                       openDialog();
            openItem.addActionListener(l);
            fileMenu.add(openItem);
            menuBar = new JMenuBar();
            menuBar.add(fileMenu);
        private void openDialog()
            int returnVal = chooser.showOpenDialog(frame);
            if(returnVal == JFileChooser.APPROVE_OPTION)
                File file = chooser.getSelectedFile();
                if(!isImage(file))
                    return;
                try
                    URL url = file.toURL();
                    bic.setImage(url);
                catch(MalformedURLException mue)
                    System.out.println("MUE: " + mue.getMessage());
         * Filters files for jpg and png extensions
        private boolean isImage(File file)
            String extension = file.getPath().toLowerCase();
            if(extension.indexOf("jpg") != -1 || extension.indexOf("png") != -1)
                return true;
            return false;
        public JMenuBar getMenuBar()
            return menuBar;
    }

  • How to set image to JPanel

    Hi to all,
    How to set background image to panel in swing?
    If anyone knows tell me..

    Hi,
    Just modify and use this..
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import javax.swing.JCheckBox;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JViewport;
    import RboJComponents.RboJEmailTextField;
    import RboJComponents.RboJPanel;
    public class ImagePanel extends JPanel
    public static final int TILED = 0;
    public static final int SCALED = 1;
    public static final int ACTUAL = 2;
    private BufferedImage image;
    private int style;
    private float alignmentX = 0.5f;
    private float alignmentY = 0.5f;
    public ImagePanel(BufferedImage image)
    this(image, TILED);
    public ImagePanel(BufferedImage image, int style)
    this.image = image;
    this.style = style;
    setLayout( new BorderLayout() );
    public void setImageAlignmentX(float alignmentX)
    this.alignmentX = alignmentX > 1.0f ? 1.0f : alignmentX < 0.0f ? 0.0f : alignmentX;
    public void setImageAlignmentY(float alignmentY)
    this.alignmentY = alignmentY > 1.0f ? 1.0f : alignmentY < 0.0f ? 0.0f : alignmentY;
    public void add(JComponent component)
    add(component, null);
    public void add(JComponent component, Object constraints)
    component.setOpaque( false );
    if (component instanceof JScrollPane)
    JScrollPane scrollPane = (JScrollPane)component;
    JViewport viewport = scrollPane.getViewport();
    viewport.setOpaque( false );
    Component c = viewport.getView();
    if (c instanceof JComponent)
    ((JComponent)c).setOpaque( false );
    super.add(component, constraints);
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    if (image == null ) return;
    switch (style)
    case TILED :
    drawTiled(g);
    break;
    case SCALED :
    Dimension d = getSize();
    g.drawImage(image, 0, 0, d.width, d.height, null);
    break;
    case ACTUAL :
    drawActual(g);
    break;
    private void drawTiled(Graphics g)
    Dimension d = getSize();
    int width = image.getWidth( null );
    int height = image.getHeight( null );
    for (int x = 0; x < d.width; x += width)
    for (int y = 0; y < d.height; y += height)
    g.drawImage( image, x, y, null, null );
    private void drawActual(Graphics g)
    Dimension d = getSize();
    float x = (d.width - image.getWidth()) * alignmentX;
    float y = (d.height - image.getHeight()) * alignmentY;
    g.drawImage(image, (int)x, (int)y, this);
    public static void main(String [] args)throws Exception
    BufferedImage image = javax.imageio.ImageIO.read(new java.io.File("c:\\final.jpg"));
    //ImagePanel north = new ImagePanel(image, ImagePanel.ACTUAL);
    //north.setImageAlignmentY(1.0f);
    //JTextArea text = new JTextArea(5, 40);
    //JScrollPane scrollPane = new JScrollPane( text );
    //north.add( scrollPane );
    ImagePanel south = new ImagePanel(image, ImagePanel.SCALED);
    south.setPreferredSize(new Dimension(490, 340));
    south.setLayout(null);
    RboJPanel buttons = new RboJPanel();
    buttons.setBounds(15, 105, 350, 50);
    RboJEmailTextField toAddress = new RboJEmailTextField(28);
    //toAddress.setBounds(20,20,20,20);
    //toAddress.setCaretColor ( toAddress.getBackground () ) ;
    buttons.add(toAddress);
    //buttons.add(new JButton("Two"));
    /*JPanel boxes = new JPanel();
    boxes.add( new JCheckBox("One"));
    boxes.add( new JCheckBox("Two") );*/
    south.add(buttons);
    //south.add(boxes, BorderLayout.PAGE_END);
    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //frame.getContentPane().add( north, BorderLayout.NORTH );
    frame.getContentPane().add( south);
    frame.pack();
    frame.setVisible(true);
    }Regards,
    Anees

  • How to add images into a java application (not applet)

    Hello,
    I am new in java programming. I would like to know how to add images into a java application (not an applet). If i could get an standard example about how to add a image to a java application, I would apreciated it. Any help will be greatly apreciated.
    Thank you,
    Oscar

    Your' better off looking in the java 2d forum.
    package images;
    import java.awt.*;
    import java.awt.image.*;
    import java.io.FileInputStream;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    /** * LogoImage is a class that is used to load images into the program */
    public class LogoImage extends JPanel {
         private BufferedImage image;
         private int factor = 1; /** Creates a new instance of ImagePanel */
         public LogoImage() {
              this(new Dimension(600, 50));
         public LogoImage(Dimension sz) {
              //setBackground(Color.green);      
              setPreferredSize(sz);
         public void setImage(BufferedImage im) {
              image = im;
              if (im != null) {
                   setPreferredSize(
                        new Dimension(image.getWidth(), image.getHeight()));
              } else {
                   setPreferredSize(new Dimension(200, 200));
         public void setImageSizeFactor(int factor) {
              this.factor = factor;
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              //paint background 
              Graphics2D g2D = (Graphics2D) g;
              //Draw image at its natural size first. 
              if (image != null) {
                   g2D.drawImage(image, null, 0, 0);
         public static LogoImage createImage(String filename) { /* Stream the logo gif file into an image object */
              LogoImage logoImage = new LogoImage();
              BufferedImage image;
              try {
                   FileInputStream fileInput =
                        new FileInputStream("images/" + filename);
                   image = ImageIO.read(fileInput);
                   logoImage =
                        new LogoImage(
                             new Dimension(image.getWidth(), image.getHeight()));
                   fileInput.close();
                   logoImage.setImage(image);
              } catch (Exception e) {
                   System.err.println(e);
              return logoImage;
         public static void main(String[] args) {
              JFrame jf = new JFrame("testImage");
              Container cp = jf.getContentPane();
              cp.add(LogoImage.createImage("logo.gif"), BorderLayout.CENTER);
              jf.setVisible(true);
              jf.pack();
    }Now you can use this class anywhere in your pgram to add a JPanel

  • How fast is the new iPod Camera Connector

    I'm wondering how fast the new $29 Apple iPod Camera Connector is for offloading images from a fast CF card using a fast USB 2.0 card reader? (The older Belkin system for the regular iPods was too slow, in my opinion, to be usable for high capacity memory cards with lots of images.)
    If this new option from apple is fast, I'm going to buy an iPod photo right away!!!!!!!!!!!
    Thanks!

    Any chance that you can test with a card reader to see if that works? That is, can you plug an external card reader into the camera connector, remove the card from your camera and plug it in to the card reader, and transfer to the iPod that way? (This would allow one to not burn their camera battery while downloading the images, or to swap out cards and continue taking photos while the first card was dumped to the iPod.)
    The Coolpix 3200 is apparently not USB 2 / high-speed compliant, so especially cool would be if you could test with a camera or card reader (if that works at all) that supported USB 2, and report on the speed.
    (Yeah, I know I'm asking for a lot. Just in case you're able to check this out.)
    While we're at it - any other comments, pro or con, about the camera connector or experience so far?
    Thanks!
    -andrew

  • How convert an image into its RGB value

    i want to find out how to convert an image files such as .gif or .jpg into its RGB value so that i can find out how much amount of a particular colors contain in the image.

    Try this:
    public int countColors(String filename) throws IOException {
    BufferedImage image = ImageIO.read(new FileInputStream(filename));
    Set colors = new HashSet();
    int height = image.getHeight();
    int width = image.getWidth();
    for (int x = 0; x < width; x++) {
    for (int y = 0; y < height; y++) {
    colors.add(new Integer(image.getRGB(x, y)));
    return colors.size();

  • How to Call Image Viewer from Form application

    Hi,
    how to call Image viewer using host command on oracle form 6i.
    i trying using host command on local/client application .. and it is working ...
    but when i try on server application (EBS - UNIX) it does not working ...
    thanks ..
    regards,
    safar

    Are you using Forms 6i in client/server mode or web deployed? I'm not sure what you mean by 'try on server application"
    Remember that when using a web deployed architecture, a host command will execute the command on the Forms application server, NOT on the client.
    To execute host commands on the client you would have to use WebUtil, but that's not available for Forms 6i. Perhaps there are PJC's out there that can do it for you, but I don't want to get in all those details without me knowing if it is relevant for you.

  • How to use images from ADFLib

    Hello OTN,
    My application is devided into several ADFLibs, one of them is CommonUI. It includes common skin and it is imported into every application part.
    There are some images which should be available in different parts, so I decided to put them in CommonUI.
    After deploying adflibCommonUI adn refreshing Resource Palette, somehow I expected to see this image there, but it isn't.
    Could someone, please, explain me, how to use images contained in imported ADFLib, for example, as imageLink icon?
    Thanks.
    ADF 11.1.2.1

    Hi,
    images need to be saved in a specific file structure in the JAR file to be accessible. See:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/86-images-from-jar-427953.pdf
    Frank

  • How do you  "image correction" in PREVIEW in a macbook pro? I have an iBook G4 that gives it as an option in the tools drop down window.

    how do you  "image correction" in PREVIEW in a macbook pro? I have an iBook G4 that gives it as an option in the tools drop down window.

    From preview:
    Tools-> Adjust Color-> Auto Levels
    Or you can import the image into iPhoto:
    Edit-> Enhance

  • How to store image in the oracle database 10.2.

    Hi.,
    I am working on 10g ids. I have designed a form where there are two fields. Name and picture.
    I want to keep details of the person with their photo.
    I can simply put name but how to insert image in the picture field??
    can you suggest ??
    Thanks.
    Shyam

    Hi
    To store your binary images in an Oracle database, you will need to create a column in your table defined with the BLOB datatype BLOB stands for Binary Large Object. Images from scanners, mpeg files, movie files and so on can all be stored in the BLOB column
    sq>CREATE TABLE test_table (
       id NUMBER,
       image BLOB);then go to
    [http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10796/toc.htm]

  • How to insert image in forms?

    Hi Friends,
    I m new to Forms. plz tell me how to display image in canvas (form)?
    I m using Forms 6i.

    do you want to show a static image or an image from the database?
    If its a static image have at look at this Re: Oracle FORMS with image background, is that possible?
    If its a database image you should have a table with a blob-column. If you use the databalock wizard and include that column in the block, it will generate you an image-item which can then be shown in the layout.
    Edited by: Andreas Weiden on 25.11.2008 21:58

  • Hello, i am new to the mac and i need to learn how to re image using an external hard drive

    Hello, i am new, like baby fresh new,...lol, to the mac and i need to learn how to re-image using an external hard drive.

    How to replace or upgrade a drive in a laptop
    Step One: Repair the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Step Two: Remove the old drive and install the new drive.  Place the old drive in an external USB enclosure.  You can buy one at OWC who is also a good vendor for drives.
    Step Three: Boot from the external drive.  Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the external drive then click on the downward pointing arrow button.
    Step Four: New Hard Drive Preparation
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your new hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID  then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Step Five: Clone the old drive to the new drive
    1. Open Disk Utility from the Utilities folder.
    2. Select the destination volume from the left side list.
    3. Click on the Restore tab in the DU main window.
    4. Check the box labeled Erase destination.
    5. Select the destination volume from the left side list and drag it to the Destination entry field.
    6. Select the source volume from the left side list and drag it to the Source entry field.
    7. Double-check you got it right, then click on the Restore button.
    Destination means the new internal drive. Source means the old external drive.
    Step Six: Open the Startup Disk preferences and select the new internal volume.  Click on the Restart button.  You should boot from the new drive.  Eject the external drive and disconnect it from the computer.

  • How to include images in my app

    hi all.
    I'm using Apex 2.1 over XE.
    I'm sorry but i can't find any thread related to how to include images in my app.
    I've uploaded several trough shared componentes / files / images, but don't know how to use it, for example, in an HTML region, as header of the page.
    Thanks a lot for your help.
    Fernando

    Hi,
    I have used four different ways to display images in my applications depending on which method is the fastest to refresh.
    1. Under Application Attributes > Edit Standard Attributes > Substitutions enter your substitution string (MY_IMAGE_URL) and substitution value(http://somewhere/img)
    and then in the region or template use the following syntax &MY_IMAGE_URL. in your html tags eg. img src="&MY_IMAGE_URL./banner.png" width="x" height="x">)
    I have found this the best for image refresh speed, especially if the image is already cached.
    2. Load your image up into Apex and don't associate it with any application and use the following tag img src="#WORKSPACE_IMAGES#banner.png" width="x" height="x" alt="">
    Good for development as all images not associated to an application are available.
    3. Load your image up into Apex and associate it with an application and use the following tag img src="#APP_IMAGES#banner.png" width="x" height="x" alt="">
    This can be a pain during development when your application numbers continually change.
    4. Use standard http address <img src="http://somewhere/banner.png" width="x" height="x">
    Ben
    Message was edited by:
    Benton

  • How to export images in Acrobat Pro X v10.x for Mac?

    How to export images using Acrobat Pro X v10.1.1?
    This is a positive criticism: it was easy with Acrobat Pro X v.9.x. The new Acrobat interface without menus and submenus is awkward and utterly anti-intuitive. If it ain't broke don't fix it!!! Thanks.

    ==>  http://help.adobe.com/en_US/acrobat/pro/using/WS58a04a822e3e50102bd615109794195ff-7ee7.w.h tml

Maybe you are looking for

  • Error in requirement class while assigning service order type.

    Hello All, I am getting below error message whenever I am trying to assign a service order type to requirement class. This the error meassage: Maintenance order type ZSC3 is either not flagged as a service order type or revenue posting is allowed for

  • Creating a Snow Leopard Partition

    I do need to be able to access my old Palm desktop data files, files on my old Zip disks, + some old games and other apps that never made the intel transition and so I UNFORTUNATELY will be needing to create a 10GB or so SL partition. I have never do

  • DYNPRO_SEND_IN_BACKGROUND-screen ouput in RFC modules

    Dear All, For those who are hunting for ABAP runtime error - DYNPRO_SEND_IN_BACKGROUND when processing screen in RFC check this OSS SAP Note 673402 -Processing screen outputs in RFC modules. Just helped one of my friends in finding this note. So putt

  • Paypal Credit Card Integration

    After following through on the white paper for setting up paypal, I have been able to successfully got the Paypal integration to work. Now I am trying to accept credit card using the same app, but it does not seem to like it. Has anybody ran into thi

  • OS 9.2 to Tiger

    Hello, I am hoping to upgrade my OS 9 machine to Tiger as I no longer have use for 9. I have the option to purchase a Tiger install DVD which is black with a grey X part #2z691-5599-a. Is this DVD a full install which will support wiping my hard driv