Class FieldImage
java.lang.Object
org.wpilib.fields.FieldImage
Field image metadata.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a field image metadata object.FieldImage(String path, int top, int left, int bottom, int right) Constructs a field image metadata object. -
Method Summary
-
Field Details
-
path
Field image path. JSON files store this relative to the JSON file's directory; built-in fields store the image resource path relative toFields.BASE_RESOURCE_DIR. -
top
public int topTop field boundary in image pixels. -
left
public int leftLeft field boundary in image pixels. -
bottom
public int bottomBottom field boundary in image pixels. -
right
public int rightRight field boundary in image pixels.
-
-
Constructor Details
-
FieldImage
public FieldImage()Constructs a field image metadata object. -
FieldImage
Constructs a field image metadata object.- Parameters:
path- Field image path. JSON files store this relative to the JSON file's directory; built-in fields store the image resource path relative toFields.BASE_RESOURCE_DIR.top- Top field boundary in image pixels.left- Left field boundary in image pixels.bottom- Bottom field boundary in image pixels.right- Right field boundary in image pixels.
-
-
Method Details
-
equals
-
hashCode
-