Save data frames for later retrieval.
This exception should never be thrown.
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.
Center a size on a given rectangle. The size may be larger or smaller than the rect.
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.
Move relative to its current position
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.
Scale a Rect to have a size equivalent to the scaledSize. This will also scale the position of the Rect.
Determine the size of a Rect.
Determine the size of a RectF.
Determine the size of a View.
Converts a size to rectangle with the top left corner at 0,0
Transpose a size's width and height.