rotate

Can I programatically control the 'Rotate 180 Degree checkbox' option in HP Printer Driver settings with VBA ?

I'm trying to switch on and off the Rotate 180 degree setting for a HP Laser jet printer (4200/ 4350) using a duplexer unit. The Business has a requirement to "print on both sides", for maximum control I'd like to be able to manipulate at print time (through print macros) whether or not duplex printing is enabled for each of the differe...

Howto avoid image cutoff with <canvas> rotate ?

When you rotate an image using canvas, it'll get cut off - how do I avoid this? I already made the canvas element bigger then the image, but it's still cutting off the edges. Example: <html> <head> <title>test</title> <script type="text/javascript"> function startup() { var canvas = document.getElementById('c...

Canvas rotate from bottom center image angle?

How do you rotate an image with the canvas html5 element from the bottom center angle? See http://uptowar.com/test.php for my current code and image: <html> <head> <title>test</title> <script type="text/javascript"> function startup() { var canvas = document.getElementById('canvas'); var ctx = canvas.ge...

Rotating an image in all browsers (canvas in IE?)

I finally got to work with canvas only to find out that it is not implemented in IE. I tried explore canvas from google to use it in Internet Explorer, but it's not working for my code (http://uptowar.com/test.php - little bug though that it is not removing the old image when rotating). So, is there an other way to smoothly rotate an im...

Howto rotate image using jquery rotate plugin?

How do you rotate an image using jquery (www.jquery.com) rotate plugin (http://code.google.com/p/jquery-rotate/)? I have tried the following and it doesn't seem to work: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>View Photo</title> <script type="text/javascript" src="scripts/jquery.j...

[JAVASCRIPT/HTML5] Howto equal Microsoft.Matrix filter to canvas rotate?

Is anyone able to help with this universal rotate function (it's for jquery, but this is a javascript thing) : http://pastebin.com/m382b30e I changed the non IE canvas code so it'll rotate around the image's center (see http://uptowar.com/jquery in firefox). Now I need to change the IE microsoft filter to do the same (see the same url i...

[Flex] -Rotating image

Hi, To image rotate I used Matrix class. Rotating work very well, but if I try scroll - image hide. How to solve this problem ? How to rotate big Image ? Flex Code[Rotate]: var tmpMatrix:Matrix = wImage.transform.matrix; var oHeight:Number = wImage.height / 2; var oWidth:Number = wImage.width / 2;`` tmpMatrix.translate(-oWidth, -oHeigh...

How can I rotate log files monthly using Perl?

In Unix, I need to be able to archive log files into monthly folders, labelled accordingly. How do I do this in Perl? ...

Rotate image math (C#)

I have an image with two points, aligned something like this: |----------------| | | | . | | | | . | | | |----------------| I have both X, Y coordinates for both points and I need to rotate the image X degrees so it looks like this instead: |----------------| | ...

UITabBarController and rotation

Hi, I'm having a real issue with UITabBarController. The outcome I'm after is the following: 1) in portrait mode, a simple tab bar based application (with navigation bars) nothing too fancy. 2) in landscape mode, I want to use my own UIViewController ignoring the UITabBar completely. The approach (I tried many variants) I tried last wh...

How do i rotate flash video every few minutes?

I'd like to rotate flash video on my website after 5 minutes to a new video. Autorotate it. ...

Object won't rotate?

void RenderBrain(void) { glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_MODELVIEW); ifstream myFile("brainData.txt"); if (!myFile.is_open()) { cout << "Unable to open file"; exit(1); // terminate with error } glRotatef(80.0f, 1.0f, 0.0f, 0.0f); while (! myFile.eof()) { myFile>>a[0]; myFile>>a[1]; myFile>>a[2]; myFile>>a[3];...

Lossless JPEG Rotate (90/180/270 degrees) in Java?

Is there a Java library for rotating JPEG files (90/180/270 degrees) without quality degraded? ...

Can Any one offer me a sample in gdi+ to draw an image on canvas?

I need to draw an image with a certain angle on a canvas, it need to rotate angle N , and its center is on x, y Matrix myPathMatrix; myPathMatrix.Translate(x, y, MatrixOrderAppend); myPathMatrix.Rotate(angle, MatrixOrderAppend); canvas->SetTransform(&myPathMatrix); Draw(canvas);// draw the image myPathMatrix.Rotate(-an...

How to avoid Alias when rotate the image in gdi+?

I have a problem on roating an Image on a canvas in gdi+, I am using the following code, however I find there are alias on the edge. myPathMatrix.Rotate(GetDCAngle(), MatrixOrderAppend); myPathMatrix.Translate( GetDCX(), GetDCY(), MatrixOrderAppend); canvas->SetTransform(&myPathMatrix); canvas->Draw(XXX); I used the following code t...

Rotate png using PHP or Javascript

I'm trying to rotate a png that's based off a value in my database (1-360 degrees) however, I'm using it in conjunction with the google mapping api and if I use "header('Content-type: image/png');" my map does not show and only the image. Any ideas? ...

Circular shift operations in C++

Left and right shift operators (<< and >>) are already available in C++. However, I couldn't find out how I could perform circular shift or rotate operations. How can operations like "Rotate Left" and "Rotate Right" be performed? Rotating right twice here Initial --> 1000 0011 0100 0010 should result in: Final --> 1010 0000 110...

Web: solution for image rotate and zoom

I have a web page which displays a large image, for example a page from a magazine. I have no control over the image size or orientation. It's possible that the image may need to be rotated by the user to orient it correctly. Are there any Javascript or Flash solutions that will allow someone to rotate and zoom a given image? Ideally I'...

OpenGL rotate around a spot

Hi, I'm wanting to rotate a gluSphere around a fixed point in a circular motion, like a planet going around the sun. Would it be best to use glRotatef or glTranslate? Cheers! ...

Rotate a point by an angle

I want to know how to work out the new co-ordinates for a point when rotated by an angle relative to another point. I have a block arrow and want to rotate it by an angle theta relative to a point in the middle of the base of the arrow. This is required to allow me to draw a polygon between 2 onscreen controls. I can't use and rotate a...