I solved the problem with another solution:
if( (x-(int)x) > 0.999 )
if( (y-(int)y) > 0.999 )
But I want to try your tip, it seems more rational.
> > Hi all!
> > I get points from a DXF file and I'd like to draw the image in a TPaint
> > TImage.
> > (The points will be connected with lines, there aren't shapes).
> > I looked in the help and in some examples but I can't understand how to
> > this.
> > Can anyone help me or tell me where can I find infos or simple
> > Thx,
> > Evan
> If you have an array of TPoints you can use
> image->Canvas->Polyline(arrayOfPoints, numberOfPointsInArray);
> This draws a series of lines, connecting the first point to the second
> point, the second point to the third point, and so on. You can also use
> image->Canvas->Polygon(arrayOfPoints, numberOfPointsInArray);
> This is the same as polyline except a line is also drawn between the last
> point in the array to the first point, forming a closed polygon.
> Also check out the help on TCanvas::MoveTo and TCanvas::LineTo.
> Hope this helps,