com.twainconnect.core
Class RegionOfInterest

java.lang.Object
  extended by com.twainconnect.core.RegionOfInterest
All Implemented Interfaces:
java.io.Serializable

public class RegionOfInterest
extends java.lang.Object
implements java.io.Serializable

Used for cropping an image

Author:
TwainConnect.com 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
See Also:
Serialized Form

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

RegionOfInterest

public RegionOfInterest()
default ctor with the default uom in empirical inches


RegionOfInterest

public 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

Parameters:
top -
bottom -
right -
left -
Method Detail

getBottom

public float getBottom()
Returns:
the bottom

getLeft

public float getLeft()
Returns:
the left

getRight

public float getRight()
Returns:
the right

getTop

public float getTop()
Returns:
the top

getUom

public UnitOfMeasure getUom()
Returns:
the uom

setUom

public void setUom(UnitOfMeasure uom)
Parameters:
uom - the uom to set

setBottom

public void setBottom(float bottom)
Parameters:
bottom - using a float

setHieght

public void setHieght(float hieght)
Parameters:
hieght - using a float

setLeft

public void setLeft(float left)
Parameters:
left - using a float

setWidth

public void setWidth(float width)
Parameters:
width - using a float

setRight

public void setRight(float right)
Parameters:
right - using a float

setTop

public void setTop(float top)
Parameters:
top - using a floatt

toString

public java.lang.String toString()
Display the current values

Overrides:
toString in class java.lang.Object
Returns:
String "top: " + this.top + " bottom: " + this.bottom + " right :" + this.right + " left: " +this.left + " uom: " + uom;