<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi,<div><br></div><div>I am trying to set the rendering colours for an image I upload to the server via the C++ API...</div><div>The image upload is all good, but I am a little confused with setting the rendering options...</div><div><span style="font-size: 10pt; ">I am uploading a 3 channel image, and I set the render settings as follows:</span></div><div><br></div><div><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre; ">        </span><span style="font-size: 10pt; ">for(int c=0; c<csize; c++)</span></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if(c==0)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>renderingEngine->setChannelWindow(c, float(0), float(255));</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>renderingEngine->setRGBA(c, 255, 0, 0, 255);</div><div><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre; ">                </span><span style="font-size: 10pt; ">}</span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if(c==1)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>renderingEngine->setChannelWindow(c, float(0), float(255));</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>renderingEngine->setRGBA(c, 0, 255, 0, 255);</div><div><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre; ">                </span><span style="font-size: 10pt; ">}</span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if(c==2)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>renderingEngine->setChannelWindow(c, float(0), float(255));</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>renderingEngine->setRGBA(c, 0, 0, 255, 255);</div><div><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre; ">                </span><span style="font-size: 10pt; ">}</span></div><div><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre; ">        </span><span style="font-size: 10pt; ">}</span></div></div><div><span style="font-size: 10pt; "><br></span></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>renderingEngine->saveCurrentSettings();</div><br class="Apple-interchange-newline"></div><div>Basically I want my 3 channel image to be red, green, blue....</div><div>However the first two channels appear as white, whilst only the last is blue... I tried moving the <span style="font-size: 10pt; ">saveCurrentSettings() after each channel call, but no joy.</span></div><div><span style="font-size: 10pt; ">I'm sure it's something simple, but can't figure it out... </span></div><div>Thanks in advance,</div><div><br></div><div><span style="font-size: 10pt; ">Jerome.</span></div>                                            </div></body>
</html>