These are chat archives for openseadragon/openseadragon

15th
Aug 2017
mcst
@mcst
Aug 15 2017 06:42
Hey there, could anyone tell me how to get an image(canvas) by rect from the viewer?
The rotation should be considered
mcst
@mcst
Aug 15 2017 13:21
It returns the rect of the given parameters, I would like to crop and manipulate the image: https://stackoverflow.com/questions/45675644/openseadragon-get-selection-dataurl-blob
imageToViewportRectangle -> return new $.Rect(
            coordA.x,
            coordA.y,
            coordB.x,
            coordB.y,
            rect.degrees + this.getRotation(current)
        );
mcst
@mcst
Aug 15 2017 13:28
I also tried this:
  self.viewer.viewport.viewportToImageRectangle(rect);
    self.viewer.forceRedraw();
but nothing happens
mcst
@mcst
Aug 15 2017 13:37
https://openseadragon.github.io/docs/OpenSeadragon.TiledImage.html#setClip
could work, but i only have a tiledImage that doesn't have this function:
this.tiledImage = OpenSeadragon.ImageTileSource(this.getTile(this.src))
Ian Gilman
@iangilman
Aug 15 2017 16:49
@mcst I've just responded to the Stack Overflow post... hopefully that helps!