You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Arindam Chatterjee <ar...@edossea.com> on 2012/02/22 23:23:00 UTC

Help with Image Copy/Paste - Drag/Drop

Hi,
I am running into some issues copying and pasting an image from a dental x-ray imaging software into Pivot. For some reason the image is getting split along the left 1/3rd and joined to the right. I have attached the original image (although this has been exported from the imaging software as .jpg) and the split image from Pivot. Upon saving the image as .jpg from Pivot, we get the same result. Any thoughts what might be going wrong? On a positive note, copying and pasting from Paint or other imaging software works great. So we can copy from this Dental X-ray imaging software and paste it to paint (it pastes fine) and then copy from paint and paste it into a Pivot applet - then everything works great.

Any help is appreciated.

Thanks.
Arindam



Re: Help with Image Copy/Paste - Drag/Drop

Posted by Sandro Martini <sa...@gmail.com>.
Hi,
we can try to look better at how formats (and what formats) are
handled in the Clipboard in Pivot code.
But please open a jira issue and put a sample image there (if possible
not too big), as a starting point.

Thank you again,
Sandro

Re: Help with Image Copy/Paste - Drag/Drop

Posted by Arindam Chatterjee <ar...@edossea.com>.
Hi,
Following up on this issue. The software I am trying to copy and paste from
is a .NET based app. I confirmed with the vendor of that software that upon
copying the image to the Windows Clipboard, it is copying it in the CF_DIB
format. Hence when it is pasted in Paint or another MS app like Word, it
pastes fine, but possibly a format Pivot/Java needs a plugin or converter
for? I can also copy and paste from Paint into Pivot and it works fine.

Not sure how to replicate this issue though as I can fine open source apps
that can save an image in the CF_DIB format...

Thanks!


Arindam Chatterjee
(515) 419-7384
www.edossea.com





On Thu, Feb 23, 2012 at 7:20 AM, Sandro Martini <sa...@gmail.com>wrote:

> Hi Arindam,
> I'm sorry for this but yes, could be some encoding inside images so
> that Pivot (or better Java) doesn't handle something so good.
> If you have some time could you even try to load/display a sample
> image even from a Java Swing application (could be a bug in Java) ?
>
> Let's update.
>
> Bye,
> Sandro
>

Re: Help with Image Copy/Paste - Drag/Drop

Posted by Sandro Martini <sa...@gmail.com>.
Hi Arindam,
I'm sorry for this but yes, could be some encoding inside images so
that Pivot (or better Java) doesn't handle something so good.
If you have some time could you even try to load/display a sample
image even from a Java Swing application (could be a bug in Java) ?

Let's update.

Bye,
Sandro

RE: Help with Image Copy/Paste - Drag/Drop

Posted by Arindam Chatterjee <ar...@edossea.com>.
Hi Sandro,

I will file the jira issue - the challenge is replicating this outside of
the dental x-ray system. If we export the image from that system and then
copy paste, it works fine. We believe that that system is storing the images
in some proprietary format which pivot is unable to convert. but I will
still post there.

 

Thanks.

Arindam

 

From: Sandro Martini [mailto:sandro.martini@gmail.com] 
Sent: Thursday, February 23, 2012 2:48 AM
To: user@pivot.apache.org
Subject: Re: Help with Image Copy/Paste - Drag/Drop

 

Hi,
I have never seen this problem in a Pivot Applet/Application, it's really
strange ... could you file a jira issue for this, and attach there a sample
image so we can try to make some test ? 

And maybe put (even) there the following info:
- what version of Pivot, Java, and Operating System are you using ?
- if you run the code as standard application (for example inside the
development environment) have you got the same problem ?
- and last, have you tried with a simple, minimal Pivot GUI, for example
starting from scratch a window (could be something related to alignment
and/or component sizing) ?

Tell us.
Sandro


Re: Help with Image Copy/Paste - Drag/Drop

Posted by Sandro Martini <sa...@gmail.com>.
Hi,
I have never seen this problem in a Pivot Applet/Application, it's really
strange ... could you file a jira issue for this, and attach there a sample
image so we can try to make some test ?

And maybe put (even) there the following info:
- what version of Pivot, Java, and Operating System are you using ?
- if you run the code as standard application (for example inside the
development environment) have you got the same problem ?
- and last, have you tried with a simple, minimal Pivot GUI, for example
starting from scratch a window (could be something related to alignment
and/or component sizing) ?

Tell us.
Sandro