I want resize the image and set position after retrieving from oracle datab

How can I display image on web page after retrieving it from oracle database. Display is not problem but resize that image and position is very dificult .Please send me Guideline about blob object todisplay and resize it in web pages

I tried to do the suggetion made by you but I was not able to solve the issue. I think I am close to it and with your help I should be able to resolve it. Let me explain you the brief about this issue.
1. Another group uses Oracle Apex to load the images in to the database.
2. I am fetching this data fron Oracle and displays in to Webpage using PHP.
This is so far I tried. Please bear with me if I am doing anything wrong.
1.I created program.php which calls the <IMG> as suggested by you.Snippet of the code is
<div><img src="/oracle/image_story.php" alt="Image Stories" width="900" height="500" /></div>
2. In the image_story.php, I used the following code.
<?php
$query = "SELECT *
          FROM IMAGE_STORY WHERE image_id = 50";
if ($result = run_oracle($query, 'select')) { // Run the query.
     $num_results = count($result);
     if ($num_results > 0) {
     foreach($result as $row){
          $img = $row['DOCUMT']->load();
          header("Content-type: image/pjpeg");
          echo $img;
          //echo '<div><img src="'.$img.'" alt="Image Stories" width="900" height="500" /></div>';
?>
When I run the program.php,Image is not displayed and it is showing as "X". To troubleshoot the issue,I run the image_story.php and echo $img is giving me the weird character like,
"ÿØÿàJFIFddÿìDuckyPÿîAdobedÀÿÛ„          
I used PL/SQL developer as a client to access the BLOB field from the database and in the HTML view, it is giving me the same output.
Select * from image_story a where a.image_id = 50
I am not sure the issue is with the MIME-TYPE,ENCODING or I am missing something here. I tried lot of Content-Type.
Please guide me.

Similar Messages

  • How to onclick an image to get the image and change position?

    Hello,
    I'm trying to write a small card game for school project and I need help on this one thing. I woud like the user click on a card (image) get the image name and value and then change position by moving it up a little (a way of saying the user selected the card). Any idea?

    Lookup the UINavigationItem class. I think you'll need to replace the titleView with your own custom view that includes text and image. You can access this from the UIViewController: self.navigationItem.titleView.
    HTH,
    - Ryan

  • Photoshop CC: Have a template that I moved image into.  Image is too small.  How do I resize the image while in the template?  Or must I go to original image file and resize there again and again until I get the right fit?

    I have a template that I am able to plug different pictures into at different times.  The problem is that when I plug an image into that template, I find that the image is either too big or too small.  Is there a way to plug the image into the template and resize the image (and not the template itself) OR will I have to go to the file with the original image and resize it there and then try to plug it in to the template to see if it fits------and if it does not fit, go back to the original file with the image and resize it again and see if that fits---and so on and so on...........?  I have tried the" image size" option but it's hit or miss------mostly miss!
    Thanks!

    Read up on Smart Objects. It looks like you have no idea as to how to create and use them.
    Jut create a Smart Object from the layer containing whatever it image it is that you are "plugging into your template".  But you do need to learn the application at its most basic levels.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.  You cannot learn Photoshop in a forum, one question at a time.
    Or is it possible that you don't even have Photoshop proper but the stripped-down Photoshop Elements?"
    If the latter is the case, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you would want if you're working in Elements.:
    https://forums.adobe.com/community/photoshop_elements/content
    If you do have Photoshop proper, please provide the exact version number of that application and of your OS.
    (edited for clarification)

  • Using Javascript & Actions to resize an image and add the filename as text

    Hello,
    I am currently working on a way to take an image, resize it and add exactly what is in it's file name (before extension) as a text layer. I have succeded in this BUT am having issues with file names that require more than one line of text.
    I need the text to align to the bottom of the image & the script or action must then resize the image so that the text does not overlap.
    Any ideas on how this can be done?
    At the moment I am using:
    -"Fit Image.jsx" to resize my image to a specific size (This was included in the Photoshop CS5 scripts)
    - A script to add the file name without extension and place the file name at a specific position.
    AdFileName.jsx
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PIXELS;
    try
      var docRef = activeDocument;
      // Now create a text layer at the front
      var myLayerRef = docRef.artLayers.add();
      myLayerRef.kind = LayerKind.TEXT;
      myLayerRef.name = "Filename";
      var myTextRef = myLayerRef.textItem;
      // strip the extension off
      var fileNameNoExtension = docRef.name;
      fileNameNoExtension = fileNameNoExtension.split( "." );
      if ( fileNameNoExtension.length > 1 ) {
       fileNameNoExtension.length--;
      fileNameNoExtension = fileNameNoExtension.join(".");
      myTextRef.contents = fileNameNoExtension;
      // off set the text to be in the middle
      myTextRef.position = new Array( docRef.width / 2, docRef.height / 2 );
      myTextRef.size = 12;
            myTextRef.font="Arial-BoldMT"
            //set position of text
            myTextRef.justification = Justification.CENTER;
            myTextRef.kind = TextType.PARAGRAPHTEXT;
            myTextRef.width= docRef.width;
            myTextRef.height= docRef.height/ 2;
            myTextRef.position= [0, docRef.height * 0.88];
    catch( e )
      // An error occurred. Restore ruler units, then propagate the error back
      // to the user
      preferences.rulerUnits = originalRulerUnits;
      throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );
    Can the position be changed to allow more rows of text but keep it aligned with the bottom of the layer?
    How can I script in a way to make the image resize based on the amount of text lines?
    Any help would be greatly appreciated.

    You can add a text layer any where the only thing you need to worry about is the size of the font you use.  You can normally calculate a font size by saving the images resoltuion and then setting its resolution to 72 DPI calculate a font size basied of the images pixel width and the number of characters you want in a line. After adding the text layer you can restore the image to its original resolution and align the text layer by making a selection and alignint the text layer to the selection.  There are nine posibilites like the positions in the selection you can align to like a tick tack toe board. You need to use a script to add the text layer because your retrieving the filename.  The positioning of the text layer could be done easily in an action the would use the scriot to add a text layer the do a select all  the align the added text layer to the selection.
    About your script don't make text paragraph just add new line characters to make a multi line text layer So it can be positioned easily
    I do just that with my stampexif action.  The action uses my stampexif Photoshop java script to add a multi line text layer containing some formatted EXIF data then the action centers the text layer and add a layer style to it. Link http://www.mouseprints.net/old/dpr/StampExif.jsx Example

  • Why can't I just right click on the thumbnails and set the websites I want?

    I love the thumbnail idea, but why can't I just right click on the thumbnails and set the websites I want?
    Why do i have to wait for a recent one to come up?
    Of the 9 available, I would like to set 6 to website i can input by right clicking it and leave the rest for the recently visited.
    I ho[e you include that feature in your next update.
    Thank you
    P.S. 2 more issues
    1. Firefox is the only browser that always give me trouble attaching files in gmail. I still use firefox for all browsing but for mail attachments, I use others. And yes, I have done the "Clear cookies, reset, reinstall, clear cache, etc etc etc... none worked for more than a few days. no such problem with other browsers.
    2. Your new updated search bar (Top right hand corner) is nice but can be very irritating for the following reason:
    I like to highlight - copy (a word or phrase) - and paste it in the search bar. was fine with the older version, but now as soon as I right click to past, the menu pops up for me to select a search engine. Very irritating since I have yet to paste the copied word or phrase. I rather paste it and then have the option to click on the drop down menu. If you see this as not something masses would want, please place an option in setting for us to stop the suggestion for search engines coming up automatically when we try to right click in the side search bar to paste.

    You can change the order of the boxes on the about:newtab page and drag an item to a different tile to pin it to that position or you can remove a website by clicking the close X to block that URL.
    You can drag a bookmark or history item and drop them in a tile on the about:newtab page to pin them and have your own favorites sites showing.
    Changes made manually on the about:newtab page are stored in prefs that you can find on the about:config page.
    *browser.newtabpage.pinned stores websites that you have pinned to a tile.
    *browser.newtabpage.blocked stores websites that you have removed by clicking the X button in a tile.
    So you can reset those prefs via the right-click context menu to reset changes made to the about:newtab page.
    *http://kb.mozillazine.org/about:config

  • Guys, i want to ask on how to resize the images into 1200 pixels wide?

    Guys, i want to ask on how to resize the images into 1200 pixels wide, how to do it? and what are the step by steps on doing that? thank you!!!

    See this link: http://forums.adobe.com/docs/DOC-3691

  • JPEG/PSD issue--I open a jpeg and edit it (levels, crop) and then "save as" and the save as option shows there are now levels in the image and it wants to save it as a .psd file or a copy with layers.  What am I doing that has these settings appear?

    JPEG/PSD issue--I open a jpeg and edit it (levels, crop) and then "save as" and the save as option shows there are now levels in the image and it wants to save it as a .psd file or a copy with layers.  What am I doing that has these settings appear?

    16bit? Pixels extending beyond the canvas? (from a crop with delete unused pixels turn off).  Have you previously been saving PSD files?
    IME you sometimes have to tell Photoshop that the first save of a session is JPG, and it remembers from there on.  The way to 'tell' Photoshop that JPG, or PDF, or PNG etc are now your preferred format is to Ctrl (Cmd) click on that format in the Save As drop down list.  So long as the file does not have parameters that your chosen format does not support, then this should work for you.
    [EDIT]  Just noticed that you did include 'Crop' in the subject line.  Do you have 'Delete cropped pixels' checked?

  • HT4946 i got my new iPhone 5 and i connected it to my iTunes on mac and it ask me if i want to setup as new iPhone or restore backup and i restore back up but now i want to delete backup and set up as new iPhone, is the anyhow?

    i got my new iPhone 5 and i connected it to my iTunes on mac and it ask me if i want to setup as new iPhone or restore backup and i restore back up but now i want to delete backup and set up as new iPhone, is the anyhow?

    The iCloud backup includes most things except non-iTunes purchased but the iTunes backup does not include those either. For what iCloud includes see:
    iCloud: iCloud storage and backup overview

  • I want to switch dashboard and desktop positions when I touch the trackpad by 3 fingers and go up. Is there anyway to do that?

    I want to switch dashboard and desktop positions when I touch the trackpad by 3 fingers and go up. Is there anyway to do that?
    I tried to drag and drop but unfortunately that didn't work as well.
    I am using mac pro without retina.

        Ambersikes17, we don't want you to cancel your service. Let's get your phone working properly. Are you using the original charger that came with the phone? If so, does it the phone respond to the charger if it is positioned in a different manner?
    Have you noticed if the freezing occurs with certain actions like messaging or using an application? Are these issues that you have had with all of the devices or just your current phone? Have you tried using your phone in Safe Mode? http://vz.to/1d0SZSq
    AndreaS_VZW
    Follow us on Twitter @VZWSupport

  • I updated to Photoshop cc 2014 and now can't resize the images like I used to.

    I updated to Photoshop cc 2014 and now can't resize the images like I used to. 
    I used to click on the image and then go to the corner hold down shift and resize it.  Now it won't do it.
    How do I do it now? 
    I have a project deadline and need to do this asap.  Panicking that I won't meet my deadline.

    Did you turn off the "show transform controls" option in the move tool?
    It sounds like you were using that previously.
    And you can always transform by using the Free Transform command (command/control T).

  • How do I fix the timeline so both the images and the timeline are 1080p?

    Hello everybody. I'm a relative newbie to FCP, but not totally new to the world of video editing. I've got a problem that I hope somebody out there can assist me with.
    I've shot a lot of footage in HD (1080p) and have imported everything into a timeline. I've performed all my edits, transitions, music integration etc - now when I go to output the footage I realise I've made the mistake of doing everything in a 576p timeline.
    I've figured out how to resize the timeline, but all the clips appear in their original 576p resolution in the middle of the canvas (ie huge bars around the image)..
    My question is simple enough.. How do I fix the timeline so both the images and the timeline are 1080p? Is there a method to 'resize' all the clips to the new timeline? Will this resize the 576p clips or will they still be native 1080p?
    If importing all those clips into the original timeline has destroyed pixels, then resizing to 1080p is definately not what I want to do. I want to retain all the resolution of the original clips.
    Any advice would be very much appreciated. I've created nearly 300 edits in this timeline, not including all the effects and transitions. If I have to redo all this because I set up the timeline incorrectly I'm going to be rather upset!
    Thanks everybody.

    If you captured the footage as 1080 then the fastest way to re-size all the clips back to 1080 is to select all the clips on the time line and then in the menu bar go to Edit -> Remove Attributes. This will pop up window asking which attributes you want to remove. I would try checking the Basic Motion and Distort attributes and click OK. This should pop everything back to their original size and shape.
    However, this will also remove any re-sizing or distortion that is intentional (ie to blow up a particular clip so you can focus on something).

  • Resizing the images

    hi,
    i want to resize and centering external images.
    i have done with centering the images.
    but how to do resizing.....here is my code....
    // code for centering images starts
    //Define center coordinates
    var centerX:Number = _root.emptymc_mc.imagemc_mc._width / 2;
    var centerY:Number = _root.emptymc_mc.imagemc_mc._height / 2;
    var movieClipLoader:MovieClipLoader = new MovieClipLoader();
    var loaderListener:Object = new Object();
    //Use the onLoadInit function to get the loaded images
    proportions
    loaderListener.onLoadInit = function(target:MovieClip) {
    trace(target._width + " x " + target._height)
    target._parent._x = centerX - target._width / 2;
    target._parent._y = centerY - target._height / 2;
    // end resizing and centerring code
    // now loading images into movie clip loader
    movieClipLoader.addListener(loaderListener);
    var movieClipHolder:MovieClip =
    _root.emptymc_mc.imagemc_mc.createEmptyMovieClip(" container",
    getNextHighestDepth());
    var movieClipLoaderTarget:MovieClip =
    movieClipHolder.createEmptyMovieClip("loader", 1);
    //Load an image to the target
    movieClipLoader.loadClip(_parent._parent.thumbs.fi
    rstChild.childNodes[2].childNodes
    .childNodes[0].nodeValue, movieClipLoaderTarget);
    // end
    now how to resize the images???

    Thanks for the reply...
    now its resizing and centering the images well but not
    according to the aspect ratio.
    see... i have one mc called imagemc_mc in which i want to
    load the images.
    so first i grab the width and height of the imagemc_mc in a
    varibale.
    var imgwidth = _root.emptymc_mc.imagemc_mc._width;
    var imgheight = _root.emptymc_mc.imagemc_mc._height;
    and then in onLoadInit() method first its check the width and
    height of the target and is it is greater than imagemc_mc then it
    resize the image to the imagemc_mc 's width and height.
    if(target._width > imgwidth && target._height >
    imgheight)
    target._width = imgwidth;
    target._height = imgheight;
    else
    target._parent._x = centerX - target._width / 2;
    target._parent._y = centerY - target._height / 2;
    target._parent._x = centerX - target._width / 2;
    target._parent._y = centerY - target._height / 2;
    its working ....but if image is greater than imagemc_mc then
    the image is squeezing ....it is not according to the aspect ratio.
    please reply..............
    thanks a looooooooot

  • Resizing an image and displaying

    hi all,
    i am new to graphics,
    i want to resize the image (say w=300,h=300) before displaying to panel,
    i tried in the following code but no help? is this current way?
    in imagepanel class i am calling *"resize(image,300,300)"*. i don't know is that current way of doing, please help me to solve this problem or give any suggestion.
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import javax.imageio.ImageIO;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class drawImage extends JFrame {
        BufferedImage orignalImage = null;
        public drawImage() {
            try {
                orignalImage = ImageIO.read(new File("C:\\Documents and Settings\\Shafi\\Desktop\\daya\\ballot\\01000361FU-0003V01.jpg"));
            } catch (Exception e) {
                e.printStackTrace();
            imagepanel imp = new imagepanel(orignalImage, 5, 5);
            //imp.resize(imp, 200,200);
            getContentPane().add(imp);
            pack();
            setVisible(true);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
        public static void main(String[] arg) {
            new drawImage();
    class imagepanel extends JPanel {
        private BufferedImage image;
        int x;
        int y;
        public imagepanel(BufferedImage image, int x, int y) {
            super();
            this.image = image;
            this.x = x;
            this.y = y;
            image = resize(image,300,300);
            setPreferredSize(new Dimension(image.getWidth(), image.getHeight()));
       public BufferedImage resize(BufferedImage img, int newW, int newH) { 
            int w = img.getWidth(); 
                int h = img.getHeight(); 
                BufferedImage  dimg = new BufferedImage(newW, newH, img.getType()); 
                Graphics2D g = dimg.createGraphics(); 
                g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); 
                g.drawImage(img, 0, 0, newW, newH, 0, 0, w, h, null); 
                g.dispose(); 
                return dimg; 
        @Override
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.drawImage(image, x, y, null);
    }thanks
    dayananda b v

    Hey friend try this out.
    public static boolean createThumbnail(String selectedCategoryName, String imagePath, String imageName){
    //imagePath=full image path
    //imageName=name of the image(Eg:input.jpg)
    try {
    int thumbHeight=100;
    int thumbWidth =100;
    Image image = Toolkit.getDefaultToolkit().getImage(imagePath+"/"+imageName);
    MediaTracker mediaTracker = new MediaTracker(new Container());
    mediaTracker.addImage(image, 0);
    mediaTracker.waitForID(0);
    double thumbRatio = (double)thumbWidth / (double)thumbHeight;
    if(thumbRatio < 1){
    thumbRatio = (double)thumbHeight / (double)thumbWidth;
    int imageWidth = image.getWidth(null);
    int imageHeight = image.getHeight(null);
    int temp=0;
    if(thumbHeight <= imageHeight || thumbWidth <= imageWidth){
    double imageRatio = (double)imageWidth / (double)imageHeight;
    if (thumbRatio < imageRatio) {
    thumbHeight = (int)(thumbWidth / imageRatio);
    } else {
    thumbWidth = (int)(thumbHeight * imageRatio);
    }else if(thumbHeight > imageHeight && thumbWidth > imageWidth){
    thumbWidth = imageWidth + 5;
    thumbHeight = imageHeight + 5;
    // draw original image to thumbnail image object and
    // scale it to the new size on-the-fly
    BufferedImage thumbImage = new BufferedImage(thumbWidth,
    thumbHeight, BufferedImage.TYPE_INT_RGB);
    Graphics2D graphics2D = thumbImage.createGraphics();
    graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
    RenderingHints.VALUE_INTERPOLATION_BILINEAR);
    graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);
    // save thumbnail image to OUTFILE
    BufferedOutputStream out = null;
    out = new BufferedOutputStream(new
    FileOutputStream(imagePath+"/preview_"+ imageName));
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    JPEGEncodeParam param = encoder.
    getDefaultJPEGEncodeParam(thumbImage);
    int quality = 100;//Integer.parseInt(args[4]);
    quality = Math.max(0, Math.min(quality, 100));
    param.setQuality((float)quality / 100.0f, false);
    encoder.setJPEGEncodeParam(param);
    encoder.encode(thumbImage);
    image.flush();
    thumbImage.flush();
    out.flush();
    out.close();
    mediaTracker.removeImage(image);
    mediaTracker = null;
    thumbImage = null;
    image = null;
    encoder = null;
    graphics2D = null;
    System.out.println("Successfully Created Thumbnail.");
    return true;
    } catch (IOException ioe){
    System.out.println("IO Error in writing the thumbnail:"+ ioe.getMessage());
    return false;
    } catch (Exception e){
    System.out.println("Error in writing the thumbnail:"+ e.getMessage());
    return false;
    Regards..

  • Capture the x and y position of a rectangle

    Hi,
    I'm working on a letting a user draw a rectangle to define a position on the stage. Te rectangle draws out ok. My problem is that I need to convert this dimensions and position of the rectangle in dynamic text. Plus, I need to make a way for the user to save these values into a text file.
    Right now, I am able to capture the width and height, however, I can't seem to capture the x and y coordinates of the rectangle. I'd like to get the position of the top left corner if possible.
    Here is what I have so far-
    //Draws the final rectangle and logs the size and position
    var hasRect: Boolean = false;
    var rectHeight: Number;
    var rectWidth: Number;
    var rectXPos: Number;
    var rectYPos: Number;
    imprintHeightLabel.text = "Imprint Height: 0";
    imprintWidthLabel.text = "Imprint Width: 0";
    imprintXPosLabel.text = "Imprint X Position: 0";
    imprintYPosLabel.text = "Imprint Y Position: 0";
    function mUp(MouseEvent):void
    mouseHolding = false;
        if(hasRect == false)
        myDrawing.graphics.lineStyle(2, 0xFF0000, 1);
        myDrawing.graphics.beginFill(0xFF0000, 0.2);
        myDrawing.graphics.drawRect(clickedX, clickedY, mouseX-clickedX, mouseY-clickedY);
        myDrawing.graphics.endFill();
        hasRect = true;
        clearTemp();
        rectHeight = myDrawing.height;
        rectWidth = myDrawing.width;
        rectYPos = myDrawing.y;
        rectXPos = myDrawing.x;
        if(hasRect == true)
            imprintHeightLabel.text = "Imprint Height: " + rectHeight;
            imprintWidthLabel.text = "Imprint Width: " + rectWidth;
            imprintXPosLabel.text = "Imprint X Position: " + rectXPos;
            imprintYPosLabel.text = "Imprint Y Position: " + rectYPos;
        else
            imprintHeightLabel.text = "Imprint Height: 0";
            imprintWidthLabel.text = "Imprint Width: 0";
            imprintXPosLabel.text = "Imprint X Position: 0";
            imprintYPosLabel.text = "Imprint Y Position: 0";

    Here is what I did to get the top left corner. Now, I am trying to populate that value of the x position into a number stepper and then allow adjustments, but it's not working. I've managed to stave off the IO errors I was receiving, though.
    What I want to do is let the user draw a rectangle. Then find the x and y position of the top left cornder of the rectangle along with the rectangle's height and width. These 4 values are updating in dynamic text fields. All of this works now.
    However, I want to make it so the user can see the values update in numeric steppers and allow the user to use the numeric steppers to make tweaks. Eventually I want the user to select and place the rectangle too.
    Here is what I have so far. The numeric stepper sets to it's default value in the variable, but that's all I've got so far.
    import flash.display.Sprite;
    import fl.controls.NumericStepper;
    //Draws a transluscent rectangle
    var temporaryDrawing:Shape = new Shape();
    addChild(temporaryDrawing);
    temporaryDrawing.graphics.lineStyle(2, 0x666666, 1);
    var myDrawing:Shape = new Shape();
    addChild(myDrawing);
    myDrawing.graphics.lineStyle(2, 0xFF0000, 1);
    var mouseHolding:Boolean = false;
    var clickedX:Number;
    var clickedY:Number;
    stage.addEventListener(MouseEvent.MOUSE_DOWN, mDown);
    stage.addEventListener(MouseEvent.MOUSE_UP, mUp);
    var clickDownY:Number = new Number;
    var clickDownX:Number = new Number;
    function mDown(e:MouseEvent):void
    var tempDownX:Number = new Number;
    var tempDownY:Number = new Number;
         tempDownX = e.stageX;
         tempDownY = e.stageY;
         clickDownY = tempDownY;
         clickDownX = tempDownX;
        myDrawing.graphics.clear();
        hasRect = false;
        mouseHolding = true;
        clickedX = mouseX;
        clickedY = mouseY;
    //Draws the final rectangle and logs the size and position
    var hasRect: Boolean = false;
    var rectHeight: Number;
    var rectWidth: Number;
    var rectXPos: Number;
    var rectYPos: Number;
    imprintHeightLabel.text = "Imprint Height: 0";
    imprintWidthLabel.text = "Imprint Width: 0";
    imprintXPosLabel.text = "Imprint X Position: 0";
    imprintYPosLabel.text = "Imprint Y Position: 0";
    var clickUpX: Number = new Number;
    var clickUpY: Number = new Number;
    var absYPos: Number = new Number;
    var absXPos: Number = new Number;
    function mUp(e:MouseEvent):void
         var tempUpX:Number  = new Number;
            var tempUpY:Number = new Number;
         tempUpX = e.stageX;
         tempUpY = e.stageY;
         clickUpY = tempUpY;
         clickUpX = tempUpX;
        mouseHolding = false;
        //compares the mouse_down and mouse_up to see which one creates the top left corner position
        if(hasRect == false)
            myDrawing.graphics.lineStyle(2, 0xFF0000, 1);
            myDrawing.graphics.beginFill(0xFF0000, 0.2);
            myDrawing.graphics.drawRect(clickedX, clickedY, mouseX-clickedX, mouseY-clickedY);
            myDrawing.graphics.endFill();
            hasRect = true;
            clearTemp();
                //Comparison Determines if the "ClickUp or ClickDown is at the top left corner
                if(clickDownY < clickUpY)
                    absYPos = clickDownY;
                else if (clickDownY > clickUpY)
                    absYPos = clickUpY;
                if(clickDownX < clickUpX)
                    absXPos = clickDownX;
                else if (clickDownX > clickUpX)
                    absXPos = clickUpX;
                rectHeight = myDrawing.height;
                rectWidth = myDrawing.width;
                rectYPos = absYPos;
                rectXPos = absYPos;
                if(hasRect == true)
                    imprintHeightLabel.text = "Imprint Height: " + rectHeight;
                    imprintWidthLabel.text = "Imprint Width: " + rectWidth;
                    imprintXPosLabel.text = "Imprint X Position: " + absXPos;
                    imprintYPosLabel.text = "Imprint Y Position: " + absYPos;
                else
                    imprintHeightLabel.text = "Imprint Height: 0";
                    imprintWidthLabel.text = "Imprint Width: 0";
                    imprintXPosLabel.text = "Imprint X Position: 0";
                    imprintYPosLabel.text = "Imprint Y Position: 0";
    stage.addEventListener(MouseEvent.MOUSE_MOVE, mMove);
    function mMove(MouseEvent):void
        if (mouseHolding)
            if(hasRect == false)
            clearTemp();
            temporaryDrawing.graphics.drawRect(clickedX, clickedY, mouseX-clickedX, mouseY-clickedY);
    function clearTemp():void
        temporaryDrawing.graphics.clear();
        temporaryDrawing.graphics.lineStyle(2, 0x666666, 1);
    xPosAdj.addEventListener(Event.CHANGE, adjustXPosition);
    var stepperValue: Number = new Number;
    function adjustXPosition(Evt:Event):void
        stepperValue = xPosAdj.value;
        if (hasRect == true)
            stepperValue = rectXPos;
        else
            stepperValue = 0;

  • How can I save the images and movies on a  external Disk from iphoto program, to protect the images when problems occur in the laptop,

    How can I save the images and movies on a  external Disk from iphoto program, to protect the images when problems occur in the laptop,

    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store
    If you want to back up the Photos only:
    Export them using the File -> Export command.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

Maybe you are looking for