Class OpenSlide
java.lang.Object
qupath.lib.images.servers.openslide.jna.OpenSlide
- All Implemented Interfaces:
- Closeable,- AutoCloseable
Minimal Java wrapper for OpenSlide.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classException thrown whenever a request is made after the OpenSlide object has been closed.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close; this is important for cleanup.voiddispose()Dispose the OpenSlide object; this is equivalent toclose().getAssociatedImage(String name) Get a named associated image.Get a list of all associated image names.byte[]Request the bytes for an ICC profile.longGet the height of the full-resolution image (level 0).longGet the width of the full-resolution image (level 0).intGet the total number of pyramid levels.longgetLevelHeight(int level) Get the image height at the specified level.longgetLevelWidth(int level) Get the image width at the specified level.Get an unmodifiable map of all available properties.voidpaintRegionARGB(int[] dest, long x, long y, int level, int w, int h) 
- 
Field Details- 
PROPERTY_NAME_COMMENT- See Also:
 
- 
PROPERTY_NAME_VENDOR- See Also:
 
- 
PROPERTY_NAME_QUICKHASH1- See Also:
 
- 
PROPERTY_NAME_BACKGROUND_COLOR- See Also:
 
- 
PROPERTY_NAME_OBJECTIVE_POWER- See Also:
 
- 
PROPERTY_NAME_MPP_X- See Also:
 
- 
PROPERTY_NAME_MPP_Y- See Also:
 
- 
PROPERTY_NAME_BOUNDS_X- See Also:
 
- 
PROPERTY_NAME_BOUNDS_Y- See Also:
 
- 
PROPERTY_NAME_BOUNDS_WIDTH- See Also:
 
- 
PROPERTY_NAME_BOUNDS_HEIGHT- See Also:
 
 
- 
- 
Method Details- 
disposepublic void dispose()Dispose the OpenSlide object; this is equivalent toclose().
- 
getLevelCountpublic int getLevelCount()Get the total number of pyramid levels.- Returns:
 
- 
getLevel0Widthpublic long getLevel0Width()Get the width of the full-resolution image (level 0).- Returns:
 
- 
getLevel0Heightpublic long getLevel0Height()Get the height of the full-resolution image (level 0).- Returns:
 
- 
getLevelWidthpublic long getLevelWidth(int level) Get the image width at the specified level.- Parameters:
- level-
- Returns:
 
- 
getLevelHeightpublic long getLevelHeight(int level) Get the image height at the specified level.- Parameters:
- level-
- Returns:
 
- 
paintRegionARGB- Throws:
- IOException
 
- 
getPropertiesGet an unmodifiable map of all available properties.- Returns:
 
- 
getAssociatedImageGet a named associated image.- Parameters:
- name-
- Returns:
- Throws:
- IOException
 
- 
getAssociatedImagesGet a list of all associated image names.- Returns:
 
- 
closepublic void close()Close; this is important for cleanup.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
- 
getICCProfileBytesRequest the bytes for an ICC profile.- Returns:
- the bytes of an ICC profile is available, or null otherwise.
- Throws:
- UnsupportedOperationException- if an unsatisfied link error occurred, which indicates that the OpenSlide version is not compatible (it should be 4.0.0 or greater).
 
 
-