|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectKakaduUtilities
public class KakaduUtilities
Class with utility methods.
Method Summary | |
---|---|
static void |
computeRegions(Rectangle sourceBounds,
Dimension destSize,
ImageWriteParam param)
Compute the source region and destination dimensions taking any parameter settings into account. |
static int[] |
findOptimalResolutionInfo(int sourceDWTLevels,
int newSubSamplingFactor)
Find the optimal subsampling factor, given a specified subsampling factor as input parameter, as well as the number of DWT levels which may be discarded. |
static List<ImageReaderWriterSpi> |
getJDKImageReaderWriterSPI(ServiceRegistry registry,
String formatName,
boolean isReader)
|
static void |
initializeKakaduMessagesManagement()
Initializing kakadu messages as stated in the KduRender.java example |
static boolean |
isKakaduAvailable()
Returns true if the Kakadu native library has been loaded. |
static void |
loadKakadu()
Forces loading of Kakadu libs. |
static BufferedImage |
subsampleImage(ColorModel cm,
BufferedImage bi,
int destinationWidth,
int destinationHeight,
int interpolationType)
Transforms the provided BufferedImage and returns a new
one in compliance with the required destination bimage properties,
adopting the specified interpolation algorithm |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int[] findOptimalResolutionInfo(int sourceDWTLevels, int newSubSamplingFactor)
sourceDWTLevels
- the number of DWT levels in the source imagenewSubSamplingFactor
- the specified subsampling factor for which we need to find
an optimal subsampling factor
public static void initializeKakaduMessagesManagement()
public static List<ImageReaderWriterSpi> getJDKImageReaderWriterSPI(ServiceRegistry registry, String formatName, boolean isReader)
public static BufferedImage subsampleImage(ColorModel cm, BufferedImage bi, int destinationWidth, int destinationHeight, int interpolationType)
BufferedImage
and returns a new
one in compliance with the required destination bimage properties,
adopting the specified interpolation algorithm
cm
- the ColorModel
to be used in the warpingbi
- the original BufferedImagedestinationRegion.width
- the required destination image widthdestinationRegion.height
- the required destination image heightinterpolationType
- the specified interpolation type
BufferedImage
having size =
destinationRegion.width*destinationRegion.height which is the
result of the WarpAffineresu.public static boolean isKakaduAvailable()
true
if the Kakadu native library has been loaded.
false
otherwise.
true
only if the Kakadu native library has been
loaded.public static void loadKakadu()
public static void computeRegions(Rectangle sourceBounds, Dimension destSize, ImageWriteParam param)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |