Docmosis API 4.8.0

com.docmosis.template.analysis
Class ImageAnalysis

java.lang.Object
  extended by com.docmosis.template.analysis.ImageAnalysis
All Implemented Interfaces:
Serializable

public class ImageAnalysis
extends Object
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class ImageAnalysis.ImageDetail
           
 
Constructor Summary
ImageAnalysis()
           
 
Method Summary
 long getCombinedMemSize()
          Return the combined in-memory size of all images in bytes.
 ImageAnalysis.ImageDetail[] getImages()
           
static long getMemSize(ImageAnalysis analysis, String imageName)
          Determine the memory used by the image by the given name in the given analysis
 long getMemSize(String imageName)
          Determine the memory used by the image by the given name.
 void setImages(ImageAnalysis.ImageDetail[] images)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageAnalysis

public ImageAnalysis()
Method Detail

setImages

public void setImages(ImageAnalysis.ImageDetail[] images)

getImages

public ImageAnalysis.ImageDetail[] getImages()

getMemSize

public long getMemSize(String imageName)
Determine the memory used by the image by the given name.

Parameters:
imageName -
Returns:
0 if the image is not known

getMemSize

public static long getMemSize(ImageAnalysis analysis,
                              String imageName)
Determine the memory used by the image by the given name in the given analysis

Parameters:
analysis -
imageName -
Returns:
0 if the image is not known

getCombinedMemSize

public long getCombinedMemSize()
Return the combined in-memory size of all images in bytes.

Returns:
0 if there are no images

Docmosis API 4.8.0

Copyright © 2014–2024 Docmosis Pty Ltd. All rights reserved.