volumina icon indicating copy to clipboard operation
volumina copied to clipboard

WIP add pinch zoom

Open m-novikov opened this issue 5 years ago • 2 comments

#!/usr/bin/env python3
from volumina.api import Viewer
from PyQt5.QtWidgets import QApplication

app = QApplication(["TestApp"])
app.setApplicationName("TestApp")
v = Viewer()
v.setWindowTitle("TestApp")
import numpy

a = numpy.random.randint(0, 255, size=(512, 512, 3), dtype=numpy.uint8)
v.addGrayscaleLayer(a, name="raw")
v.show()


def change():
    v.dataShape = (1, 100, 200, 300, 1)


# QTimer.singleShot(200, change)
app.exec_()

m-novikov avatar Jun 27 '19 12:06 m-novikov

@emilmelnikov please test when you have the chance

m-novikov avatar Jun 28 '19 08:06 m-novikov

Tried this on the latest Windows 10 (20H2) with the changes rebased on the current master, but pinch-to-zoom doesn't work.

emilmelnikov avatar Nov 18 '20 07:11 emilmelnikov