applyCropComponentTranslateOffset method

Offset applyCropComponentTranslateOffset()

Implementation

Offset applyCropComponentTranslateOffset(){
  double width = currentWidthCrop.value;
  double height = currentHeightCrop.value;
  double left = currentLeftCrop.value;
  double top = currentTopCrop.value;
  return Offset((videoWidth.value - width)/2 - left, (videoHeight.value - height)/2 -top);
}