Rotating Image at Diff Angle

I have one clock application.
In my Application i have given some option for changing the background. It is working fine.
Also I have used drawLine method for drawing Minute Hour and Second hand. All this hand are simply a line.
Now i want to draw an Image for Hour, Minute and Second hand instead of a Line so that i can provide an option of changing this Image
but the problem is that How can i rotate the Image .
Can any one tell me how to rotate an Image at various angle?...........
please please
Thanks in Advance

Is it Possible to rotate the Image ?..........................
can any one give me some code or algorithm for it ?.......
pleaseeeeeeeeeee

Similar Messages

  • Rotate3D : How to find rotating image's angle reached 90

    I am looking for a solution to find rotated image's angle.
    Say an image is rotating from 0 to 180 along the y axis it has to cross 90degree mark. Is it possible to listen motion of image in degrees while animation is playing?

    Sorry, Its not what I am looking for.
    I am looking for a listener or something which will trigger when it reaches certein angle say 90degrees. I am rotating an image from 0 to 180 along the y axis (by setting angleYFrom & angleYTo not along x axis) and I have to flip an image when it reaches 90, so that reversed image can be avoided. Making it show face all the way it reaches 270 degrees from 90.
    Thanks

  • Slicing image on different angle and exporting to Dreamweaver ?

    Hi!
    I think I searched entire web and didn't find the answer.. Is it possible to slice image on different angle not just rectangle ? On images below you can see the section that I'm trying to make a slice and slowly I'm loosing hope because I think It's not possible ? (and why the h3II is not?? :-) ) It would be little confusing for Dreamweaver when I would try to import that image then, because it's not the "right" shape but.. I'm trying to make a rollover image but I want just a small part of image to rollover to another image that is not the "right" shape... I hope I didnt complicate to much and explaind well what I'm trying to do, you can see the 2 images below for example what I'm trying to do.
    Crop tool allows me to spin rectangle done with it, but still cant use that in Dreamweaver, it rotates the image back at right angle.
    If its not possible with photoshop or dreamweaver, what software is capable of doing it and that i could inport to dreamweaver then ?
    Would be grateful for any tips or link or whatever just not stopping on none-rollover image.
    (i want that to apear when going over with pointer - on wall exactly)

    If you want to change image transparency on mouse over, you can do this with CSS opacity and proprietary MS filters.
    CSS code:
    a img {border:none}
    img a:link {
    /**for non-IE browsers**/
    opacity: 0.5;
    /**for IE8**/
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)
    /**for IE6,7**/
    filter:alpha(opacity=50);
    img a:hover,
    img a:active,
    img a:focus {
    opacity: 10;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)
    filter:alpha(opacity=100)
    Example:
    http://www.w3schools.com/Css/css_image_transparency.asp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Rotated images in inDesign

    I have used CS6 on my Mac (10.6.8) to create a 240 page book with several images on most pages. Some of these have been rotated by about 20 degrees or so for effect, and are fine when viewed on inDesign. However, when exported to pdf in high quality mode a grey (un-rotated) box appears around each of the rotated images. It's faint but it is there. I did try rotating in Photoshop first and then creating a clipping path, which I have done for other images but this appears compromised by the rotation also. Grouping a number of images before rotating, as I have done on the cover, also seems to cause a particular problem, with the crop then coming in at an angle also. Even if you then ungroup these, the program seems to remember they were grouped before and still refuses to do a vertical crop, though it behaves ok with the rotated image before it is grouped. Drop Shadows on the title text appear VERY dull on my screen when viewed in the high-quality pdf mode also, though a friend viewing the same file on his computer does not get this effect. I think I can work round most of these, but the grey boxes are a real issue.
    Thanks
    Les Brown

    Hi Peter
    interesting. I was just clicking on the file, so I think it was Apple preview. However, if I select Acrobat 10.1.1 the image looks good against a white background (my main problem.) Does this mean the file is OK to send for printing in this form? I note that for the cover image (blue background) the drop shadows are still very dull and there is still a slight colour issue with the rotated image.
    Thanks
    Les

  • Rotate image

    Hi.  I have code which randomly places an array of images upon my stage
    container.x = stage.stageWidth / 3 + Math.floor(Math.random() * (stage.stageWidth / 4));
    container.y = stage.stageHeight / 5 + Math.floor(Math.random() * (stage.stageHeight / 5));
    At the moment, these images ar quite contained within the center of the stage, nearly on top of each other.  I have played with the numbers but cant get them to spread out a bit more, not sure which values do what.  How could I spread them out a bit?
    Additionally, I am also looking to randomly rotate the images.  By this, I dont mean tween them, just place them on the stage at various different rotations, as if it looks like the images have been randomly thrown onto the stage.  However, I think the degree of rotation should not allow for the image to be displayed upside down.  How could I do this randomly?
    thanks

    Kool, thanks.  I have one small problem left.  So, the images are randomly scattered onto the stage.  When an image is clicked, it enlarges using a Tween.  When the images were not rotated randomly, the image enlarged as normal.  With them rotated, the images which are nearly straight enlarge into the center, while the images at an angle enlarge off to the side, therefore you cannot see half of the enlarged image.  The code I have for this is
    tween = new Tween(e.target.parent,"x",Strong.easeOut,e.target.parent.x,stage.stageWidth / 2 - e.target.parent.width + 15,0.8,true);
    tween = new Tween(e.target.parent,"y",Strong.easeOut,e.target.parent.y,stage.stageHeight / 2 - e.target.parent.height + 15,0.8,true);
    How could I go about getting all images to firstly striaghten up before enlarging, and then enlarge into the center?
    cheers

  • Color changes after rotate image

    Hi,
    after rotate the "special" image (contains color space) the colors are changing.
    1. original image
    http://www.magix-photos.com/mediapool00/67/FC/3E/40/7E/74/11/D8/8F/AE/D1/59/D4/5B/F1/36/oma/10/C3E538A09A4211DBAE7417E2D45BF136.jpg
    2. rotate 4 times (each time 90�)
    http://www.magix-photos.com/mediapool00/67/FC/3E/40/7E/74/11/D8/8F/AE/D1/59/D4/5B/F1/36/oma/10/E19E8F409FBA11DBAFB497F6D45BF136.jpg
    3. rotate 8 times (each time 90�)
    http://www.magix-photos.com/mediapool00/67/FC/3E/40/7E/74/11/D8/8F/AE/D1/59/D4/5B/F1/36/oma/10/22BB57A09DEB11DB9E82003A55B2433B.jpg
    I'm using JDK 1.5.0_09 and JAI 1.1.3-beta.
    This is my code for rotate image:
        public BufferedImage rotateImage(BufferedImage image, int angle, int x, int y) {
            if (logger.isDebugEnabled()) {
                logger.debug("rotateImage(image, '" + angle + "', '" + x + "', '" + y + "') entered");
            if (image == null) {
                logger.error("rotateImage() failed, because image is null");
                return null;
            // convert angle in radius angle
            float radAngle = (float) ((float) angle * (Math.PI / 180.0F));
            BufferedImage newImage = null;
            RenderedOp render = null;
            try {
                ParameterBlock pb = new ParameterBlock();
                // image
                pb.addSource(image);
                // rotate about x point
                pb.add((float) x);
                // rotate about y point
                pb.add((float) y);
                // rotate with radius angle
                pb.add(radAngle);
                // interpolation
                pb.add(Interpolation.getInstance(Interpolation.INTERP_BILINEAR));
                // render
                render = JAI.create("Rotate", pb);
                newImage = render.getAsBufferedImage();
            catch (IllegalArgumentException iae) {
                logger.error("rotateImage() failed", iae);
                return null;
            finally {
                if (render != null) {
                    // clean memory
                    render.dispose();
            return newImage;
        }Has anybody idea what is going wrong?
    Best Regards,
    Rafal

    You probably have Photoshop set up to not color manage. That is not a good idea. Look
    here in the first images for how to set up your color management in photoshop.

  • How do i rotate images in the Book feature?

    I run Aperture 3.4.4 and want to know if i can rotate images when designing a book.  I looked through the archives and there are several notes that say if i mouseover the upper left corner of a selected image in Edit Layout mode i will get crosshairs.   This does not happen in my version.  Any suggestions?

    You could try to change the "angle" in the "Edit Layout" view in the Size & Position options.
    To show the "Size&Position" layout options use the cogwheel below the Pages browser.
    Regards
    Léonie

  • How to rotate image of picture ring

    Hi,
      I want to rotate image of picture ring (in particular angle). In my application I want to move a object(in circular form). Please tell me how to do it?
                                            - Thank you

    Hi,       I'm attaching one Jpg file; I need to move the train as per image route. I have tried position property node to change its position but problem is at turn, I can not rotate image of train smoothly through 900.                              - Thank you 
    Attachments:
    train.jpg ‏395 KB

  • Rotated image overlaps other controls

    Hi, I am working on an AIR app involving images. One of the functionalities is viewing as well as rotating images. I made a simple test app to illustrate this portion:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
        <mx:Script>
            <![CDATA[
                private function rotate():void
                    var bitmap:Bitmap = Bitmap(img.content);
                    var matrix:Matrix = bitmap.transform.matrix;
                    var centerX:Number = bitmap.width/2;
                    var centerY:Number = bitmap.height/2;
                    matrix.translate(-centerX, -centerY);
                    matrix.rotate(90*Math.PI/180);
                    matrix.translate(centerY, centerX);
                    bitmap.transform.matrix = matrix;
            ]]>
        </mx:Script>
        <mx:Text width="100%" text="Some text"/>
        <mx:Image id="img" width="100%" height="100%" source="test.jpg" horizontalAlign="center" verticalAlign="middle"/>
        <mx:Button label="rotate 90" click="rotate()"/>
    </mx:WindowedApplication>
    The application window has text on the top and a button on the bottom, with the image in the middle. Each click of the button rotates the image by 90 degrees.
    On launch, the app works great. It fetches the image file and fits it to the Image container. As I resize the application, the image also resizes and maintains the position relative to the other controls. Top text and bottom button are where they should be. All good. Let's assume the image is landscape/wide. After I perform the rotate 90 degrees by clicking the button, although the image is rotated and now in portrait orientation, the bottom portion of the image is now out of the image boundary and overlapping the button.
    Is there a way to tell the image to fit the content to the container again? Basically, re-layout the whole thing as if the image is in this new orientation.
    I suppose I can try to figure out a change in scale and resize the image, but I am not sure if this will hold when the user resizes the application. Also, the rotated image is now rather far to the left, as the "top left" corner is where a landscape image would be. For a portait orientation that's centered horizontally, it should be further to the right. I suppose I can also come up with some formula to center the rotated image. It just seems that the application already has all this logic built in, as it did exactly what I wanted when the image was loaded initially. If I can just ask the application to do it again. Note that similar issue occurs if the image starts out in portrait orientation and is rotated to landscape (too far to the right).
    Thanks in advance for the help.
    Will

    Thanks Sheila and Arnis,
    Today I opened the project to try different zoom settings and the problem has vanished; I get the correct arrow at zooms of 100, 120 and 140%.
    Likely a bug somewhere deep in Frame's innards. Anyway we've ordered TCS3 so soon I'll be using FM10. Thanks anyway.
    --- Derek

  • Is there a way to rotate images in iPhoto on the ipad

    I take photos with the iPhone or iPad and unless I sync them back to the Mac, there does not seem to be a way to rotate images. This makes having a nice slideshow (for the unlock screen) a problem as a bunch of images are all sideways. I'd like to be able to do simple edits like this in the device and not have to sync back and forth.

    You can't in the Photos app itself, though there are third-party apps that allow you e.g. PS Express (though the saved rotated version of the photo will be put in the Saved Photos album).

  • I have a Flash Sample to rotate images and text but I not find a way to display special characters

    Hello everyone.
    I bought a very nice Flash application that rotate images, and text of any color and size. It use an XML input file.
    I've posted here, a complete copy, so any of you can download, view and use it freely.
    I would appreciate if any of you know how to do, so that the text displayed, including the characters I use in my language (Spanish), such as á, é, í, ó, ú, ñ, and other special characters.
    In fact, I could not find a way to do it, because I'm not expert Flash, and less in ActionScript.
    If any of you would help me on that, I thank you implement the appropriate adjustments and compressed into a. zip file, and let me know where to download it, or if you prefer you can send it to my email: [email protected]
    After all compressed in .zip format is a very small file: 430K.
    Click here to download the complete sample.
    Thanks.
    =====================================
    Translated using http://translate.google.es
    =====================================

    Hello Rinus,
    If I understood your last post correctly, then problem 2 is resolved, right?
    Regarding problem 3:
    I'm not asking you to share exact VIs.
    I just want to see a very simple VI that explains the concept of what you're trying to do, what should happen (this can be in words that refer to the front panel elements) and what you've tried.
    The terminology you're using isn't clear to me without an extra explanation.
    This could even be only a Front Panel with a few buttons on where you just describe what should happen with specific controls/indicators.
    Based on the first post it is not clear to me what you mean with:
    - A "button element":
      Are you talking about a control, an indicator, a cluster that contains multiple control?
    - The structure:
      Is this an event structure, case structure, for loop, ...?
    Is it seems like you want to programmatically control Front Panel objects, which on itself is no problem at all independent of how many objects you want to control.
    Please share with me simple example of what goes wrong and explain which things should happen on that specific Front Panel.
    This will allow me to help you and also allow me to guide you along the right path.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • LR rotates images as they were at the upload

    Hi everybody
    I went back to a folder I haven't been looking for about 3-4 months. After I located the folder from the external disk all the images opened,  with my surprise, without the rotation I have set at the time so I had to to do it all again. Usually LR should retain the settings you apply to images, with no time limitation. So what happened in this case?
    p.s. it's even worse: LR is opening the images, in Grid View, initially with the rotation I set after the first opening but as I scroll down, always in Grid View, the images showed in the screen are rotated back as they were at the upload.
    Then I scroll down a bit more, images that were out of view are showed with the correct rotation and after a while they start rotating as they were at upload .....what the hell is going on???

    I think the key is when you said you have not viewed these pictures in 3-4 months. Therefore LR deleted its previews and the effect you are seeing is LR re-making them. If it does not have a preview in its cache it tries to be quick by showing you the JPG preview in the image file. That's as the camera recorded it. The it makes a preview from the image data, and finally applies the editing steps either from the catalog or the XMP information in the file.
    So if you give LR the time to do all that it should give you the pictures as you last had them in LR.
    I just went back to some pictures from February in my catalog and LR did recall the image orientations.
    BUT - I am also confused. I did a test and rotated a picture in LR. That rotation did not appear in the History panel. That surprised me, because LR does remember any rotations applied. I don't know where.
    Another factor may be that many cameras record the orientation in the EXIF. Thus my Canon DSLR rotates images correctly on the LCD display whereas my Nikon Coolpix P6000 does not. This could be part of your issue:- the camera's notion of orientation vs. LR's.
    So this is only a partial answer but I hope it helps.

  • Problem with rotating images in Photoshop CC

    When I rotate images in Photoshop CC I get jagged edges and not smooth as before. What has changed? How can I sort this out? Is my software corrupted?  Still works perfectly in CS3.

    If your using Free Transform, then look at the Interpolation settings in the tool options bar
    Try one of the Bicubic settings
    (i have it set to Bicubic)
    For rotating the Canvas look at the Image Interpolation settings under Photoshop (Edit)>Preferences>General and use one of the Bicubic settings
    The standard Bicubic setting is a good all around setting

  • I can't rotate images or text with two fingers on my trackpad.

    I have the most recent version of Keynote, using iOS 10.9.1 and a bluetooth trackpad.  Everything was working fine with the various gestures and now the rotation (two finger twisting) won't rotate images or text boxes.  Anybody else having this issue?  Any fixes you've seen that work?
    I've turned my bluetooth trackpad on/off.  I've checked my trackpad preferences checked/unchecked/checked.  Nothing seems to work.

    give gesture back please as soon as possible!!!

  • Rotating Image with Fade Effect

    Ok looking to rotate an image with a fade effect; below is a rotating image code.
    (Wanting this effect to be transitional and smooth. Transparency? Opacity?)
    <script language="JavaScript">
    <!--
    function adArray() {
    for (i=0; i*2<adArray.arguments.length; i++) {
    this[i] = new Object();
    this[i].src = adArray.arguments[i*2];
    this[i].href = adArray.arguments[i*2+1];
    this.length = i;
    function getAdNum() {
    dat = new Date();
    dat = (dat.getTime()+"").charAt(8);
    if (dat.length == 1)
    ad_num = dat%ads.length;
    else
    ad_num = 0;
    return ad_num;
    var ads = new adArray(
    "img1.jpg","http://www.domain.com",
    "img2.jpg","http://www.domain.com",
    "img3.jpg","http://www.domain.com");
    var ad_num = getAdNum();
    document.write('<div align="center"><A HREF="'+ads[ad_num].href+'" target="_blank"><IMG SRC="'+ads[ad_num].src+'" '
    +'BORDER=0 name=js_ad></A></div>');
    link_num = document.links.length-1;
    function rotateSponsor() {
    if (document.images) {
    ad_num = (ad_num+1)%ads.length;
    document.js_ad.src = ads[ad_num].src;
    document.links[link_num].href = ads[ad_num].href;
    setTimeout("rotateSponsor()",4000);
    setTimeout("rotateSponsor()",4000);
    // -->
    </script>
    Any ideas?

    Here is the script I finally got working! It would have not came to me without your help guys!
    <script>
    var pictureWebPartName="Pictures"; // name of the picture library web part
    var showThumbnails = true; //otherwise show full sized images
    var randomImg = true; //set to true to show in random order
    var useCustomLinks = false; //true to use second column as URL for picture clicks
    var RotatingPicturesLoopTime = 5000; //2000 = 2 seconds
    var imgToImgTransition = 1.0; //2 = 2 seconds
    // don't change these
    var selectedImg = 0;
    var imgCache = [];
    var imgTag;
    function RotatingPictures()
    imgTag = document.getElementById("RotatingImage");
    //Find the picture web part and hide it
    var Imgs = [];
    var x = document.getElementsByTagName("TD"); // find all of the table cells
    var LinkList;
    var i=0;
    for (i=0;i<x.length;i++)
    if (x[i].title == pictureWebPartName)
    // tables in tables in tables... ah SharePoint!
    LinkList = x[i].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;
    // hide the links list web part
    LinkList.style.display="none";
    break;
    if (!LinkList)
    document.all("RotatingImageMsg").innerHTML="Web Part '" + pictureWebPartName + "' not found!";
    //Copy all of the links from the web part to our array
    var links = LinkList.getElementsByTagName("TR") // find all of the rows
    var url;
    var len;
    for (i=0;i<links.length;i++)
    //if (links(i).id.match("row")!=null)
    if (links[i].childNodes[0].className=="ms-vb2")
    len=Imgs.length
    Imgs[len]=[]
    Imgs[len][0] = links[i].childNodes[0].childNodes[0].href;
    if (useCustomLinks)
    if (links[i].childNodes[1].childNodes.length>0)
    { Imgs[len][1] = links[i].childNodes[1].childNodes[0].href; }
    else
    { Imgs[len][1] = "" }
    if (Imgs.length==0)
    document.all("RotatingImageMsg").innerHTML="No images found in web part '" + pictureWebPartName + "'!";
    for (i = 0; i < Imgs.length; i++)
    imgCache[i] = new Image();
    imgCache[i].src = Imgs[i][0];
    if (useCustomLinks)
    imgCache[i].customlink=Imgs[i][1];
    RotatingPicturesLoop();
    // now show the pictures...
    function RotatingPicturesLoop()
    if (randomImg)
    selectedImg=Math.floor(Math.random()*imgCache.length);
    if (document.all){
    imgTag.style.filter="blendTrans(duration=" + imgToImgTransition + ")";
    imgTag.filters.blendTrans.Apply();
    url=imgCache[selectedImg].src
    if (useCustomLinks)
    { RotatingImageLnk.href=imgCache[selectedImg].customlink; }
    else
    { RotatingImageLnk.href = url; }
    if (showThumbnails)
    // convert URLs to point to the thumbnails...
    // from airshow%20pictures/helicopter.jpg
    // to airshow%20pictures/_t/helicopter_jpg.jpg
    url = revString(url);
    c = url.indexOf(".");
    url = url.substring(0,c) + "_" + url.substring(c+1,url.length);
    c = url.indexOf("/");
    url = url.substring(0,c) + "/t_" + url.substring(c,url.length);
    url = revString(url) + ".jpg";
    imgTag.src = url;
    if (document.all){
    imgTag.filters.blendTrans.Play();
    selectedImg += 1;
    if (selectedImg > (imgCache.length-1)) selectedImg=0;
    setTimeout(RotatingPicturesLoop, RotatingPicturesLoopTime);
    // utility function revString found here:
    // http://www.java2s.com/Code/JavaScript/Language-Basics/PlayingwithStrings.htm
    function revString(str) {
    var retStr = "";
    for (i=str.length - 1 ; i > - 1 ; i--){
    retStr += str.substr(i,1);
    return retStr;
    // add our function to the SharePoint OnLoad event
    _spBodyOnLoadFunctionNames.push("RotatingPictures");
    </script>
    <!-- add your own formatting here... -->
    <center>
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td id="VU" height="125" width="160" align="center" valign="middle">
    <a name="RotatingImageLnk" id="RotatingImageLnk" alt="click for larger picture">
    <img src="/_layouts/images/dot.gif" name="RotatingImage" id="RotatingImage" border=0>
    </a>
    <span name="RotatingImageMsg" id="RotatingImageMsg"></span>
    </td>
    </tr>
    </table>
    </center>
    Thanks again guys!

Maybe you are looking for

  • 1Z0-051 Oracle Certification - OCA

    Hi. I am in a fix and so need your help. I am planning to give 1Z0-051 Oracle Certification exam(Oracle Database 11g- SQL fundamentals). However, I will be unable to give my 1Z0-052 exam(Oracle Database 11g- Administration-I) at this time. So, if I g

  • Nokia Lumia 2520: Bluetooth Speakers

    I am thinking of getting a new tablet and really like the look of the 2520. However, I recently had a lot of problems with a Surface 2 and had to return it. The worst problem was a problem when streaming music and using a bluetooth speaker at the sam

  • OS 10.4.11 or 10.4.8  ???

    So my CD drive is also not working, ejects everything. Today I bought an external drive, supposed to work with Mac OS 10.4.6. But won't recognize it. Come to find that my Mac Installation disk says it's v. 10.4.8, but when I look inside the Mac itsel

  • OneNote cannot connect to Windows Live

    Hi, I'm having a problem with OneNote 2010. I want to create a notebook and share it using the "Web" option. However, when I try to connect OneNote to Windows Live, it keeps "connecting to server" for a long time and then reprompts, saying "Unable to

  • Play a video in-app independently from in-app or extern music?

    Hi there, The app has in-app music which can be switched off by the user, e.g. if he rather listens to his own music. In the near future, tutorial-videos will be added to the app. These videos don't have and need any sound themselves. The problem is