[ome-devel] OMERO API - Loading an Image

jburel j.burel at dundee.ac.uk
Thu Feb 3 10:05:59 GMT 2011


Hi Vanni

You can tune various parameters. I will modify the example to show how  
to tune other parameters e.g. color model, channels on/off.
  In the mean time, you can do the following:

If you want to change the color model ( color or grey scale)
you can do
engine.getAvailableModels()

Select the model you want (Color or grey scale)
engine.setModel(selectedModel)

then render the image


If you want to modify the color of a given channel
Do
Color c = new Color(200, 200, 200, 255);
engine.setRGBA(channelIndex, c.getRed(), c.getGreen(), c.getBlue(),
     						c.getAlpha());
then render the image


Jmarie


More information about the ome-devel mailing list