Re: Anti-aliased drawing



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





.



Relevant Pages

  • Re: Anti-aliased drawing
    ... We have a complex business modelling package that desperately needed a "simple" management overview. ... 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. ... 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. ...
    (microsoft.public.vb.general.discussion)
  • Basic graphics
    ... I have an app front end in directx, but have decided since my graphics are ... In directx i have a texture file full of images and i can take a rectangular ... So i would like to do the same using, i presume gdi which should use a lot ...
    (microsoft.public.dotnet.languages.csharp)
  • The story: Painting bitmap to screen is slow
    ... I've done a lot graphics programming by now and the thing that bothers me with GDI+ in .NET framework the most is slow drawing of bitmaps to screen. ... In Win32, there were two types of bitmaps, compatible and memory bitmap. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: MVC design advice for a simple GUI app.
    ... Even in a Graphics application such as this one, ... I hesitate calling user preferences a "model", ... This all depends on the purpose of your app. ... - this Line class ceases to be a purely non-graphical entity. ...
    (comp.object)
  • Re: regarding graphics object
    ... The GDI+ FAQ shows how to create retained mode graphics systems but notice ... that these still paint all the visible objects at each Paint cycle. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.framework.drawing)