code: function () {
                  var _this = this;
                  return new Promise(function (resolve, reject) {
                      _this.processing.emit(true);
                      setTimeout(function () {
                          /** @type {?} */
                          var dst = cv.imread(_this.editedImage);
                          // const dst = new cv.Mat();
                          cv.transpose(dst, dst);
                          cv.flip(dst, dst, 1);
                          cv.imshow(_this.editedImage, dst);
                          // src.delete();
                          dst.delete();
                          // save current preview dimensions and positions
                          /** @type {?} */
                          var initialPreviewDimensions = { width: 0, height: 0 };
                          Object.assign(initialPreviewDimensions, _this.previewDimensions);
                          /** @type {?} */
                          var initialPositions = Array.from(_this.points);
                          // get new dimensions
                          // set new preview pane dimensions
                          _this.setPreviewPaneDimensions(_this.editedImage);
                          // get preview pane resize ratio
                          /** @type {?} */
                          var previewResizeRatios = {
                              width: _this.previewDimensions.width / initialPreviewDimensions.width,
                              height: _this.previewDimensions.height / initialPreviewDimensions.height
                          };
                          // set new preview pane dimensions
                          _this.limitsService.rotateClockwise(previewResizeRatios, initialPreviewDimensions, initialPositions);
                          _this.showPreview().then(function () {
                              _this.processing.emit(false);
                              resolve();
                          });
                      }, 30);
                  });
              }
docs: ************************ // Image Processing Methods // ************************ // 
  rotate image 90 degrees
  @private
  @return {?}