<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>Right, <br>got the copy image working by doing as suggested by Micheal,<br><br><div>&gt;The info you need to gather is...</div>
<div>&gt;imageName, channelList, pixelsType, physSizeX, physSizeY, physSizeZ, sizeX, sizeY, sizeZ, sizeT, timeStamp, &gt;dimensionOrder, statsInfo(for GlobalMin/Max), sha1.</div>

<div>&nbsp;&gt;Then you need to create the channel object, logical channel object, populate the logical channels with your emission &gt;wavelengths, attach the logical channels to the channel object, the channel object to the pixels, the pixels to the image, &gt;then saveAndReturn the newImage.</div>
<div><br>A bit long handed, but seems to work as I end up with an unattached image full of black of the same dimensions as the source image. <br><br>Now I am trying to populate the plane data.<br>So I use the getPlane() on my source Image, and the setPlane() on my destination Image.<br><br>However this seems to run out of memory after a while, the crash I get is:<br><br>&nbsp;&nbsp;&nbsp; reason = "OutOfMemoryError occurred while allocating a ByteBuffer"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IceInternal.Buffer.reserve(Buffer.java:163)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IceInternal.Buffer.resize(Buffer.java:72)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IceInternal.Buffer.expand(Buffer.java:59)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IceInternal.BasicStream.expand(BasicStream.java:2031)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IceInternal.BasicStream.writeInt(BasicStream.java:872)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at omero.api._RawPixelsStoreDelM.setPlane(_RawPixelsStoreDelM.java:1128)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at omero.api.RawPixelsStorePrxHelper.setPlane(RawPixelsStorePrxHelper.java:1546)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at omero.api.RawPixelsStorePrxHelper.setPlane(RawPixelsStorePrxHelper.java:1518)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at omeroconnect.Main.setPlane(Main.java:906)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at omeroconnect.Main.main(Main.java:110)<br>Caused by: java.lang.OutOfMemoryError: Java heap space<br><br>Anyone had this happen to them? Any help would be appreciated. Can post code if needed.<br>Thanks,<br><br>j.<br></div><br /><hr />Beyond Hotmail - see what else you can do with Windows Live. <a href='http://clk.atdmt.com/UKM/go/134665375/direct/01/' target='_new'>Find out more.</a></body>
</html>