Package com.stripe.android.camera.framework.util
Types
Save data frames for later retrieval.
This exception should never be thrown.
Functions
Given a size and an aspect ratio, resize the area to fit that aspect ratio. If the desired aspect ratio is smaller than the one of the provided size, the size will be cropped to match. If the desired aspect ratio is larger than the that of the provided size, then the size will be expanded to match.
Determine the aspect ratio of a Size.
Determine the aspect ratio of a SizeF.
Return a rect that is the intersection of two other rects
Determine the maximum size of rectangle with a given aspect ratio (X/Y) that can fit inside the specified area.
Determine the minimum size of rectangle with a given aspect ratio (X/Y) that a specified area can fit inside.
Project a region of interest from one Rect to another. For example, given the rect and region of interest:
Takes a relation between a region of interest and a size and projects the region of interest to that new location
This method allows relocating and resizing a portion of a Size. It returns the required translations required to achieve this relocation. This is useful for zooming in on sections of an image.
Calculate the new size based on a percentage scale.
Calculate the new size based on percentage scale values.
Calculate the position of the Size surrounding the surroundedSize. This makes a few assumptions:
Scale up a Size so that it fills a containingSize while maintaining its original aspect ratio.
Scale a size based on percentage scale values, and keep track of its position.