Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / oDB2D,Line question

Author
Message
tripleF
18
Years of Service
User Offline
Joined: 4th Jun 2006
Location:
Posted: 13th May 2007 09:16 Edited at: 13th May 2007 19:36
Hi i am trying to draw polygons in C# useing this

Problem is the variables are floats, oDB2D.Line dosent like floats.If i cast endx to int and draw the sides they are differrent lengths and dont join up to make a polygon.When i did this in GDK dbLine didnt complain and all sides met up.


How do i get the accuracy back?
edit: got it working used Math.Floor(angle)

Login to post a reply

Server time is: 2024-11-19 13:30:09
Your offset time is: 2024-11-19 13:30:09