public final class FileTransformFactory
extends Object


Factory for extracting transform info from image files.

This class is for extracting a OutputTransform from an image file saved by ImageCapture. The OutputTransform represents the transform being applied to the original camera buffer, which can be used by CoordinateTransform to transform coordinates between UseCases.


Public constructors


Public methods

OutputTransform getOutputTransform(ContentResolver contentResolver, Uri uri)

Extracts transform info from the given Uri.

OutputTransform getOutputTransform(InputStream inputStream)

Extracts transform info from the given InputStream.

OutputTransform getOutputTransform(File file)

Extracts transform info from the given File.

boolean isUsingExifOrientation()

Whether the factory respects the exif of the image file.

void setUsingExifOrientation(boolean usingExifOrientation)

Whether to include the ExifInterface.TAG_ORIENTATION.

Inherited methods