Re: Smooth lines in Picturebox
- From: "bart.smissaert@xxxxxxxxx" <bart.smissaert@xxxxxxxxx>
- Date: 10 Oct 2006 01:33:31 -0700
I would work in Pixels
OK, how do I do that?
RBS
J French wrote:
On Mon, 9 Oct 2006 21:13:51 +0100, "RB Smissaert"
<bartsmissaert@xxxxxxxxxxxxxxxx> wrote:
Wrote a dll to make graphs from 2-D arrays.
It simply is a form with a picturebox and the lines are drawn like this:
Picture1.Line ((ColOffset + sFirstXWidth / 2) + _
(.Width - (ColOffset + sFirstXWidth)) *
arrDatePercs(i), FirstPoint)- _
((ColOffset + sFirstXWidth / 2) + _
(.Width - (ColOffset + sFirstXWidth)) *
arrDatePercs(i + 1), _
SecondPoint), _
LineColour
All working very well, except the lines are bit jagged.
Any suggestions how to get nice, smooth lines?
Would I need the API for this?
Speedwise I don't need that as it very fast as it is.
I would work in Pixels, they are native to what is really going on,
also I've had strange differences in output on different machines
while using Twips.
I'm not sure that the APIs will give you a better result, things
always boil down to Pixels
.
- Follow-Ups:
- Re: Smooth lines in Picturebox
- From: J French
- Re: Smooth lines in Picturebox
- References:
- Smooth lines in Picturebox
- From: RB Smissaert
- Re: Smooth lines in Picturebox
- From: J French
- Smooth lines in Picturebox
- Prev by Date: Re: Threading in Visual Basic - Many threads
- Next by Date: Re: Threading in Visual Basic - Many threads
- Previous by thread: Re: Smooth lines in Picturebox
- Next by thread: Re: Smooth lines in Picturebox
- Index(es):
Relevant Pages
|