swing - Fastest Way to Draw a Static Image in Java -
I'm in the process of writing a custom heatmap generator. I'm thinking that most of the boxes (approximately 1 million) in Java Fast way. The questions I have received are focusing on dynamic images (like in games), and I am thinking that there is a better way to go for static images, I swing (through a gridlove and each box By using a colorful canvas), using graphics drawing directly on the panel with 2D and processing libraries. While processing is very fast and generates a clean image, there is a problem keeping it in the window; Whenever you minimize, move windows, still generate different parts of the image.
I have heard of OpenGen, but I have never touched it, and I need some feedback if it (or something) would be a better way before investing in it.
For static images, I color them for a BufferedImage (BI) and then graphics 2 Drawing through D. I keep a boolean which tells me whether there is a binary date or not, in this way I only have to face expensive painting cost once, if you want to imagine, then you will be able to handle small resizing. -Speed Scale To change the size, you may want to repaint the binary again, so that the artifacts do not present. It is also useful for overlaying data (like cross hair, bottom of cursor, etc.) because you are only painting bilateral and data.
Comments
Post a Comment