Package org.esa.snap.core.image
Class LevelImageSupport
java.lang.Object
org.esa.snap.core.image.LevelImageSupport
- Direct Known Subclasses:
ImageReadBoundsSupport
Supports the development of images, which are returned by implementations of the
MultiLevelSource interface.-
Constructor Summary
ConstructorsConstructorDescriptionLevelImageSupport(int sourceWidth, int sourceHeight, int level, double scale) LevelImageSupport(int sourceWidth, int sourceHeight, ResolutionLevel level) -
Method Summary
Modifier and TypeMethodDescriptionintgetLevel()doublegetScale()final intgetSourceCoord(double destCoord, int min, int max) intfinal intgetSourceHeight(int destHeight) getSourceRectangle(Rectangle destRect) intfinal intgetSourceWidth(int destWidth) final intgetSourceX(int tx) final intgetSourceY(int ty)
-
Constructor Details
-
LevelImageSupport
-
LevelImageSupport
public LevelImageSupport(int sourceWidth, int sourceHeight, int level, double scale)
-
-
Method Details
-
getSourceWidth
public int getSourceWidth() -
getSourceHeight
public int getSourceHeight() -
getLevel
public int getLevel() -
getScale
public double getScale() -
getSourceX
public final int getSourceX(int tx) -
getSourceY
public final int getSourceY(int ty) -
getSourceWidth
public final int getSourceWidth(int destWidth) -
getSourceHeight
public final int getSourceHeight(int destHeight) -
getSourceCoord
public final int getSourceCoord(double destCoord, int min, int max) -
getSourceRectangle
-