0
0
mirror of https://github.com/markusfisch/BinaryEye.git synced 2024-09-20 12:02:17 +02:00

Remove translation restrictions from image to scan

So every part of the image can be moved into the region of
interest (which is always in the center of the screen).
This commit is contained in:
Markus Fisch 2020-11-16 19:53:58 +01:00
parent c8d7be95e9
commit 967cab9c7b
2 changed files with 2 additions and 1 deletions

View File

@ -77,5 +77,5 @@ dependencies {
// https://github.com/zxing/zxing/issues/1170
implementation 'com.google.zxing:core:3.3.3'
implementation 'com.github.markusfisch:CameraView:1.9.1'
implementation 'com.github.markusfisch:ScalingImageView:1.2.0'
implementation 'com.github.markusfisch:ScalingImageView:1.3.0'
}

View File

@ -84,6 +84,7 @@ class PickActivity : AppCompatActivity() {
}
cropImageView = findViewById(R.id.image) as CropImageView
cropImageView.restrictTranslation = false
cropImageView.setImageBitmap(bitmap)
cropImageView.onScan = {
scanWithinBounds(bitmap)