Examples of SkylineImageCropTask


Examples of net.imagine.provider.skyline.SkylineImageCropTask

    String smallFile = portrait.getSmallFile();
    String ext = portrait.getExt();
    String remoteFileKey = smallFile + '.' + ext;

    SkylineImageCropTask cropTask = new SkylineImageCropTask(remoteFileKey, portraitSize);
    cropTask.setAlbumId(albumId);
    cropTask.setUserId(ownerId);
    cropTask.setOffsetX(x);
    cropTask.setOffsetY(y);
    cropTask.setCropSize(size);
    ImageCropResult cropResult;
    try {
      cropResult = crop.processImage(basePath, cropTask);
    } catch (IOException e) {
      throw new OperateFailedException("无法剪切图片");
View Full Code Here

Examples of net.imagine.provider.skyline.SkylineImageCropTask

      String smallFile = portrait.getSmallFile();
      String ext = portrait.getExt();
      String remoteFileKey = smallFile + '.' + ext;

      SkylineImageCropTask cropTask = new SkylineImageCropTask(remoteFileKey, portraitSize);
      cropTask.setAlbumId(albumId);
      cropTask.setUserId(userId);
      ImageCropResult cropResult = crop.processImage(basePath, cropTask);
      String portraitFile = cropResult.getFileKey();

      personalInfoService.changeUserPortrait(userId, portraitFile);
      user.setPortrait(portraitFile);
View Full Code Here

Examples of net.imagine.provider.skyline.SkylineImageCropTask

      String smallFile = portrait.getSmallFile();
      String ext = portrait.getExt();
      String remoteFileKey = smallFile + '.' + ext;

      SkylineImageCropTask cropTask = new SkylineImageCropTask(remoteFileKey, portraitSize);
      cropTask.setAlbumId(albumId);
      cropTask.setUserId(spotId);
      ImageCropResult cropResult = crop.processImage(basePath, cropTask);
      String portraitFile = cropResult.getFileKey();
      spotService.updateSpotPortrait(spotId, portraitFile);
     
      spot.setPortrait(portraitFile);
View Full Code Here

Examples of net.imagine.provider.skyline.SkylineImageCropTask

        remoteFileKey = portrait.getSmallFile() + '.' + portrait.getExt();
      } else {
        albumService.copyPhotoToPortraitAlbum(portraitAlbum, photo);
      }

      SkylineImageCropTask cropTask = new SkylineImageCropTask(remoteFileKey, portraitSize);
      cropTask.setAlbumId(albumId);
      cropTask.setUserId(ownerId);
      ImageCropResult cropResult = crop.processImage(localStorePath, cropTask);
      String portraitFile = cropResult.getFileKey();

      personalInfoService.changeUserPortrait(ownerId, portraitFile);
      user.setPortrait(portraitFile);
View Full Code Here

Examples of net.imagine.provider.skyline.SkylineImageCropTask

    String smallFile = portrait.getSmallFile();
    String ext = portrait.getExt();
    String remoteFileKey = smallFile + '.' + ext;

    SkylineImageCropTask cropTask = new SkylineImageCropTask(remoteFileKey, portraitSize);
    cropTask.setAlbumId(albumId);
    cropTask.setUserId(spotId);
    cropTask.setOffsetX(x);
    cropTask.setOffsetY(y);
    cropTask.setCropSize(size);
    ImageCropResult cropResult;
    try {
      cropResult = crop.processImage(basePath, cropTask);
    } catch (IOException e) {
      throw new OperateFailedException("无法剪切图片");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.