ome.services.blitz.gateway.services
Interface ThumbnailService

All Known Implementing Classes:
ThumbnailServiceImpl

public interface ThumbnailService

Since:
OME3.0
Version:
3.0 (Internal version: $Revision: $Date: $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk, Donald MacDonald      donald@lifesci.dundee.ac.uk

Method Summary
 byte[] getThumbnail(long pixelsId, omero.RInt sizeX, omero.RInt sizeY)
          Get the thumbnail of the image.
 byte[] getThumbnailByLongestSide(long pixelsId, omero.RInt size)
          Get the thumbnail of the image, maintain aspect ratio.
 Map<Long,byte[]> getThumbnailByLongestSideSet(omero.RInt size, List<Long> pixelsIds)
          Get a set of thumbnails, maintaining aspect ratio.
 Map<Long,byte[]> getThumbnailSet(omero.RInt sizeX, omero.RInt sizeY, List<Long> pixelsIds)
          Get a set of thumbnails.
 void setRenderingDefId(long pixelsId, long renderingDefId)
          Set the rendering def from the default to another.
 

Method Detail

setRenderingDefId

void setRenderingDefId(long pixelsId,
                       long renderingDefId)
                       throws omero.ServerError
Set the rendering def from the default to another.

Parameters:
pixelsId - for pixelsId
renderingDefId - see above.
Throws:
DSOutOfServiceException
omero.ServerError

getThumbnail

byte[] getThumbnail(long pixelsId,
                    omero.RInt sizeX,
                    omero.RInt sizeY)
                    throws omero.ServerError
Get the thumbnail of the image.

Parameters:
pixelsId - for pixelsId
sizeX - size of thumbnail.
sizeY - size of thumbnail.
Returns:
see above.
Throws:
DSOutOfServiceException
omero.ServerError

getThumbnailSet

Map<Long,byte[]> getThumbnailSet(omero.RInt sizeX,
                                 omero.RInt sizeY,
                                 List<Long> pixelsIds)
                                 throws omero.ServerError
Get a set of thumbnails.

Parameters:
sizeX - size of thumbnail.
sizeY - size of thumbnail.
pixelsIds - list of ids.
Returns:
see above.
Throws:
DSOutOfServiceException
omero.ServerError

getThumbnailByLongestSideSet

Map<Long,byte[]> getThumbnailByLongestSideSet(omero.RInt size,
                                              List<Long> pixelsIds)
                                              throws omero.ServerError
Get a set of thumbnails, maintaining aspect ratio.

Parameters:
size - size of thumbnail.
pixelsIds - list of ids.
Returns:
see above.
Throws:
DSOutOfServiceException
omero.ServerError

getThumbnailByLongestSide

byte[] getThumbnailByLongestSide(long pixelsId,
                                 omero.RInt size)
                                 throws omero.ServerError
Get the thumbnail of the image, maintain aspect ratio.

Parameters:
pixelsId - for pixelsId
size - size of thumbnail.
Returns:
see above.
Throws:
DSOutOfServiceException
omero.ServerError


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.