Re: Anti-aliased drawing
- From: "Steve Barnett" <noname@xxxxxxxxxxxx>
- Date: Tue, 12 Aug 2008 08:19:18 +0100
It's not a server based app, unfortunately.
We have a complex business modelling package that desperately needed a
"simple" management overview. To make that overview as flexible as possible,
I stuffed a web browser control on a form and generate the content as an
html page that gets formatted using an external css file. That way, I've
been able to keep a generic app for creating the content and have been able
to customise the way it looks on a customer by customer basis by changing
the css file.
All of this happens as a desktop application.
Not sure about using GDI+ as it makes .Net a pre-requisite of my app and
some of my clients have strictly controlled environments that do not include
..Net as a standard option. The paperwork involved in adding it will be
horrendous. Still, I'll keep it on the list of options.
Thanks
Steve
"Bill McCarthy" <Bill@xxxxxxxxxxxxx> wrote in message
news:AB56C2AE-7FA3-44B2-9BFC-7C18C5BC22A4@xxxxxxxxxxxxxxxx
Hi Steve,
This sounds like a good job for GDI+. Given this is a server generated
graphic for a web page, I would suggest trying .NET.
You can also use GDI+ from VB6.... I have posted here with examples in the
past, although I haven't tried setting the SmoothingMode of the graphics
object via the flat API calls to GDI+, but I would think it would be
reasonably easy. You set the graphics SmoothingMode to
SmoothingMode.AntiAlias then just draw your lines/shapes. This will also
let you do gradient fills etc, etc.
"Steve Barnett" <noname@xxxxxxxxxxxx> wrote in message
news:u$fAsC7%23IHA.872@xxxxxxxxxxxxxxxxxxxxxxx
I've got to produce 'dials'. We want to include indicators of percentage
completion on a web page that we generate from VB6 and the boss has
decided it's got to be a series of round dials.
Damn
I've taken the tack that I produce the background of the dial with a
graphics package and, given a few coordinates, I can draw the pointer and
the scale myself using a picture box.
Problem is, the results are rubbish. The background loads and looks
great, but the pointer and the scale, being drawn with picture box line
and circle commands, look really poor. So, I need a way to be able to
draw lines and arcs with anti-aliasing to make them blend in to the
background graphic.
Any suggestions? Failing that, anyone know of a good looking dial ActiveX
that doesn't cost the earth and can save it's results to a jpg or gif?
Thanks
Steve
.
- Follow-Ups:
- Re: Anti-aliased drawing
- From: Bill McCarthy
- Re: Anti-aliased drawing
- References:
- Anti-aliased drawing
- From: Steve Barnett
- Re: Anti-aliased drawing
- From: Bill McCarthy
- Anti-aliased drawing
- Prev by Date: Re: How to detect if file is closed?
- Next by Date: Re: Anti-aliased drawing
- Previous by thread: Re: Anti-aliased drawing
- Next by thread: Re: Anti-aliased drawing
- Index(es):
Relevant Pages
|