Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Composite to java.awt.Graphics2D object for creating vector graphics
SWT Composite to java.awt.Graphics2D object for creating vector graphics [message #1807521] Fri, 31 May 2019 14:24 Go to next message
Eclipse UserFriend
I have a SWT Composite and I want to create a vector graphic using this composite. Currently, I am doing this by creating a BufferedImage by creating a bitmap of the ImageData of the composite. Using this BufferedImage we can easily create a SVG with the Apache Batik library.

However, the resultant image is NOT a vector, since I am using a bitmap.

What would be the easiest way to create a java.awt.graphics2D from a SWT composite.
Solved: SWT Composite to java.awt.Graphics2D object for creating vector graphics [message #1807709 is a reply to message #1807521] Thu, 06 June 2019 10:21 Go to previous message
Eclipse UserFriend
Installed
Version: 2019-03 (4.11.0)
Build id: 20190314-1200

fixed the problem
Previous Topic:All black pixels when using gc.print(image) / copyToArea sind Windows 10 1809
Next Topic:Keyboard on focused Control hold by AWT under GTK
Goto Forum:
  


Current Time: Sat Jul 12 09:15:02 EDT 2025

Powered by FUDForum. Page generated in 0.03979 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top