Rotating image moves pixels out of canvas.

I was under the impression that using Image => Image Rotation => => 90 CW would rotate everything ninety degrees clockwise, but I guess I don't understand exactly how it works.
When makin a very simple 2 pixel pattern, I filled the right pixel with black and left the other pixel empty. I then wanted to see how the pattern would look horizontally so I rotated the image 90 deg clockwise and found that my black pixel was moved off of the canvas.
Next I tried some testing to see if I could better understand what was happening. I found that if I rotate the image CCW then the pixel would be in the correct place, but if I fill the left pixel with black instead of the right I would have to rotate CW to keep the fill from going off canvas. I thout that maybe I was rotating the canvas only, but when testing a larger image I found that wasn't the case.
I could go on, but basically I can't figure out how to rotate an image with 2 pixels ninety degrees. Kind of silly, what am I doing wrong?

Doesn't happen on my end. Maybe a video driver issue?

Similar Messages

  • Rotating Images in a grid or canvas

    I want to build a component somewhat similar with the
    rotating images that you can see below.
    http://www.istockphoto.com/index.php
    Thanks in advance,
    Q

    Here is a place to start:
    http://weblogs.macromedia.com/pent/archives/2007/10/component_class_2.cfm
    Tracy

  • Rotate and move image

    Hi,I'm trying to make a game kinda like gta or asteroids whereyou have top view. I am using an image to be the player and, I want to rotate that image using left and righ keys and with the up key move the player to the direction whereit is rotated.
    The problem is that i cannot display the rotation and movement at the same time.
    I'm using a code like this.
    AffineTransform transform = new AffineTransform
    public void checkGameInput(){
         float velocityX=0;
         float velocityY=0;
         if(rotateLeft.isPressed()){
               angle1+=angle2;    
              transform.rotate(-angle2, player.getWidth()/2, player.getHeight()/2);
    // similar for rightkey
       if (moveFront.isPressed()){
               velocityX=_Player.SPEED*Math.cos(angle1),
               //same for velocityY
    }the problem is when i try to print on the sceen.
    I can update position
    public void draw(Graphics 2D g){
    g.drawImage(player. getImage(), Math.round(player.getX()), Math.round(player.getY()),null)  // player.getX(9 returns position of playeror update rtation
    public void draw(Graphics 2D g){
    g.drawImage(player.getImage(),transform, null);is there a way to join this to drawImageso I can rotate ane move the rotatyed image?
    thank you very much for any kind of help.
    Edited by: Muninn on Nov 29, 2008 3:13 AM

    Use the transform to do both rotation and translation (multiple transform operations can be concatenated)
    transform.rotate(-angle2, player.getWidth()/2, player.getHeight()/2);
    transform.translate(player.getX(), player.getY());

  • 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

  • Making still images 'move'

    There is a video editing effect I see in use that takes a still image within a timeline and adds the perception of motion. May only move a few pixels over a designated period of time but brings the image to life. Is the effect available in any version of elements - right now I'm using Vista with elements 3. Thanks!

    Welcome to the forum.
    Unfortunately, you have posted to the Tips & Tricks sub-forum. This is a repository for articles on how to do things. Maybe our MOD, Steve Grisetti, can move this out to the main forum, where you will get much more traffic.
    Now, if I understand, what you wish to do is animate your still images. That is easily done with the Pan & Zoom of the stills. There are some Presets in PrE, but I use Keyframes to animate the fixed Effect>Motion>Position and Motion>Scale for this. It is often called the Ken Burns Effect.
    Also, make sure that your still images are sized appropriately in, say PS/PSE. This ARTICLE will give you some tips.
    Good luck, and hope that it helps,
    Hunt

  • Magic Trackpad - Rotate Image

    I love my new magic trackpad! All the documented features work wonderfully except for one. I can't figure out how to get "rotate image" to work. I opened an image in iPhoto and in Preview, but the two-finger rotation movement does not rotate the image.
    In what applications will this work? Do I have to buy Aperture or Adobe CS4? Or maybe a newer version of iPhoto? I have on older version of iPhoto, I think 6.0.6.
    You'd think it would work in Preview though. Any tips are appreciated.
    Message was edited by: Carole Mah

    I've got it working now . . . The "rotate" option is just more sensitive than I was expecting: First, you've really gotta be careful with how you do the gesture, or else instead of rotating the image your mouse cursor just circles around the screen OR the iPhoto thinks you're doing a pinch-to-close/zoom gesture instead of a "rotate" (e.g., make sure your two fingers stay the same distance apart while you're doing the "rotate" movement). Second, there seems to be a delay between when you open the photo in iPhoto and when you can start spinning it, especially if it's a photo with a large file size; you've gotta give the photo a second to load up completely, then try the "rotate"; and you might get another delay if you try to rotate it clockwise after rotating it counter-clockwise, or vice-versa.
    I also found that using iPhoto's "Full Screen" mode made it MUCH easier to use the "rotate" and pinch-to-zoom gestures -- in full-screen mode iPhoto seemed to have a much better idea of when I was trying to rotate vs. when I was trying to zoom in and out, and you can actually zoom way in on a photo via pinch-to-zoom instead of being capped at the images full size, etc.
    Seems like the "rotate" gesture could use some more work to make it easier to use, but it's pretty cool once you get used to performing the gesture exactly right.

  • 360 degree rotate image mouse drag edge tutorial

    360 degree rotate image mouse drag edge tutorial and give edge file

    My thoughts would be to, use an event listener for mouse
    down.. then depending on where the mouse is down have it create
    another event listener for mouse move, for example if the mouse x
    and y was in the range of where you want.. And after that in the
    mouse move function create a tween depending on where the mouse x
    or why moves to.
    private function mouseDOWN(evt:MouseEvent):void{
    //if mouse x or y is in the position rang wanted, create the
    event listener for mouse movement and mouse up.
    private function mouseMOVED(evt:MouseEvent):void{
    //if mouse y moved from original position, figure out the
    difference
    // create a tween on the object's original location, and
    addition of the difference.
    private function mouseUP(evt:MouseEvent):void{
    // remove all of the event listeners to stop all
    interaction. Also removing the mouse up listener.
    hope this helps

  • 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

  • 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.

  • How do I have an image move with a text box?

    I need to embed an image within a text box so that when I add additional text in the future, the image moves with the text that surrounds it.
    For example, if I have a paragraph of text, then on the following line vertically I have an image, then on the following line another paragraph of text ... When I add additional paragraphs of text above the image, how can I have the image track down to stay between the original two paragraphs of text?

    Thanks Zak!  I figured that out but now have another problem that I just posted. The app keeps locking up when I try to export HTML or upload my site to the server. Please give me any advise on how to handle it.
    Here's my other post:
    Hi,
    I just upgraded to the latest version of Muse. I made a few changes to my site and I'm trying to export the HTML. I've now tried 3 times and the app locks up at 89%. It completes all pages, but locks up there. When I look into the Muse Export folder, there is nothing there. The window reads "Finishing export" but it stays at that point for more than an hour when I finally give up and force quit.
    Any ideas? Anyone else having this issue? Any ideas on how to get my HTML exported successfully?
    Thanks in advance for any help!
    Reply
    27 Views   2 Replies   Latest reply: amchambers,      May 26, 2013 9:23 PMWas this helpful? Yes   No
    Replies
    20 posts
    Sep 19, 2012
    1.amchambers,May 26, 2013 9:18 PM   in reply to amchambers
    Just an update. Previously I was attempting to export HTML to the Muse Export folder on my computer. I described what happened above. Now, I'm trying to publish directly to my FTP site. Its doing basically the same behavior where it exports all desktop pages (189 of them) then it locks up. However, the interesting thing is that when exporting to the Muse Export folder on my computer this said it was 89% complete. When uploading to my server, it says its 59% computer when all pages have been exported. Both options result in the app locking up and never completing the export. I did check my site online to see if the pages were really updated. I made a change to the nav bar on the master so I should see that on every page. It is not showing up online yet even though the app says all 189 pages have been exported. Still looking for help, all advice and ideas will be appreciated! I do want to get my updates online.
    Was this helpful? Yes   No
    Reply|
    Mark as:
    CorrectHelpful
    20 posts
    Sep 19, 2012
    2.amchambers,May 26, 2013 9:23 PM   in reply to amchambers
    Here's what I have when it locks up. It sits like this for hours.

  • How to smooth these pixels out...?

    How can I smooth the pixels out on the bottom rounded parts of this image?
    http://www.themaxidressshop.com/images/awnings.jpg

    Hi there,
    Here's a video tutorial that show you how to smooth jagged images in under a minute.
    Let us know if you have any issues and we can try to help you find a solution. Good luck!

  • Rotating images in separate htm document (DW CS4)

    Hi all,
    A few questions:
    1. I created a rotating images htm document by using the swap image function and then changing the code a bit (found this on internet). This works just fine on my PC (LiveView) and the htm document is switching between 3 images. I have placed the document in the images folder. However, when uploaded it doesnt work:
    http://www.competenciagroup.com/images/RotatingImages.htm
    2. If i get this htm document to work on the net I would like to input the htm document with the rotating images into the heading of my main document:
    http://www.competenciagroup.com/ColombiaTravel/index.html
    (just above the menu)
    I could not though figure out how to input the htm document into the existing html document.
    Anybody have any clue on the 2 questions above?
    Thanks in advance,
    Ingvar Malde

    I know plenty of people run into the issue of not being able to see their images while in design view, but mine is the exact opposite.
    My images show up as a tiny blue question mark box in Live View... As well as when I preview it in a browser localy on my machine.
    I think I know why it might be happening but dont know how to fix it...
    When I insert an image DW codes it as such:
    <img src="/images/madintro.jpg" width="470" height="267" />
    The problem seems to lie in DW adding the "/" in front of "images"
    when I manually go in and take out the "/" the image shows magically shows up as it should.
    Why has dreamweaver suddenly defaulted to making bad code? what did I do to cause this issue? And obviously how can I change it back to work again and make the image show in my DW workspace?
    Yes, the slash is exactly the problem. That is known as a Site-root relative link.These types of link are good to use in Templates because they are always the same. They don't need to be "fixed' when you generate a page from your Template into a different folder.
    The downside of using Site-root reltive links, is that you can't access the files locally. You must get the page from a web server. One exception to that is using Preview in Browser (PIB) "Temp" files.
    Read this Tech Note about setting up a Testing Server so you can see these files in Live View and PIB:
    http://blogs.adobe.com/dreamweaver/2008/12/live_view_and_siteroot_relativ.html
    If you want to switch back to using Document relative links, then setthe Relative to: field to be "Document" in the "Browse for file" dialog (folder button next to Link field in PI). This setting is sticky, so all future link will use the same setting.
    Hope this helps,
    Randy

  • Rotate images DURING import

    To be able to rotate images DURING import would be a nice feature. I can do this with Apple's Image Capture. They are imported wih the rotation I have requested, and this show in the icons too.
    I like popping a folder open and view my images in icon view. I don't have to open a program at all. It's quick and efficent way to view my images, but also the orientation is correct right from the beginning with the original. Maybe one more step in the import process, for those of us who don't mind it, BUT it's also one more step I DON"T have to do in Lightroom, Photoshop, or any other program. And the rotataion in Lightroom are temporary to the eye anyway.
    This is good feature/option to add to the import. Lightroom ROCKS. It just elimanted a multi-step, multi-software import process. Almost. The "rotate during import" feature would seal the deal. It's a big deal to me. Like the Apple Image Capture, you could place rotation icons on each image in the preview window. If you added that, man, solid gold!
    thanks,
    Craig

    DW Harrison:
    Sure, I get that, but I can understand how non-destructive editing is useful in image adjustments where later you may regret having added too much saturation in the reds, so you're glad you can go back to the original. But who wants a portrait image rotated in landscape orientation EVER? It's a personal preference, and, no, not a priority in my opinion.
    Ian:
    You may think your post was enlightening, but, perhaps to someone else. Surely not me. I've always known what the 'real cause' is -- some software, i.e. WEB BROWSWERS, ignore the EXIF tag. Hence, my question was more of a philosophical one: why have portrait images rotated sideways, only to have aware applications ON-THE-FLY rotate them according to the EXIF tag? Why not just have the original file re-written in different dimensions?
    For that matter, I specifically spelled out 'why can't... [the file be] rewritten from 800x600 to 600x800'. Hence I find your response 'They will be if the rotation tag is set in the camera' pretty darn irrelevant. No, they WON'T be rewritten rotated. Only by Graphic Converter if you have the option selected, or other applications that don't come to mind right now.

  • Images become pixelated after Rendering

    Hi,
    I have a rather old version of Premiere Pro. (V 7.0) and I'm trying to put stills in my video but when I do and then render the video, all my images become pixelated. The images started out crisp and clear before rendering. I have been resizing/ repositioning the images but I tried without resizing and the images still become blurred and pixelated. I've tried exporting to see if it was just the viewer but video comes out pixelated as well. I've tried several things:
    Images are PNGs. I've tried .Tiff and  .Jpg  and neither made a difference.
    Images that are not resized pixelate as well.
    Quality is set to Highest.
    Zoom Level is 100%
    Tried setting Pixel Aspect Ratio to Square pixels.
    Below is an example of my problem. The images have yet to be resized and are still becoming pixelated.

    I'm having same issue.   Premiere Pro has THE WORST customer support.  I waited on hold for over 1 hour and 18 minutes, and when I got connected 10 minutes 'til 9, they said I had called in too late, and that is why my call was transferred to a sales person.    I'm looking to ditch my PP CC and find something with better customer support...let me know if you find something as well.

  • I was painting in photoshop and accidently rotated all the layers and the canvas how do i realign it?

    i was painting in photoshop and accidently rotated all the layers and the canvas. how do i realign them?

    dubrox666 wrote:
    Image rotation works if the canvas isn't rotated, the canvas was rotated by acciedent (gesture on my tablet) and image roate dosen't fix the canvas when it is rotated, even my guides were coming in crooked, image rotate rotated my image but not the canvas, it happened to me again so i reverted to my previous save, even my instructor dosen't have an answer?!!
    Risto
    Good gracious.  It sounds like you were able to rotate the canvas a more or less exact multiple of 90° or you'd have spotted that it was skewed.  I just tried it using the r shortcut, and while it is doable, it is not particularly easy to rotate the canvas to a point where it could fool you.  What does surprise me, is that while the Options bar shows the degree of rotation while the r key is depressed, I could see nothing on the UI to tell me that the canvas was rotated.  That's something that you might want to start a thread on the Photoshop Feedback page.
    Photoshop Family Customer Community
    Anyway, Escape is the usual way to cancel rotate canvas.

Maybe you are looking for