From: crazy on
In article <1153051984.985923.278810(a)35g2000cwc.googlegroups.com>,
Mike Williams <gagamomo(a)yahoo.co.uk> wrote:
>
>You can draw lines in the standard "pixel drawing" way (as in Paint) or
>as components of a metafile (as in Corel Draw). But if, as you say,
>you're no good at drawing then how are you going to define the lines
>and curves to make up your drawing of a tulip? Do you mean you're
>looking for some VB code that already knows what a tulip looks like?
>
>Mike
>

The problem is that I don't know where to start. Should I take the
trouble of defining some simple curves to draw an outline of a simple
tulip and then make things more sophisticated later, or has someone
already been doing this for years who could tell me a good way to
define the curves and colouring and shading? A closed tulip, I thought
might be easier than a complicated flower, but anything similar could
be interesting to see. Once the curves are defined, I will use Line
commands to draw it in very small segments, may be two pixels in
length. If the drawing and colouring takes place slowly, it will look
nicer, so I don't intend to make the algorithm computationally
efficient.

From: Mike Williams on

crazy wrote:

> A closed tulip, I thought might be easier than a complicated
> flower, but anything similar could be interesting to see. Once
> the curves are defined, I will use Line commands to draw it in
> very small segments . . . . .

As David has said, you can use the PolyLine and the Polygon APIs for
drawing. You can also use the LineTo API and the PolyPolyLine and
PolyPolygonand Arc and Ellipse and PolyBezier and all sorts of other
drawing methods. And when you have drawn enclosed shapes you can use
the Floodfill API to fill them in whatever colours you require. Also,
routines which themselves draw enclosed shapes (such as the Polygon
API) are capable of filling those shapes as they draw them. You could
even use the simpler VB Line and Circle methods for many shapes. There
are all sorts of possibilities. The problem is that all of these
functions will do exacty what you tell it to do and nothing more, so
that to define lines and arcs and beziers and things that will together
draw the shape of a tulip (or anything else for that matter) requires
some artistic skill (which I haven't got!). Even if you were to use a
sophisticated drawing package, such as Corel Draw, you would still need
artistic talent to draw anything (or at least to draw anything that
looked good). So, if you're asking for help in how to actually use the
various drawing functions then there are lots of people here who can
help you. But if you're asking for help in actually drawing specific
objects (such as tulips, for example) with any sort of quality then I'm
afraid you've narrowed the field quite a lot ;-)

Mike