I want to capture the top of an image with cameraX I know we can apply a ratio on image but when I do that the ratio is applied on the center of the image
I look on different method in ImageCaptureConfig.Builder but i found nothing relevant
val imageCaptureConfig = ImageCaptureConfig.Builder()
.apply {
setTargetAspectRatio(Rational(3, 1)) // I want this but on the top of the image
setCaptureMode(ImageCapture.CaptureMode.MIN_LATENCY)
}.build()