File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/kotlin/be/ugent/topl/mio/ui Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -114,13 +114,15 @@ class GraphPanel(private val graph: MultiverseGraph) : JPanel(),
114114 var imageWidth = min(imageSize, renderedWidth)
115115 var imageHeight = min(imageSize, renderedHeight)
116116 if (renderedWidth * renderedHeight < Integer .MAX_VALUE ) {
117- imageWidth = renderedWidth - 450
117+ imageWidth = renderedWidth
118118 imageHeight = renderedHeight
119119 }
120- val image = BufferedImage (imageWidth, imageHeight, BufferedImage .TYPE_INT_RGB )
120+ val scale = 2
121+ val image = BufferedImage (imageWidth * scale, imageHeight * scale, BufferedImage .TYPE_INT_RGB )
121122 val g = image.createGraphics().apply {
122123 setRenderingHint(RenderingHints .KEY_ANTIALIASING , RenderingHints .VALUE_ANTIALIAS_ON )
123124 stroke = BasicStroke (2.0f )
125+ scale(scale.toDouble(), scale.toDouble())
124126 // translate(-(renderedWidth/2 - imageWidth/2),-(renderedHeight/2 - imageHeight/2))
125127 // Used for chunks:
126128 // translate(-(renderedWidth - imageWidth),-(renderedHeight/2 - imageHeight/2) + imageHeight * 3)
You can’t perform that action at this time.
0 commit comments