Rotating an image and getting back the image...

Hi,
I have a small problem using images...
1. I have an existing image...
2. I need to rotate the image by a certain angle(say 60 degree)....
3. Return the rotated image back to the calling routine...
My problem is that I can rotate the image using the AffineTransform, and draw the image immediately... but I cannot return the rotated image... can anyone help me out on this??????

No sorry that didn't fix it. I forgot to mention that I already have a method in ImagePanel called clearImage()
     * Clear the image on this panel.
    public void clearImage()
        if(panelImage != null) {
            Graphics imageGraphics = panelImage.getGraphics();
            imageGraphics.setColor(Color.LIGHT_GRAY);
            imageGraphics.fillRect(0, 0, width, height);
            repaint();
    }But if I clear the panel and then try to apply the function nothing happens. The LIGHT_GRAY background remains.
This is how I apply a function in the class[b] ImageViewer
     * Apply a given function to the current image
    private void applyFunction(Function function)
         if(currentImage != null) {     
              if(function.getName().equals("Zoom In")) {
                   Zoom.ZOOMIN_RATE = 1.5;
                   function.apply(currentImage);
              else if(function.getName().equals("Zoom Out")) {
                   Zoom.ZOOMIN_RATE = 0.5;
                   function.apply(currentImage);
              else {          
                   imagePanel.clearImage();
                   function.apply(currentImage);    //A function is applied                   
              frame.repaint();              
              showStatus("Applied: " + function.getName());
         else {
              showStatus("No image loaded.");
    }

Similar Messages

  • I just updated my latest java but the update is causing problems with some externale devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device

    i just updated my latest java but the update is causing problems with some external devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device.
    Is this possible and how do i do that?
    Anyone who responds thanks for that!
    Juko
    I am running
    Hardware Overview:
      Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2,66 GHz
      Number of Processors:          2
      Total Number of Cores:          4
      L2 Cache (per Processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1,33 GHz
      Boot ROM Version:          MP11.005D.B00
      SMC Version (system):          1.7f10
      Serial Number (system):          CK7XXXXXXGP
      Hardware UUID:          00000000-0000-1000-8000-0017F20F82F0
    System Software Overview:
      System Version:          Mac OS X 10.7.5 (11G63)
      Kernel Version:          Darwin 11.4.2
      Boot Volume:          Macintosh HD(2)
      Boot Mode:          Normal
      Computer Name:          Mac Pro van Juko de Vries
      User Name:          Juko de Vries (jukodevries)
      Secure Virtual Memory:          Enabled
      64-bit Kernel and Extensions:          No
      Time since boot:          11 days 20:39
    Message was edited by Host

    Java 6 you can't as Apple maintains it, and Java 7 you could if you uninstall it and Oracle provides the earlier version which they likely won't his last update fixed 37 remote exploits.
    Java broken some software here and there, all you'll have to do is wait for a update from the other parties.

  • How to call plsql procedure or function and getting back the string?

    Hi Everyone,
    i am using Jdev 11.1.1.5.0.
    i have a requirement to call plsql procedure or function from my backing bean java file and get back the returned value from the procedure or function.
    what piece of simple code i need to write in my backing bean?
    please suggest.
    Thanks.

    As always you write the method to call he pl/sql in the application module, expose this method to the client (so you see it in the datacontroll) then create a operation binding to the method and call this operation from the bean. The result you get by operation.getResult();
    You should never call pl/sql from the bean directly!
    The doc shows how to call the procedure from an application module: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcadvgen.htm#sm0297
    Timo

  • Exporting and getting back the original settings

    Just some basic questions if Lightroom 1 and 2 really behaves this way:
    - When I export a picture I edited in the Develop module as a different file name, Lightroom then remembers those changes I made from that particular picture when I go back to the Library module.
    - If i try to import the exported file, Lightroom 2 will give two previews of the same edited picture. The exported picture and the original. However, what I wanted Lightroom to do is to retain the original picture so that the edited will also appear in the library.
    - When I try to import the original picture again, Lightroom said that the picture already exists in the catalog.
    Are there any workarounds so that when I export an edited picture, lightroom retains the original picture for comparison purposes?

    If you want both the "original" image and the developed version of the image visible in the Library module then use Virtual Copies.
    Do this:
    1. import your images
    2. select them
    3. create a new collection (Library > New Collection) and tick the "Make new virtual copies" box.
    You can make development adjustments to the virtual copy.

  • How to delete "temporary" a game and get back the data later?

    Hello everybody
    My iphone4s 16GB is quite full .
    I wish to delete some game (Galaxy on Fire for example) to have some free space. But i don't want to loose all what i gained during the 45h of play I spent in this game... I want to be able to re-install this game later and find my last save.
    Can you tell me how to proceed?
    Thnaks in advance for your help!
    Guillaume

    You can't do that easily.
    Find another way to free up space, because even if you were able to strip the save data for this game from your device (just do a google search to see how complicated that is) there isn't any guarantee that would even work if you put it back on.

  • HT3258 I am running Safari on 10.6.8. and inadvertently downloaded what  I took to be an update BUT it was a lion product not running on my macbook AND in so doing I lost/overwrote or whatever my trusty Safari. How do I uninstall Lion etc and get back the

    Question. I  am running 10.6.8. on my macbook and wrongly/inadvertently downloaded Lion Safari rather than an update to my trusty browser system. How do I uninstall Lion which seems to have overwritten. 'scrubbed' my faithful friend leaving me bereft -  hence this plea sent via my Imac.

    Try the Mac OS X v10.7 Lion community on how to uninstall Lion.

  • Is there anyway to get rid of siri and get back the old voice command?

    I have found siri to be really useless. The server based approach just isn't ready for prime time. Is there a client based alternative. I am really only concerned with being able to voice dial my phone while using blue tooth in the car. Other aspects of voice would be nice, but siri is just too in accurate.
    Thanks

    Awesome. Thanks. I didn't know that the old voice command was still in tact. That did the trick.

  • How can I get rid of Itunes 11 - such a bad version !!- and get back to the previous version?

    How come the new itunes 11 is so bad? I need to force quit every 10 mn as it buggs all the time for no reasons (for ex. when I search a song beginning by "a"): Moreover, the search engine is not reliable at all, the Genius application is dead, the tracks disappear, the duplicate function is acting silly etc
    So please any tip to get rid of this technological accident and get back the previous version?
    Thanks.

    This article will walk you through it
    http://www.emacconsulting.com/apple/itunes/downgrade-itunes-11-to-itunes-10-7/

  • I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to sen

    I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to send emails with photos embedded. I like adding the frames and backgrounds and I think it's easier for recipients to look at the photos. Thanks for any suggestions of things to try.
    Gail

    I had a similar problem in that my wife's iphone 5 could not send pics with imessage.  Had to set the settings to default to SMS or whatever.  After laboring many hours on the web I coincidentally was on the phone with the internet people to question my internet speed.  They changed the router channel, which is something that I am capable of doing myself.  After that, the pics go over imessage.  My own Iphone didn't have the problem.  We are both latest IOS 7.0.6.

  • Truly dumb question. How do I get PS to actually complete a command, eg straighten an horizon, and finalise the change. Even doing a "save as" with a new file name and reloading brings the image back, straightened, but with the skewed back ground frame st

    Truly dumb question. How do I get PS to actually complete a command, eg straighten an horizon, and finalise the change. Even doing a "save as" with a new file name and reloading brings the image back, straightened, but with the skewed back ground frame still there. Is there a "apply change" or similiar command that I simply cannot see.

    brings the image back, straightened, but with the skewed back ground frame
    PSE did what you told it to do. Choose the Straighten and crop edges or fill edges options when you use the straighten tool if you want it to do more than just straighten the contents of the image. Many people prefer the plain straighten because they'd rather crop themselves than let PSE do it.

  • My mac book air can't start installation, because i use windows installation in DOS to make partion, now no mac os on it. How to get back the mac os? i have a window based iso image from a friend, because in my country there is no Apple service.

    my mac book air can't start installation, because i use windows installation in DOS to make partion, now no mac os on it. How to get back the mac os? i have a window based iso image from a friend, because in my country there is no Apple service.

    It sounds like you destroyed your boot partition and the recovery partition.  Depending on it's age, your MacBook Air might be able to do a net boot.  Plug and ethernet connection into it and attempt to boot.  If it has the right firmware, it will find a net boot configuration on the net and boot that.  Then it will give you a Recovery Partition like display and allow you to reinstall the OS X version that came with it.... assuming that it was Lion or ML.  If your computer came with Snow Leopard, then even the net boot won't work. 
    At that point you need a bootable USB Key, or an external DVD drive AND a Snow Leopard installation DVD. 
    An Apple Store, if there is one nearby, MAY be able to get you going again.  However, whatever is on the SSD now will be toast too.

  • How can I fix the error image and get the regular image to load?

    Ever since the recent big update for Firefox I've been getting some sort of error for loading certain images.
    Here: http://tinypic.com/r/103bf3l/8 I have put one of those sites that give that error
    --The original image that is supposed to show is also available in that image
    Certain sites give a different size of that error image, but it looks the most like an error triangle
    I've already tried the troubleshoot of not loading images and none of the options worked
    If someone has this problem or knows how to fix it, it would be a great help

    Solution found:
    The addon "Stylish" with the theme "Google two themes" interfered with the image loading of the sites. Disabling the theme was the solution.

  • I keep losing entire catalogs. I put in 30,000 images and cannot get to them. Put in 3,000 images and get error message "LR encountered error when reading its previous cash and needs to quit. LR will fix this problem the next time it loads.' I  have loade

    I keep losing entire catalogs. I put in 30,000 images and cannot get to them. Put in 3,000 images and get error message "Light room encountered error when reading its previous cash and needs to quit. light room will fix this problem the next time it loads.'
    I  have loaded light room several times and even exited computer for 8 hours. Still get error message

    A search of this forum shows lots of threads where this issue of "error reading cache" is solved

  • When I'm travelling I import photos onto my laptop's external hard drive and work on the images using virtual copies to develop them. When I get home, I want to import all the photos together with the developed virtual copies fromt the laptop's external H

    When I'm travelling I import photos onto my laptop's external hard drive and work on the images using virtual copies to develop them. When I get home, I want to import all the photos together with the developed virtual copies fromt the laptop's external HD into LR5 on my PC desktop. But if I use the import button in LR I only get the original photo, not the developed copies. What am I doing wrong?

    Since your current editing workflow is based around Virtual Copies there are no actual files containing the edit data. Therefore, you'll need to use the 'Import from another catalog' option ( see File menu).

  • Imported slide show into PE11 and some pics rotated unexpectedly, How can get back to horizontal?

    Imported slide show into PE11 and some pics rotated unexpectedly, How can get back to horizontal?

    winkhi
    Just what are the pixel dimensions of these photos that are automatically rotating on you in Premiere Elements 11 workspace after being transferred there from the Elements Organizer Slideshow Editor? Do I have that correct? If so, how are you making the transfer....Edit with Premiere Elements Editor, Burn to Disc, or other as Elements Organizer 11 Slideshow Editor output?
    What is the scenario...from the camera to the computer hard drive, landscape; from the computer hard drive to the Elements Organizer 11 Slideshow Editor, landscape; from the Elements Organizer 11 Slideshow Editor to Premiere Elements 11 Project Assets/Timeline, rotated to Portrait?
    Do you find that the frequency of the problem is related to pixel dimensions, number of photos used? What is the format of these photos, jpg or other?
    Are you using the Rotation option in the Applied Effects Tab/Applied Effects Palette/Motion Panel expanded to correct the photo rotation?
    Just some thoughts for now.
    ATR
    ATR

Maybe you are looking for

  • Basi cusoms and  Scess on BCD being poasted in material cost

    Hi Friends, I have prepared a import order and a stk trpt po. I want to take receipt first in a plant and subsequently with stk po I will receive in B plant . My stk po is having duties as CVDs and BCD cond types. When I do vl10d and cl02n for the ou

  • How to use XML bean in 9.1 web service.

    hi, im trying to deploy a small web service with only one method in WLS 9.1. That method accepts an XMLbean as the input parameter and returns the same type of xmlBean as the output. how can i specify the name of corresponding .xsd file in the ant sc

  • How to set no_value to Optional parameter in XI 3.0 by OpenDoc URL linking

    I found in "BusinessObjects XI 3.0 Viewing reports and documents using URLs Howto.doc" "You can remove an optional parameter from the prompt by setting it to no_value in the OpenDocument query string." I tested: response.sendRedirect("/OpenDocument/o

  • "Oracle 9iAS Release 2" Link not working

    hi I want to download Oracle 9iAS Release 2(9.0.2.0.1), but the problem is the link is not working "http://www.oracle.com/technology/products/ias/9ias_index.html" this is link which directed to "Oracle 9i Application Server Relase 2". I need the 9iAS

  • Travel expense approval worklfow

    Hi, i have used standard workflow : WS20000040 for travel expenses, i can able to trigger the event when travel expense form created and also i can approve the trip,but i want to know whether it's really got approved or not,please let me know how to