mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
Merge pull request #1635 from ManfredKarrer/mk_master
Mirror webcam image at QR code scan view
This commit is contained in:
commit
4c5498744a
@ -22,6 +22,8 @@ import bisq.common.UserThread;
|
||||
import javafx.scene.image.ImageView;
|
||||
import javafx.scene.image.WritableImage;
|
||||
|
||||
import javafx.geometry.Point3D;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
@ -70,6 +72,8 @@ class QrCodeReader extends Thread {
|
||||
if (bufferedImage != null) {
|
||||
WritableImage writableImage = SwingFXUtils.toFXImage(bufferedImage, null);
|
||||
imageView.setImage(writableImage);
|
||||
imageView.setRotationAxis(new Point3D(0.0, 1.0, 0.0));
|
||||
imageView.setRotate(180.0);
|
||||
|
||||
LuminanceSource source = new BufferedImageLuminanceSource(bufferedImage);
|
||||
BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
|
||||
|
Loading…
Reference in New Issue
Block a user