示例#1
0
 public void Copy(CropInfo source)
 {
     this.eType = source.eType;
     this.kSingleCrop.Copy(source.kSingleCrop);
     this.nMultiCount     = source.nMultiCount;
     this.eMultiDirection = source.eMultiDirection;
 }
示例#2
0
 private void InitData_CropInfo()
 {
     kCropInfo                 = new CropInfo();
     kCropInfo.eType           = CropInfo.Type.CropSingle;
     kCropInfo.kSingleCrop     = new Rect();
     kCropInfo.nMultiCount     = 1;
     kCropInfo.eMultiDirection = CropInfo.Direction.Left;
 }
 public void SetData(string fileName, string path, CropInfo kCropInfo, Action <CropInfo> funcOnCopy)
 {
     this.fileName   = fileName;
     this.path       = path;
     this.funcOnCopy = funcOnCopy;
     this.kCropInfoOrigin.Copy(kCropInfo);
     this.kCropInfo.Copy(kCropInfo);
 }
示例#4
0
        private void onFormImageView_Copy(CropInfo kCropInfo)
        {
            // Refresh Data
            this.kCropInfo.Copy(kCropInfo);

            // Refresh UI
            RefreshUI_CropInfoState();
            RefreshUI_SingleCropRect();
            RefreshUI_MultiCropData();
        }