Center

class Center(aspectRatioNumerator: Int, aspectRatioDenominator: Int) : ImageProcessor.Input.Option.Crop

An option to crop each Input.Frame around the central point to match aspectRatioNumerator/aspectRatioDenominator aspect ratio.

Parameters

aspectRatioNumerator

should be greater than 0.

aspectRatioDenominator

should be greater than 0.

Constructors

Center
Link copied to clipboard
fun Center(aspectRatioNumerator: Int, aspectRatioDenominator: Int)
should be greater than 0.

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

aspectRatioDenominator
Link copied to clipboard
val aspectRatioDenominator: Int
should be greater than 0.
aspectRatioNumerator
Link copied to clipboard
val aspectRatioNumerator: Int
should be greater than 0.