473,383 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Drawing Rotated Ellipses With VB 6

DM
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 easier way to accomplish this or will I have to resort to manual
drawing methods?

Any suggestions greatly appreciated.

-Duncan
Aug 8 '07 #1
4 3014
Hi Duncan,

You can draw ellipses reasonably easily, using the Graphics.DrawEllipse
method. That will only give you a horizontal or vertical orientated ellipse
though. Is that sufficient ?

Regards,

Bill.
"DM" <no****@nospam.orgwrote in message
news:46***********************@pit-reader.telstra.net...
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 easier way to accomplish this or will I have to resort to
manual drawing methods?

Any suggestions greatly appreciated.

-Duncan
Aug 8 '07 #2
Hi DM,

The name of this newsgroup is dotnet.languages.VB

The regulars here are most not using VB6 anymore or have only latent
knowledge.
However there is still an very active newsgroup named
news:\\Microsoft.public.vb.general.discussion

There you find the people who real have still the best knowledge of classic
VB

Why we don't like it to answer it here you ask yourself maybe?

We and others use Google often to search this newsgroup.
It is then not pleasant to see afterwards that a sollution is for VB classic
and not working.in VB for dotNet.

Cor
"DM" <no****@nospam.orgschreef in bericht
news:46***********************@pit-reader.telstra.net...
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 easier way to accomplish this or will I have to resort to
manual drawing methods?

Any suggestions greatly appreciated.

-Duncan

Aug 8 '07 #3
DM
"Bill McCarthy" <Bi**@NOSPAM.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi Duncan,

You can draw ellipses reasonably easily, using the Graphics.DrawEllipse
method. That will only give you a horizontal or vertical orientated
ellipse though. Is that sufficient ?

Regards,

Bill.

Hi Bill,

Thanks for the reply.

Yes I can draw horizontal/vertical ellipses fairly easily but unfortunately
I have to be able to rotate them. The purpose of this is to represent a GPS
error ellipse on a map so they can subsequently have any orientation in a
0-360 degree range.

Also the program is written in VB 6 so I can't use any of the nifty .NET
graphics functions.

-Duncan
Aug 8 '07 #4
Hi Duncan,

Ah. I thought when you meant you were migrating a legacy app ;) Probably
best to ask in one of the VB6 newsgroups. I think you'll need to use Win32
api to draw a polygon or similar (or maybe transform the coordinate)

Regards,

Bill.
"DM" <No****@NoSpam.orgwrote in message
news:cb*******************@news-server.bigpond.net.au...
>
Hi Bill,

Thanks for the reply.

Yes I can draw horizontal/vertical ellipses fairly easily but
unfortunately I have to be able to rotate them. The purpose of this is to
represent a GPS error ellipse on a map so they can subsequently have any
orientation in a 0-360 degree range.

Also the program is written in VB 6 so I can't use any of the nifty .NET
graphics functions.

-Duncan
Aug 8 '07 #5

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

Similar topics

6
by: rzed | last post by:
I'm using PIL to generate some images which may be rotated at the user's option. When they are rotated, the original image is cropped in the new image (which is fine), and the corners are black...
0
by: borhan | last post by:
I am designing a program in which the user will be drawing, lines, circules and so on, on a paint control which displays an image opened by the user. "It's like there is a map on the picturebox...
4
by: Peter Oliphant | last post by:
There doesn't seem to be any documentation on how to create and/or use an instance of System::Drawing::Graphics. On-line MSDN talks about this class, and says: " The Graphics class provides...
8
by: Benoit Martin | last post by:
I had to draw my own control because I couldn't find any control doing what I wanted it to do. This control has a grid that I need to have control over. To do that, I draw each line of the grid...
1
by: Eric Apperley | last post by:
How do I draw rotated text in a Tkinter widget using the draw.text method? Alternatively, if I draw text as normal, how can I then subsequently rotate it about its start point?
2
by: Tilo Pätzold | last post by:
Hi Everybody (especially Microsoft), we build EMF files with rotated text for export to office (powerpoint, word). It is planned that the text can be edited in the office document. Without the...
5
by: Andrew Poulos | last post by:
Is there a right/best way to draw an ellipse using Canvas? (With VML there's the v:oval element which makes the exercise trivial). I tried drawing a 360 degree arc (a circle) and then scaling it...
7
by: ddecoste | last post by:
I have a need to add a visual representation to some data in Access. I need to draw a matix of squares inside another square. I have all the data that I need in a record in Access. The data...
7
by: halo combat22 | last post by:
I need help on a project i was assigned. I need a way to recognize these numbers. Any help is appreciated.
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.