Hi,
Kind of a strange problem - this is happening only from a specific windows based software (I think it is .NET based). When I try and copy an X-Ray image from this software and paste it to ImageJ, the Image is getting split. If I paste the same image to Paint or MS Word, it pastes it fine. Not sure if I can share the images as attachments to this listserv, but has anyone encountered something similar. Thanks. Arindam |
Hello everyone,
Has anyone faced this issue before or suggestions on how to debug? Just following up… Thanks. Arindam On Mar 4, 2012, at 11:32 AM, Arindam Chatterjee wrote: > Hi, > > Kind of a strange problem - this is happening only from a specific windows > based software (I think it is .NET based). When I try and copy an X-Ray > image from this software and paste it to ImageJ, the Image is getting split. > If I paste the same image to Paint or MS Word, it pastes it fine. Not sure > if I can share the images as attachments to this listserv, but has anyone > encountered something similar. > > > > Thanks. > > Arindam |
Hi Arindam,
for debugging, you could try to convert ij.plugin.Clipboard.java to an external plugin, than you can place debug messages into its showSystemClipboard() method and use Copile&run instead of Paste: Replace 'package ij.plugin;' with 'import ij.plugin.*;' In 'public void run(String arg)', enter as a first line: arg="paste"; Than you can log all kinds of properties of the img image that you get in showSystemClipboard,e.g. IJ.log(img.getClass().getName); to see whether it is a BufferedImage; if it is one, you can cast it to a BufferedImage and get its type: IJ.log("type="+((BufferedImage)img).getType()); ImageJ expects an RGB image, TYPE_INT_RGB, so the type should be 1. If it is not, this would be something to report to Wayne... Michael ________________________________________________________________ On Mar 5, 2012, at 20:44, Arindam Chatterjee wrote: > Hello everyone, > > Has anyone faced this issue before or suggestions on how to debug? Just following up… > > Thanks. > Arindam > > On Mar 4, 2012, at 11:32 AM, Arindam Chatterjee wrote: > >> Hi, >> >> Kind of a strange problem - this is happening only from a specific windows >> based software (I think it is .NET based). When I try and copy an X-Ray >> image from this software and paste it to ImageJ, the Image is getting split. >> If I paste the same image to Paint or MS Word, it pastes it fine. Not sure >> if I can share the images as attachments to this listserv, but has anyone >> encountered something similar. >> >> >> >> Thanks. >> >> Arindam |
Hi Michael,
Thanks for that input. Wayne has suggested trying a plugin - I do see that the image coming from the clipboard is of the CF_DIB clipboard type. I am trying to modify the plugin to understand that format so it can paste it right. Thanks again! Arindam On Mar 6, 2012, at 10:35 AM, Michael Schmid wrote: > Hi Arindam, > > for debugging, you could try to convert ij.plugin.Clipboard.java to an external plugin, than you can place debug messages into its showSystemClipboard() method and use Copile&run instead of Paste: > > Replace 'package ij.plugin;' with 'import ij.plugin.*;' > In 'public void run(String arg)', enter as a first line: > arg="paste"; > > Than you can log all kinds of properties of the img image that you get in showSystemClipboard,e.g. > IJ.log(img.getClass().getName); > to see whether it is a BufferedImage; if it is one, you can cast it to a BufferedImage and get its type: > IJ.log("type="+((BufferedImage)img).getType()); > > ImageJ expects an RGB image, TYPE_INT_RGB, so the type should be 1. > If it is not, this would be something to report to Wayne... > > Michael > ________________________________________________________________ > On Mar 5, 2012, at 20:44, Arindam Chatterjee wrote: > >> Hello everyone, >> >> Has anyone faced this issue before or suggestions on how to debug? Just following up… >> >> Thanks. >> Arindam >> >> On Mar 4, 2012, at 11:32 AM, Arindam Chatterjee wrote: >> >>> Hi, >>> >>> Kind of a strange problem - this is happening only from a specific windows >>> based software (I think it is .NET based). When I try and copy an X-Ray >>> image from this software and paste it to ImageJ, the Image is getting split. >>> If I paste the same image to Paint or MS Word, it pastes it fine. Not sure >>> if I can share the images as attachments to this listserv, but has anyone >>> encountered something similar. >>> >>> >>> >>> Thanks. >>> >>> Arindam |
Free forum by Nabble | Edit this page |