Using an accelerometer to move an image

Okay, I'm trying to use an accelerometer to track a user's hand movements when holding a mobile device in order to stabilise the on screen image. Essentially, when the device moves, the image on screen moves in such a way that it doesn't seem like it's moved quite as much, making it easier to read. (I know, this won't actually make it easier to read, but it's for a project, so I'm just going to roll with it)
Now I've seen examples of Java 2D being used to translate shapes around a screen, and I figured this API is the right choice. Anyway, I was hoping you guys could point me in the right direction of where to go with this; any help would be appreciated.
Thanks!

I believe if you took out the onClipEvent (load) and the
onClipEvent (enterFrame), it should run automatically the way you
want. You may want to play around with that.

Similar Messages

  • Using the content aware move tool, I want to move an item from one image to another image but it does not seem to work. I think I need two layers on one document so how do I do this

    Using the content aware move tool, I want to move an item from one image to another image but it does not seem to work. I think I need two layers on one document so how do I do this

    Good day!
    A simple Paste does not work for you?
    It should place the clipboard content as a new Layer which you can then move around.
    If there is any chance that the elements need to be scaled, rotated etc. I would prefer to place them as Smart Objects (File > Place …) and do the masking that is specific to the images themselves in those.
    Regards,
    Pfaffenbichler

  • Trouble using Finder window to look at image/movie files

    I know I'm doing something wrong...
    I'm using the Finder to look at image and movie files
    If the files sit in a folder that is a few layers deep, then it's really frustrating to look at
    The space for the icons are all small
    I have to maxmise just to look at properly
    It's super frustrating
    Am I doing something wrong?
    Thanks
    Omar

    Hey Omar,
    I was able to find a couple of tips that should make your Finder experience better. First off, I'd check out the following article that goes over the different viewing options in Finder:
    OS X Lion: Choose options for viewing items in Finder windows
    http://support.apple.com/kb/PH3919
    If you're having trouble seeing the details of the icon because they're too small, choose View > Show View Options, and then try adjusting the sliders for "icon size." You might also want to try using the Cover Flow view option. With it you can easily see live previews of images, documents and movies, and can thumb through them quickly.
    I'd also look over the general Finder article that goes over some tips for usage:
    Mac Basics: The Finder
    http://support.apple.com/kb/ht2470
    Cheers,
    David

  • Hello, I'm using Photoshop elements 11 on a mac, I've just updated my mac to OS X Yosemite and now when I try to move an image it just springs back to where it started from!

    Hello, I'm using Photoshop elements 11 on a mac, I've just updated my mac to OS X Yosemite and now when I try to move an image it just springs back to where it started from!
    any ideas on how to fix this?

    Photoshop Elements doesn't respond when you use editing tools in Mac OS X 10.10

  • I am running Elements 11 on Windows 8.  When I use the healing tool, the entire image moves with the cursor.  How do I fix???  Thanks!

    I am running Elements 11 on Windows 8.  When I use the healing tool, the entire image moves with the cursor.  How do I fix???  Thanks!

    With the Healing Brush Tool selected, in the Tool Options, click on Clone Overlay and check Clipped.

  • Cannot move an image using mouse (was: Hi;)

    I m trying to move a image via mouse.
    But i cant move that image.
    I wrote this;
    this.onMove(e.pageX, e.pageY);
    and took mouse position but i cant find how can i move image with X and Y coordinats.
    Can you help me pls

    Hi im using this code
    >>MySymbol.click<<
    sym.$('MySymbol').offset({
        left: 50,
        top: 20
    but it doesnt change anything. Can you help me plss

  • When I use a tool on an enlarged image the image freezes and I can't get it to move unless I change tools. I tried resetting tools and uninstalling and reloading CC. What should I do?

    When I use a tool on an enlarged image the image freezes and I can't get it to move unless I change tools. I tried resetting tools and uninstalling and reloading CC. What should I do?  Once any tool is used I can't change its size or move the image.

    Howdy,
    Sorry for the lack of info. It is Adobe Photoshop CC, I have been using
    CS5 and am trying the trial version of CC to see if it worth changing
    to. Any tool works once but freezes the tool sizing and image movement.
    I am also using the Beta version of Mac Yosemite. But the CS5 version is
    working fine.
    Hasta,
    Bob McCaw

  • I am trying to connect a Macbook Pro to a projector for a Powerpoint presentation. When I use a VGA cable, the color of the projected images are not good. When I use a USB cable, the projected image includes the presenter notes on my computer screen?

    I am trying to connect a Macbook Pro to a projector for a Powerpoint presentation. When I use a VGA cable, the color of the projected images are not good. When I use a USB cable, the projected image includes the presenter notes on my computer screen?

    To move an iPhoto Library to a new machine:
    Link the two Macs together: there are several ways to do this: Wireless Network,Firewire Target Disk Mode, Ethernet, or even just copy the Library to an external HD and then on to the new machine...
    But however you do choose to link the two machines...
    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    and select the Library that you moved.  That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.
    Your first option didn't work because you imported one Library to another. Every version and thumbnail is imported like a distinct photo, you lose all your Albums, Keywords etc., the link between Original and Previews is destroyed, the non-destructive editing feature is ruined and so on. In summary: it's mess.
    Your second option didn't work because you simply referenced her library on the old machine.
    Regards
    TD

  • How can I move an image/file around inside a document with text already in it?

    I'm learning In Design on the job, and it's a real challenge.  One big problem I'm having is, after I've placed an image inside a document with text in it, how do I place it precisely where I want it?  Sometimes I need the image flush to the left, and sometimes I need to center it.  When I place it, it doesn't land where I need it to be.  Things I've tried work sometimes but not other times.  I've tried going to Paragraph and reducing the setting to zero to move an image flush to the left of the text frame/column (I'm working with a three-column page).  Sometimes that works, and sometimes it does not.  When it doesn't, I've tried using the Selection tool to drag the image, but it doesn't respond.  Could someone give me an idea of what I'm overlooking?  I'm finding that InDesign has many settings, and all it takes is for one setting to be what it shouldn't be for things to go badly wrong.  I'm having other issues too, but in this discussion I'll stick to this.

    Sounds like you are anchoring the images in the text flow. That's fine if you need them to move along with text during editing, but is usually not required and often counter productive. If you place your images as separate objects in their own independent frames they can be positioned anywhere and moved at will. If they need to be anchored, consider using Custom Positioned instead of inline.

  • What is the Best Way To Move Lightroom Images from Drive "D" to Drive "C"

    I just built a new computer, I had all light room images in my drive "D".
    On my new computer I have one large drive, and I want to move everything to the "C" Drive
    and use 'RAID 1" to back up the whole system.
    So,, How do I move the images over and keep everything intact?
    Thanks,
    Steve

    On Thu, Sep 24, 2009 at 3:20 PM, steve-hall <[email protected]> said:
    >
    I just built a new computer, I had all light room images in my drive "D".
    On my new computer I have one large drive, and I want to move everything to the "C" Drive
    and use 'RAID 1" to back up the whole system.
    Well, RAID-1 isn't quite the same as a backup, but it is close.
    Personally I would (and do) have my C: drive just be for the OS. And
    my pictures/catalogs are on separate RAID-1 drive(s).
    So,, How do I move the images over and keep everything intact?
    Depends. If you start LR, and open your old catalog, all your photos
    will be missing (have the "?" on them, since the location changed).
    You'd have to right-click on the "?", and "Locate" the files, in their
    new location.

  • Cannot move some images in iPhoto to desktop

    I cannot move an image from iPhoto to my desktop.  Also, when I click on the image in iPhoto to enlarge it, I get an exclamation point.  When the image is small size in iphoto, I can see it.  But if I click on it to enlarge it in iphoto, I get the exclamation point.  Don't know why this is happening?  I have Iphoto 09, version 8.1.2 (424)  My goal:  Be able to move any image in iphoto to my desktop and not get the exclamation point anymore.
    Message was edited by: rjduffy61

    The ! turns up when iPhoto loses the link to the original image - and that's why you can move it to the desktop.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • How to move referenced images to a new Hard Drive

    All my Aperture referenced images (about 80.000) are stored at a 300gb firewire HD. That's not enough and I plan to move all my photos to a new HD, 1Tb probably.
    I understand that I can't move the images directly from one drive to another. So what's the easiest and painless way to upgrade and still maintain the integrity of Aperture Library ?

    {quote:title=Bauhausler wrote:}I understand that I can't move the images directly from one drive to another.{quote}
    Well, that's exactly what you can (and should) do. Then use the "Manage Referenced Files..." command.
    Take a look at my answers in this recent thread:
    http://discussions.apple.com/thread.jspa?threadID=1721897
    Regards
    Paul K

  • Move an image in a mask in Keynote '09

    Is it possible to move an image with in a mask using the build in or the action effect? I want the photo to slowly scale up but stay inside the mask.

    Unfortunately, masks are considered part of the image for builds and actions. You would have to construct a graphic with an appropriate "hole" (an old-school mask).

  • Applescript Quicktime export movie to image sequence

    I am having troubles with Quicktime 7.1 and Tiger using Applescript.
    Ultimately I want to export a movie as image sequence as tiff at a certain fps.
    I've downloaded the Applescript/Quicktime script collection. When I try to run the "Export to DV Stream.scpt" script, it gives me "an unknown error occurred"
    Looking at the event log, the problem with their file is on the line
    "export movie 1 to new_file as DV stream using settings preset "NTSC 44.1 kHz"
    If I truncate the options at the end to say "export movie 1 to new_file as DV stream"
    it works fine, but then I can't select presets.
    I don't want to export as DV, rather as image sequence, I thought I could just modify script to read
    export movie 1 to new_file as image sequence using settings {Format:"TIFF", fps:15}
    It compiles fine, but saves images as .png at 30 fps,
    I've studied the dictionary, but didn't get anywhere.
    Thanks in advance
    Kevin
    Dual 1 ghz G4, mac mini, 15" Powerbook, intelimac   Mac OS X (10.4.6)  

    Something definitely got hosed in QT 7.1's scriptable interface. A script I had running perfectly in 7 broke on 7.1. I basically just shuffled objects and commands around like you did until I it finally worked. :/ If you have a copy of the last version handy (perhaps on one of your other macs) then I suggest loading and using that for now.
    Edit: Oh yeah, and you can't specify settings the way you have it as a record ({Format:"TIFF", fps:15}) even though that compiles, the dictionary states that the 'using settings' parameter is a file containing settings. You would create such a settings file using another script with the 'save export settings' command (note this only saves the most recently successfully manually-attempted export settings)

  • Using a small quicktime movie as a button (a hyperlink)?

    Could anyone tell me if I could use a small quicktime movie as a button? iWeb seems to not let simply select the hyperlink checkbox for a quicktime movie. I would like to be able to allow my site visitor to click on an animating image (I exported from keynote) to take them to a different page.

    Insert a Shape and re-size & position it to cover the movie. In the Inspector > Graphic tab, set the Opacity of the Shape to 0%. Then hyperlink that transparent Shape.

Maybe you are looking for

  • How to find "My Templates" folder in the hard drive?  Or "Mainstage Concerts" folder, "Mainstage Layouts" folder

    So far I have saved quite a few concerts as templates, but now I want to delete some of the older ones, so they stop showing up teach time I want to start a new concert from a template. I have been looking for the folder in library, application suppo

  • Macbook pro dies after 1 year and 3 weeks

    So.. I Purchased my MBP last year, without the 3-year applecare plan. I have been using it mainly for internet, music and all the other normal everyday things people use their computers for. Three weeks after my 1-year warranty expired, the computer

  • Change Default iCal email invite handler

    Right now in iCal, when I want to invite someone to a meeting, it wants to open Mail and send it out through that. Problem is I don't use Mail. I use Gmail via the Chrome browser. Is there any way to change the default email handler to Gmail? Or at t

  • Adobe Reader 10.1.3 crashes on open?

    Has anyone found a cause for frequent Adobe Reader crashes with version 10.1.3 on a Mac with OS X 10.6.8? The issue has been reported in the Acrobat forum but I haven't seen it mentioned here. For me, the problem occurs about every third time I try t

  • Form error 32082

    Hello, I am trying to change a text item "COST" to a list item and populating the List Element and List Item value fields. When I run the form I get the following error messages: FRM-32082: Invalid value for given item type. List COST Item: COST Bloc