|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.twainconnect.core.RegionOfInterest
public class RegionOfInterest
Used for cropping an image
| Constructor Summary | |
|---|---|
RegionOfInterest()
default ctor with the default uom in empirical inches |
|
RegionOfInterest(float top,
float bottom,
float right,
float left)
By default the UOM is Inches Given the following numbers as an example we will start cropping an image from the upper left corner and get a 3.0" x 1.0" image private float left; //0 private float top; //0 private float right; // 3 Inches Wide private float bottom; // 1 Inch Tall |
|
| Method Summary | |
|---|---|
float |
getBottom()
|
float |
getLeft()
|
float |
getRight()
|
float |
getTop()
|
UnitOfMeasure |
getUom()
|
void |
setBottom(float bottom)
|
void |
setHieght(float hieght)
|
void |
setLeft(float left)
|
void |
setRight(float right)
|
void |
setTop(float top)
|
void |
setUom(UnitOfMeasure uom)
|
void |
setWidth(float width)
|
java.lang.String |
toString()
Display the current values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RegionOfInterest()
public RegionOfInterest(float top,
float bottom,
float right,
float left)
top - bottom - right - left - | Method Detail |
|---|
public float getBottom()
public float getLeft()
public float getRight()
public float getTop()
public UnitOfMeasure getUom()
public void setUom(UnitOfMeasure uom)
uom - the uom to setpublic void setBottom(float bottom)
bottom - using a floatpublic void setHieght(float hieght)
hieght - using a floatpublic void setLeft(float left)
left - using a floatpublic void setWidth(float width)
width - using a floatpublic void setRight(float right)
right - using a floatpublic void setTop(float top)
top - using a floattpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||