[ome-devel] RenderingEngine: setting channel colours
Jerome Avondo
jeromeavondo at msn.com
Thu Mar 22 12:11:25 GMT 2012
Hi,
I am trying to set the rendering colours for an image I upload to the server via the C++ API...The image upload is all good, but I am a little confused with setting the rendering options...I am uploading a 3 channel image, and I set the render settings as follows:
for(int c=0; c<csize; c++) { if(c==0) { renderingEngine->setChannelWindow(c, float(0), float(255)); renderingEngine->setRGBA(c, 255, 0, 0, 255); } if(c==1) { renderingEngine->setChannelWindow(c, float(0), float(255)); renderingEngine->setRGBA(c, 0, 255, 0, 255); } if(c==2) { renderingEngine->setChannelWindow(c, float(0), float(255)); renderingEngine->setRGBA(c, 0, 0, 255, 255); } }
renderingEngine->saveCurrentSettings();Basically I want my 3 channel image to be red, green, blue....However the first two channels appear as white, whilst only the last is blue... I tried moving the saveCurrentSettings() after each channel call, but no joy.I'm sure it's something simple, but can't figure it out... Thanks in advance,
Jerome.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20120322/fb8958ed/attachment.html>
More information about the ome-devel
mailing list