ScanningRect
public
class
ScanningRect
extends Object
implements
Parcelable
java.lang.Object
|
↳ |
com.vuzix.sdk.barcode.ScanningRect
|
Represents the center portion of an image that will be scanned for barcodes.
Summary
Public constructors |
ScanningRect(float widthPercentage, float heightPercentage)
Creates a ScanningRect taking up the requested percentages of width and height for an image.
|
Fields
Public constructors
ScanningRect
public ScanningRect (float widthPercentage,
float heightPercentage)
Creates a ScanningRect taking up the requested percentages of width and height for an image.
The ScanningRect is always centered in the image.
Parameters |
widthPercentage |
float : percentage between 0.0 and 1.0 |
heightPercentage |
float : percentage between 0.0 and 1.0 |
Throws |
IllegalArgumentException |
if either widthPercentage or heightPercentage are < 0 or > 1
|
Public methods
describeContents
public int describeContents ()
writeToParcel
public void writeToParcel (Parcel out,
int flags)
Parameters |
out |
Parcel |
flags |
int |