473,563 Members | 2,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A Little Help Needed Rotating Ellipses!

Hi all,
I am writing a program that has to draw musical notes on a staff.

To do this I need to draw Ellispses (representing the notes) on a horizontal
line and rotate them slightly (by 15 degrees). So there might be say, 3
ellispses each one seperated from the next by 30 pixals along the x-axis but
each ellipse should have the same y coordinate.

However everytime I try and rotate the ellispe using the RotateTransform ()
method and then the TranslateTransf or() method (which i use to transform it
back to where i think it should go) it ends up moving around instead of
staying sill and just rotating!
Any help would be grately appreciated
Nov 16 '05 #1
2 3099
Why don't you draw the bitmaps of the notes and symboles needed and place
them on the screen when needed. This way you will have more control over it.

"MichaelH" <Mi******@discu ssions.microsof t.com> wrote in message
news:0C******** *************** ***********@mic rosoft.com...
Hi all,
I am writing a program that has to draw musical notes on a staff.

To do this I need to draw Ellispses (representing the notes) on a
horizontal
line and rotate them slightly (by 15 degrees). So there might be say, 3
ellispses each one seperated from the next by 30 pixals along the x-axis
but
each ellipse should have the same y coordinate.

However everytime I try and rotate the ellispe using the RotateTransform ()
method and then the TranslateTransf or() method (which i use to transform
it
back to where i think it should go) it ends up moving around instead of
staying sill and just rotating!
Any help would be grately appreciated

Nov 16 '05 #2
Try RotateAt

Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor

"MichaelH" <Mi******@discu ssions.microsof t.com> wrote in message
news:0C******** *************** ***********@mic rosoft.com...
Hi all,
I am writing a program that has to draw musical notes on a staff.

To do this I need to draw Ellispses (representing the notes) on a
horizontal
line and rotate them slightly (by 15 degrees). So there might be say, 3
ellispses each one seperated from the next by 30 pixals along the x-axis
but
each ellipse should have the same y coordinate.

However everytime I try and rotate the ellispe using the RotateTransform ()
method and then the TranslateTransf or() method (which i use to transform
it
back to where i think it should go) it ends up moving around instead of
staying sill and just rotating!
Any help would be grately appreciated

Nov 16 '05 #3

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

Similar topics

4
2390
by: Ian Hubling | last post by:
I'm trying to complete a rotating banner ad within a page I have. The rotating add has four images that rotate in three-second increments. I've got the images to rotate ok - but now I want to go one step further and can't figure out how to do it... I want to have it so that when the person clicks on the specific ad, they are taken to a URL...
1
2056
by: Erik Zawadzki | last post by:
I'm trying to write a wrapper functions for a function that uses the stdarg.h ellipses notation for variable arguments. In essense, if the original function is: void foo(int n, ...){ //body } I want to write a function like:
1
3207
by: Sandy Bremmer | last post by:
I have seen many Javascripts that rotate images with each load or refresh of the page but so far all I've found require hard coding the image filename into the script. Does anyone know of a script that pulls images randomly from a directory? Thus I would need only add (or delete) images from that directory and they would display on the web...
6
1096
by: Nathan Sokalski | last post by:
In a recent post of mine I mentioned the inaccurate shapes drawn by FillEllipse. In the response that I recieved I was told that DrawArc had less problems, which I found to be true (I have been using DrawEllipse, but they seem to have the same results when drawing a complete 360). However, even with these methods, there are situations where...
1
1036
by: hosea | last post by:
This is my first post on this site. It is a bit different from other forums I am a member of. All of them have an "Off topic" section. Anyway, here goes my question. I have worked at my present job more than half my life. One thing that has bothered me all that time (26+yrs) is keeping up with my work schedule. I know that if I had an app that...
18
1592
by: hyperboogie | last post by:
Hello all I'm pretty new to C, so please accept my apologies in advance :-) I'm trying to allocate space for an array of pointers to strings (which are accepted as ellipses) inside a while loop, and after the allocation, when i "assert" the allocation, the assertion fails!!! void printStrings(s1, ...){ //ellipses function ....
3
5946
by: avalence | last post by:
Hello, I am trying to create a nice rotating earth globe (on mouse) on my web site, in order to display my professional relationships all over the world. The best way seems to be a javascript. In fact I still hesitate between java and javascript. My question is how can I create a interacting globe using a satellite photo. This is a very...
4
3022
by: DM | last post by:
Hi All, I've recently been given the task of modifying some legacy VB 6 code to do with drawing rotated ellipses on a map at different zoom levels. I guess I could find a formula for drawing one manually using the DrawLine function or I could use the Windows graphics libraries to squash a perfect circle and rotate it... Is there an...
1
2558
by: AR123 | last post by:
Hi I want to set up a rotating banner. Not sure how to incorporate my rotating banner code into the code below. I want the rotating banner to be the main feature image? This is set up in mediasurface My code is: <!-- start page container --> <div id="pageContainer"> <!-- start middle content area --> <div id="genericMiddle">
0
7665
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
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
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
7642
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
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
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...
1
2082
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
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
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.