Example usage for android.util SizeF getWidth

List of usage examples for android.util SizeF getWidth

Introduction

In this page you can find the example usage for android.util SizeF getWidth.

Prototype

public float getWidth() 

Source Link

Document

Get the width of the size (as an arbitrary unit).

Usage

From source file:com.android.camera2.its.ItsSerializer.java

@SuppressWarnings("unchecked")
private static Object serializeSizeF(SizeF size) throws org.json.JSONException {
    JSONObject sizeObj = new JSONObject();
    sizeObj.put("width", size.getWidth());
    sizeObj.put("height", size.getHeight());
    return sizeObj;
}