• 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database Internal: Draw paths
#2
If the first and second points are the same, that's just the result of what the digitizer sent me. As a side note, I go through the points array and remove redundant points, but I believe I only start doing that from the 2nd point on (which will make sense after the end of my explanation). MAX_FLOAT does denote the end of the stroke, but the point after it also belongs to the same stroke. Why did I do it this way? I'm currently using a Path object, and I have to do a moveTo and lineTo with the first point and a lineTo with the last point, but everything in between is a quadTo. It just made it simpler to do moveTo on the first point, read until MAX_FLOAT, and then do a lineTo on the last point to complete the stroke in the Path object. From there, I can draw the next stroke if the array happens to contain more than one.
Reply


Messages In This Thread
Database Internal: Draw paths - by sciurius - 06-15-2015, 07:12 AM
RE: Database Internal: Draw paths - by Zubersoft - 06-20-2015, 04:05 PM
RE: Database Internal: Draw paths - by sciurius - 06-21-2015, 03:22 AM



Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.