Point and Size in Single instead of Integer

C

C

After a bit of stumbling, I discovered that Point and Size were
storing my data only in integers, cutting out the detail I need for
drawing smooth curves. The plotting routines did the rest of the work
fine, but the curves looked like steps.

Is there something like PointReal and SizeReal which store two numbers
in Single instead of Integer? I also pass 4 parameters as Rectangle,
instead of writing out all this stuff in the declaration of the Sub.
Is it the same problem there? Thanks.

In the worst case, can I declare Type PointReal and SizeReal like in
VB6, or would that not let me access its properties conveniently?
 
T

Tom Shelton

C brought next idea :
After a bit of stumbling, I discovered that Point and Size were
storing my data only in integers, cutting out the detail I need for
drawing smooth curves. The plotting routines did the rest of the work
fine, but the curves looked like steps.

Is there something like PointReal and SizeReal which store two numbers
in Single instead of Integer? I also pass 4 parameters as Rectangle,
instead of writing out all this stuff in the declaration of the Sub.
Is it the same problem there? Thanks.

In the worst case, can I declare Type PointReal and SizeReal like in
VB6, or would that not let me access its properties conveniently?

PointF and SizeF. Many of the graphics routines have overloads that
accept these types.
 
C

C

C brought next idea :




PointF and SizeF.  Many of the graphics routines have overloads that
accept these types.

Thanks. It solved the problem nicely. There was also RectangleF.

How do you recommend implementing colour selection by the user? Is
there something on MSDN pages I should read first?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top