src/viewport.js
function(rectangle) {
        return $.Rect.fromSummits(
            this.pixelFromPoint(rectangle.getTopLeft(), true),
            this.pixelFromPoint(rectangle.getTopRight(), true),
            this.pixelFromPoint(rectangle.getBottomLeft(), true)
        );
    }
function(rectangle) {
        return $.Rect.fromSummits(
            this.pixelFromPoint(rectangle.getTopLeft(), true),
            this.pixelFromPoint(rectangle.getTopRight(), true),
            this.pixelFromPoint(rectangle.getBottomLeft(), true)
        );
    }
function ( rectangle ) { return $ . Rect . fromSummits ( this . pixelFromPoint ( rectangle . getTopLeft ( ) , true ) , this . pixelFromPoint ( rectangle . getTopRight ( ) , true ) , this . pixelFromPoint ( rectangle . getBottomLeft ( ) , true ) ) ; }
Convert a rectangle in viewport coordinates to pixel coordinates relative
to the viewer element.
@param {OpenSeadragon.Rect} rectangle the rectangle to convert
@returns {OpenSeadragon.Rect} the converted rectangle
Convert a rectangle in viewport coordinates to pixel coordinates relative to the viewer element .