473,238 Members | 1,909 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,238 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 3002
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: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.