# Print output for @column tags ?> ScanningRect | Android Developers

Most visited

Recently visited

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

Fields

public static final Creator<ScanningRect> CREATOR

Public constructors

ScanningRect(float widthPercentage, float heightPercentage)

Creates a ScanningRect taking up the requested percentages of width and height for an image.

Public methods

int describeContents()
void writeToParcel(Parcel out, int flags)

Fields

CREATOR

public static final Creator<ScanningRect> CREATOR

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 ()

Returns
int

writeToParcel

public void writeToParcel (Parcel out, 
                int flags)

Parameters
out Parcel

flags int