Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Drawing Scaled Lines  RSS feed

 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I have an application in which I need to draw approximately 10,000 lines on each repaint. This paints very quickly when the scale of the image is 1.0 or less, but when I increase the scale to greater than 1.0, the slowdown several seconds. Below is a very crude example (that draws the lines in the same place, but still the slowdown is noticeable) that illustrates this point. Does anyone know why this happens and what can be done about it?



Thanks,
Jeff
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!