Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » electronic signature(electronic signature and save picture in server)
electronic signature [message #1849387] Sun, 16 January 2022 11:33
David Lee is currently offline David LeeFriend
Messages: 80
Registered: May 2013
Dear all,

I am trying to develop an interface providing electronic signature and saving the signature/screenshot as a JPEG file in server.

Question 1:
For signature, I tried , it works on Chrome/Edge/Safari/Firefox, not works on RAP Browser control.

Question 2:
For saving signature as a JPEG file, I tried
GC gc = new GC(shell.getDisplay());
final Image image = new Image( shell.getDisplay(), shell.getBounds().width, shell.getBounds().height );
gc.copyArea( image, shell.getBounds().x, shell.getBounds().y );

ImageLoader loader = new ImageLoader(); = new ImageData[]{ image.getImageData() };
String fileName = "D:/Temp/_test/a001.jpg"; // or a001.png
new File(fileName);, SWT.IMAGE_PNG);
It works well in RCP, but not in RAP, I looked up on
That supports copyArea(), this does not.

Any guides or examples will be appreciated.
Thank you.


[Updated on: Wed, 19 January 2022 05:25]

Report message to a moderator

Previous Topic:Is there a simple way to create a fake context?
Next Topic:middle align
Goto Forum:

Current Time: Fri Jun 14 06:08:44 GMT 2024

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

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

Back to the top