Revision 8460 trunk/libraries/libjni-mrsid/src/es/gva/cit/jmrsid/LTIImage.java

View differences:

LTIImage.java
50 50

  
51 51
package es.gva.cit.jmrsid;
52 52

  
53
import java.io.*;
54 53

  
55 54
/**
56 55
 * Clase base que representa a una im?gen.
......
70 69
	private native long getNoDataPixelNat(long cPtr);
71 70
	private native int getGeoCoordNat(long cPtr, LTIGeoCoord geocoord);
72 71
	private native void FreeLTIImageNat(long cPtr);
72
	private native double getMinMagnificationNat(long cPtr);
73
	private native double getMaxMagnificationNat(long cPtr);
73 74
	
74 75
	LTIGeoCoord geocoord=null;
75 76
	
......
298 299
	 	else return pixel;
299 300

  
300 301
	 }
302
	 
303
	 /**
304
	  * This function returns the minimum magnification of the image. 
305
	  * Images that do not support "zooming out" will return 1.0; images that contain "overviews"
306
	  * 
307
	  * @throws MrSIDException
308
	  * @return the minimum magnification
309
	  */
310
	  public double getMinMagnification()throws MrSIDException{
311
			
312
		if(cPtr <= 0)
313
		 	throw new MrSIDException("Error en getMinMagnification(). El Open del MrSID no tuvo ?xito");
314
			
315
		return this.getMinMagnificationNat(cPtr);
301 316
	
317
	  }
318
	  
319
	  /**
320
	   * This function returns the minimum magnification of the image. 
321
	   * Images that do not support "zooming out" will return 1.0; images that contain "overviews"
322
	   * 
323
	   * @throws MrSIDException
324
	   * @return the minimum magnification
325
	   */
326
	   public double getMaxMagnification()throws MrSIDException{
327
				
328
		if(cPtr <= 0)
329
		 	throw new MrSIDException("Error en getMaxMagnification(). El Open del MrSID no tuvo ?xito");
330
				
331
		return this.getMaxMagnificationNat(cPtr);
332
		
333
	   }
334
	
302 335

  
303 336
}

Also available in: Unified diff