[ 
https://issues.apache.org/jira/browse/PIVOT-843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451873#comment-13451873
 ] 

Sandro Martini commented on PIVOT-843:
--------------------------------------

Solution Pivot-oriented (but for sources Pivot):
- implement your own version of Clipboard (maybe starting by copying 
org.apache.pivot.wtk.Clipboard), to use only with this kind of images
  -- the point for the workaround is the method public static Manifest 
getContent()
- implement your own version of RemoteManifest, and call it from the previous 
method
  -- the point here is the method public Image getImage()

Note that the proposed fix that uses eclipse SWT is aligned with this solution.

Then for example you could test all this by calling (your version of Clipboard) 
from Javascript embedded in bxml, like pivot_843.bxml.

After looking better at Clipboard and related classes I have to say that I'm 
sorry but it has many static methods and variables, so we can't do so much 
without breaking compatibility ... so I'll close this issue for Pivot (but 
finish to commit test files). And if you agree, we can continue together under 
pivot-contrib ... tell me if/when you are ready.


Otherwise, you can work on a more Java AWT-oriented solution (where the rela 
problem is), like working on DataFlavors available on this clipboard (see 
addFlavorListener), but I'm sorry, I can't say you so much on this.

Be free to post here some update.
Thanks for now.

                
> Copy Paste issues with CF_DIB clipboard type image
> --------------------------------------------------
>
>                 Key: PIVOT-843
>                 URL: https://issues.apache.org/jira/browse/PIVOT-843
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.0.1, 2.0.2
>         Environment: Windows 7
>            Reporter: Arindam
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: clipboard, copy, image, paste, windows
>             Fix For: 2.0.3
>
>         Attachments: AC-CutnPaste.jpg, AC Pano1.dib, AC_Pano.dib, 
> AC_Pano.jpg, CF_DIB Clipboard Java.zip, clipboard.bxml, 
> pivot_843_sample_output_from_test_app_before_the_fix.jpg, pivot_843_test.dib, 
> Re_ [Phil's Notes] Comment_ _Blog Revivified_.pdf
>
>
> Copying and Pasting an image that is of the windows specific CF_DIB clipboard 
> format, causes the image to split about 1/3rd and then re-attached to the 
> remainder of the image. I have been able to locate some previously coded 
> free-standing java code to copy and paste CF_DIB clipboard images. Maybe that 
> code can be incorporated into Pivot to solve this issue?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to