473,554 Members | 3,228 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rotate the graphics without rotate the text in SVG

RC
First, this is a SVG issue, not 100% of XML issue. But I can't find
SVG group to post this. Since SVG is XML file, I post here hopefully
someone know both SVG and XML can help.

Here is my SVG lines

line.blue {stroke:blue;st roke-width:3;}
line.bluedash {stroke:blue;st roke-width:1;stroke-dasharray: 9,5;}

<defs>
<g id="dashLine">
<desc>Dash Line</desc>
<line class="bluedash " x1="0" y1="-280" x2="-280" y2="0" />
</g>
<g id="arrow" stroke="blue" transform="tran slate(0,0)">
<line class="blue" x1="0" y1="-280" x2="0" y2="280" />
<use xlink:href="#da shLine" />
<use xlink:href="#da shLine" transform="scal e(-1,1)" />
<text x="0" y="-280">Arrow</text>
</g>

</defs>

<use xlink:href="#ar row" transform="rota te(180, 0, 0)" />

Now, I rotate the arrow by 60 degrees, but the text also rotate
( read upside down).

I would like rotate the arrow in any degrees, but the text remain
zero degree rotation.

Any idea how do I resolve this problem?
Thank Q very much in advance!
Aug 2 '06 #1
1 1947
* RC wrote in comp.text.xml:
>First, this is a SVG issue, not 100% of XML issue. But I can't find
SVG group to post this. Since SVG is XML file, I post here hopefully
someone know both SVG and XML can help.
There is the svg-developers list on yahoogroups.com .
>I would like rotate the arrow in any degrees, but the text remain
zero degree rotation.
Then you have to organize your document differently, for example, you
can put the arrow and the text in separate groups, and rotate only the
group you want to have rotated.
--
Björn Höhrmann · mailto:bj****@h oehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Aug 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9775
by: Leo | last post by:
I would like to rotate text and draw it starting from certain location, say (10, 20). The problem for me is that it does rotate, but it never draws the text from (10, 20). Will you please tell me where I am wrong? double trangent = Math.Atan2(ptTo.Y - ptFrom.Y, ptTo.X - ptFrom.X); float angle = (float)(trangent * (180/Math.PI)); SizeF...
3
14434
by: Chris | last post by:
Hi, Is it possible to rotate a control on a form ? (e.g. Button, customcontrol) thnx Christian
2
2677
by: Peter Proost | last post by:
Hi group, I got the following piece of code which draws a square with stars round it, now I want the stars to rotate round the square, I can do this with the mx.rotate and a timer and an angle, but this rotates the whole drawing of the stars but what I realy want is for the stars to rotate round it's center point, is this possible? I hope...
1
3060
by: iwdu15 | last post by:
hi, im trying to rotate a gdi drawn object on my form with a keypress....forinstance when i push the down arrow, for it to rotate the object drawn until the top is down, or if i push the right arrow key, to rotate the object until its pointed to the right. i tried using a drawing matrix to accomplish this, but all it did was rotate my entire...
3
6705
by: Eduard Witteveen | last post by:
Hello list, I have code the draw MyDrawingObject information on a System.Drawing.Graphics object. The code is more/less the following: I now want to rotate / mirror the object i draw. I've looked at the System.Drawing.Drawing2D.Matrix, which can be applied on the Transform property of the Graphics object, but it will work on the...
10
10914
by: Joey_Stacks | last post by:
Does anyone know of a scipt that will rotate random div layers on page refresh? I have a primary content area front and center on my site homepage, and I'd like to rotate various chunks of html (in div layers) each time a user reloads the page. Right now I'm resorting to a random image rotation (those scripts are a dime a dozen) on refresh,...
5
6941
by: Gina_Marano | last post by:
Hey All, Is it possible to draw an image upside down? I am using Microsofts example of "Printing a local report without preview". The only trick is that I want to flip the image upside down. Reason: I need to guarantee that I print a barcode in the exact same
13
5351
by: =?Utf-8?B?dmlubw==?= | last post by:
Hello, I have created my proper control and i would to rotate it. In the paint event of my object, i have written : Dim graph As Graphics = myObject.CreateGraphics myMatrix = New System.Drawing.Drawing2D.Matrix myMatrix.Rotate(45, System.Drawing.Drawing2D.MatrixOrder.Append) graph.Transform = myMatrix but it don't work.
0
1947
by: VicJ | last post by:
I'm trying to make a control on which the user can freely drag an image with the mouse and zoom and rotate it with the mouse wheel. I'd like to do this as far as possible using graphics transforms. At the moment, I have the code below in the Paint event handler of a Windows Form. The variables PanOrigin (Point), ZoomFactor (Single, starting value...
0
7570
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8008
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7526
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6113
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5411
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3525
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1992
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1107
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
808
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.