Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:24 Go to next message
Sanatt Abrol is currently offline Sanatt AbrolFriend
Messages: 1
Registered: May 2019
Junior Member
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 14:21 Go to previous message
Keith Willenson is currently offline Keith WillensonFriend
Messages: 21
Registered: July 2009
Junior Member
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: Mon Apr 19 16:51:48 GMT 2021

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

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

Back to the top