Point and Size in Single instead of Integer

  • Thread starter Thread starter C
  • Start date Start date
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?
 
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 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?
 
Back
Top