Last active
April 7, 2017 07:45
-
-
Save aspose-imaging/56ea76a8f97f631ebd294b517e8d81fe to your computer and use it in GitHub Desktop.
Aspose.Imaging for Cloud Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
Path inputFile = Utils.getPath(GetImageProperties.class, input); | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
com.aspose.imaging.model.ImagingResponse apiResponse | |
= Utils.getImagingSdk().GetImageProperties( | |
input, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
System.out.println(" Image Property : Height = " +apiResponse.getHeight()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.bmp"; | |
String output = "Sample2.bmp"; | |
Path inputFile = Utils.getPath(UpdateBmpProperties.class, input); | |
Path outputFile = Utils.getPath(UpdateBmpProperties.class, output); | |
Integer bitsPerPixel = 24; | |
Integer horizontalResolution = 300; | |
Integer verticalResolution = 300; | |
Boolean fromScratch = false; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
Utils.getImagingSdk().GetImageBmp( | |
input, | |
bitsPerPixel, | |
horizontalResolution, | |
verticalResolution, | |
fromScratch, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
com.aspose.storage.model.ResponseMessage sr | |
= Utils.getStorageSdk().GetDownload( | |
input, | |
null, | |
Utils.STORAGE | |
); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.bmp"; | |
String output = "Sample2.bmp"; | |
Path inputFile = Utils.getPath(UpdateBmpPropertiesWithoutStorage.class, input); | |
Path outputFile = Utils.getPath(UpdateBmpPropertiesWithoutStorage.class, output); | |
Integer bitsPerPixel = 24; | |
Integer horizontalResolution = 300; | |
Integer verticalResolution = 300; | |
Boolean fromScratch = false; | |
String outPath = ""; | |
com.aspose.imaging.model.ResponseMessage sr = Utils.getImagingSdk().PostImageBmp( | |
bitsPerPixel, | |
horizontalResolution, | |
verticalResolution, | |
fromScratch, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.gif"; | |
String output = "Sample2.gif"; | |
Path inputFile = Utils.getPath(UpdateGifProperties.class, input); | |
Path outputFile = Utils.getPath(UpdateGifProperties.class, output); | |
Integer backgroundColorIndex = 255; | |
Integer colorResolution = 7; | |
Boolean hasTrailer = true; | |
Boolean interlaced = true; | |
Boolean isPaletteSorted = true; | |
Integer pixelAspectRatio = 10; | |
Boolean fromScratch = false; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
Utils.getImagingSdk().GetImageGif( | |
input, | |
backgroundColorIndex, | |
colorResolution, | |
hasTrailer, | |
interlaced, | |
isPaletteSorted, | |
pixelAspectRatio, | |
fromScratch, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
com.aspose.storage.model.ResponseMessage sr | |
= Utils.getStorageSdk().GetDownload( | |
input, | |
null, | |
Utils.STORAGE | |
); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.gif"; | |
String output = "Sample2.gif"; | |
Path inputFile = Utils.getPath(UpdateGifPropertiesWithoutStorage.class, input); | |
Path outputFile = Utils.getPath(UpdateGifPropertiesWithoutStorage.class, output); | |
Integer backgroundColorIndex = 255; | |
Integer colorResolution = 7; | |
Boolean hasTrailer = true; | |
Boolean interlaced = true; | |
Boolean isPaletteSorted = true; | |
Integer pixelAspectRatio = 10; | |
Boolean fromScratch = false; | |
String outPath = ""; | |
com.aspose.imaging.model.ResponseMessage sr = Utils.getImagingSdk().PostImageGif( | |
backgroundColorIndex, | |
colorResolution, | |
hasTrailer, | |
interlaced, | |
isPaletteSorted, | |
pixelAspectRatio, | |
fromScratch, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.jpg"; | |
String output = "Sample2.jpg"; | |
Path inputFile = Utils.getPath(UpdateJpgProperties.class, input); | |
Path outputFile = Utils.getPath(UpdateJpgProperties.class, output); | |
Integer quality = 100; | |
String compressionType = "progressive"; | |
Boolean fromScratch = false; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
Utils.getImagingSdk().GetImageJpg( | |
input, | |
quality, | |
compressionType, | |
fromScratch, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
com.aspose.storage.model.ResponseMessage sr | |
= Utils.getStorageSdk().GetDownload( | |
input, | |
null, | |
Utils.STORAGE | |
); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.jpg"; | |
String output = "Sample2.jpg"; | |
Path inputFile = Utils.getPath(UpdateJpgPropertiesWithoutStorage.class, input); | |
Path outputFile = Utils.getPath(UpdateJpgPropertiesWithoutStorage.class, output); | |
Integer quality = 100; | |
String compressionType = "progressive"; | |
Boolean fromScratch = false; | |
String outPath = ""; | |
com.aspose.imaging.model.ResponseMessage sr = Utils.getImagingSdk().PostImageJpg( | |
quality, | |
compressionType, | |
fromScratch, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.png"; | |
String output = "Sample2.png"; | |
Path inputFile = Utils.getPath(UpdatePngProperties.class, input); | |
Path outputFile = Utils.getPath(UpdatePngProperties.class, output); | |
Boolean fromScratch = false; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
Utils.getImagingSdk().GetImagePng( | |
input, | |
fromScratch, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
com.aspose.storage.model.ResponseMessage sr | |
= Utils.getStorageSdk().GetDownload( | |
input, | |
null, | |
Utils.STORAGE | |
); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.png"; | |
String output = "Sample2.png"; | |
Path inputFile = Utils.getPath(UpdatePngPropertiesWithoutStorage.class, input); | |
Path outputFile = Utils.getPath(UpdatePngPropertiesWithoutStorage.class, output); | |
Boolean fromScratch = true; | |
String outPath = ""; | |
com.aspose.imaging.model.ResponseMessage sr = Utils.getImagingSdk().PostImagePng( | |
fromScratch, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.psd"; | |
String output = "Sample2.psd"; | |
Path inputFile = Utils.getPath(UpdatePsdProperties.class, input); | |
Path outputFile = Utils.getPath(UpdatePsdProperties.class, output); | |
Integer channelsCount = 3; | |
String compressionMethod = "rle"; | |
Boolean fromScratch = false; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
Utils.getImagingSdk().GetImagePsd( | |
input, | |
channelsCount, | |
compressionMethod, | |
fromScratch, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
com.aspose.storage.model.ResponseMessage sr | |
= Utils.getStorageSdk().GetDownload( | |
input, | |
null, | |
Utils.STORAGE | |
); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.psd"; | |
String output = "Sample2.psd"; | |
Path inputFile = Utils.getPath(UpdatePsdPropertiesWithoutStorage.class, input); | |
Path outputFile = Utils.getPath(UpdatePsdPropertiesWithoutStorage.class, output); | |
Integer channelsCount = 3; | |
String compressionMethod = "rle"; | |
Boolean fromScratch = false; | |
String outPath =""; | |
com.aspose.imaging.model.ResponseMessage apiResponse = Utils.getImagingSdk().PostImagePsd( | |
channelsCount, | |
compressionMethod, | |
fromScratch, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
String output = "Sample2.tiff"; | |
Path inputFile = Utils.getPath(UpdateTiffProperties.class, input); | |
Path outputFile = Utils.getPath(UpdateTiffProperties.class, output); | |
String compression = "ccittfax3"; | |
String resolutionUnit = "inch"; | |
Integer bitDepth = 1; | |
Boolean fromScratch = false; | |
Float horizontalResolution = 1096.0f; | |
Float verticalResolution = 1096.0f; | |
String outPath=""; | |
com.aspose.imaging.model.ResponseMessage apiResponse = | |
Utils.getImagingSdk().PostProcessTiff( | |
compression, | |
resolutionUnit, | |
bitDepth, | |
fromScratch, | |
horizontalResolution, | |
verticalResolution, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
String output = "Sample2.tiff"; | |
Path inputFile = Utils.getPath(UpdateTiffPropertiesWithoutStorage.class, input); | |
Path outputFile = Utils.getPath(UpdateTiffPropertiesWithoutStorage.class, output); | |
String compression = "ccittfax3"; | |
String resolutionUnit = "inch"; | |
Integer bitDepth = 1; | |
Boolean fromScratch = false; | |
Float horizontalResolution = 96.0f; | |
Float verticalResolution = 96.0f; | |
String outPath =""; | |
com.aspose.imaging.model.ResponseMessage apiResponse = Utils.getImagingSdk().PostProcessTiff ( | |
compression, | |
resolutionUnit, | |
bitDepth, | |
fromScratch, | |
horizontalResolution, | |
verticalResolution, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.png"; | |
String output = "Sample2.jpg"; | |
Path inputFile = Utils.getPath(ConvertImageFormat.class, input); | |
Path outputFile = Utils.getPath(ConvertImageFormat.class, output); | |
String format = "jpg"; | |
String outPath = ""; | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().PostImageSaveAs( | |
format, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
String output = "Sample2.tif"; | |
Path inputFile = Utils.getPath(ConvertTiffImagetoFaxFormat.class, input); | |
Path outputFile = Utils.getPath(ConvertTiffImagetoFaxFormat.class, output); | |
String outPath = ""; | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().GetTiffToFax( | |
input, | |
Utils.STORAGE, | |
Utils.FOLDER, | |
outPath | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.png"; | |
String output = "Sample2.jpg"; | |
Path inputFile = Utils.getPath(CropImageWithFormatChange.class, input); | |
Path outputFile = Utils.getPath(CropImageWithFormatChange.class, output); | |
Integer x = 30; | |
Integer y = 40; | |
Integer width = 100; | |
Integer height = 100; | |
String format = "jpg"; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().GetCropImage( | |
input, | |
format, | |
x, | |
y, | |
width, | |
height, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
String output = "Sample2.tiff"; | |
String appendWith="append.tiff"; | |
Path inputFile = Utils.getPath(MergeTiffImages.class, input); | |
Path outputFile = Utils.getPath(MergeTiffImages.class, output); | |
Path appendWithFile = Utils.getPath(MergeTiffImages.class, appendWith); | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
Utils.getStorageSdk().PutCreate( | |
appendWith, | |
null, | |
Utils.STORAGE, | |
appendWithFile.toFile() | |
); | |
Utils.getImagingSdk().PostTiffAppend( | |
input, | |
appendWith, | |
Utils.STORAGE, | |
Utils.FOLDER | |
); | |
com.aspose.storage.model.ResponseMessage sr | |
= Utils.getStorageSdk().GetDownload( | |
input, | |
null, | |
Utils.STORAGE | |
); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.jpg"; | |
String output = "Sample2.jpg"; | |
Path inputFile = Utils.getPath(PerformSeveralOperationsOnImage.class, input); | |
Path outputFile = Utils.getPath(PerformSeveralOperationsOnImage.class, output); | |
String format = "jpg"; | |
Integer newWidth = 200; | |
Integer newHeight = 200; | |
Integer x = 100; | |
Integer y = 100; | |
Integer rectWidth = 100; | |
Integer rectHeight = 100; | |
String rotateFlipMethod = "rotate90flipnone"; | |
String outPath = ""; | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().PostImageSaveAs( | |
format, | |
newWidth, | |
newHeight, | |
x, | |
y, | |
rectWidth, | |
rectHeight, | |
rotateFlipMethod, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.png"; | |
String output = "Sample2.png"; | |
Path inputFile = Utils.getPath(ResizeImage.class, input); | |
Path outputFile = Utils.getPath(ResizeImage.class, output); | |
Integer newWidth = 200; | |
Integer newHeight = 200; | |
String format = "png"; | |
String outPath = ""; | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().PostChangeImageScale( | |
format, | |
newWidth, | |
newHeight, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.png"; | |
String output = "Sample2.jpg"; | |
Path inputFile = Utils.getPath(ResizeImageWithFormatChange.class, input); | |
Path outputFile = Utils.getPath(ResizeImageWithFormatChange.class, output); | |
Integer newWidth = 200; | |
Integer newHeight = 200; | |
String format = "jpg"; | |
String outPath = ""; | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().PostChangeImageScale( | |
format, | |
newWidth, | |
newHeight, | |
outPath, | |
inputFile.toFile() | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.png"; | |
String output = "Sample2.jpg"; | |
Path inputFile = Utils.getPath(RotateFlipImageOnStorage.class, input); | |
Path outputFile = Utils.getPath(RotateFlipImageOnStorage.class, output); | |
String format = "jpg"; | |
String method = "Rotate180FlipX"; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().GetImageRotateFlip( | |
input, | |
format, | |
method, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
Path inputFile = Utils.getPath(CropFrame.class, input); | |
String output = "Sample2.tiff"; | |
Path outputFile = Utils.getPath(CropFrame.class, output); | |
Integer frameId = 0; | |
Integer newWidth = 200; | |
Integer newHeight = 200; | |
Integer x = 20; | |
Integer y = 20; | |
Integer rectWidth = 100; | |
Integer rectHeight = 100; | |
String rotateFlipMethod = ""; | |
Boolean saveOtherFrames = false; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().GetImageFrame( | |
input, | |
frameId, | |
newWidth, | |
newHeight, | |
x, | |
y, | |
rectWidth, | |
rectHeight, | |
rotateFlipMethod, | |
saveOtherFrames, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
Path inputFile = Utils.getPath(ExtractFrameFromMultiFrameTiffImage.class, input); | |
String output = "Sample2.tiff"; | |
Path outputFile = Utils.getPath(ExtractFrameFromMultiFrameTiffImage.class, output); | |
Integer frameId = 0; | |
Integer newWidth = 300; | |
Integer newHeight = 300; | |
Integer x = 100; | |
Integer y = 100; | |
Integer rectWidth = 200; | |
Integer rectHeight = 200; | |
String rotateFlipMethod = ""; | |
Boolean saveOtherFrames = false; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().GetImageFrame( | |
input, | |
frameId, | |
newWidth, | |
newHeight, | |
x, | |
y, | |
rectWidth, | |
rectHeight, | |
rotateFlipMethod, | |
saveOtherFrames, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
Path inputFile = Utils.getPath(FrameProperties.class, input); | |
Integer frameId = 0; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
com.aspose.imaging.model.ImagingResponse apiResponse = Utils.getImagingSdk().GetImageFrameProperties( | |
input, | |
frameId, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
System.out.println(" Frame property Class "+apiResponse.getTiffProperties().getClass()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
Path inputFile = Utils.getPath(ManipulateSaveFrame.class, input); | |
String output = "Sample2.tiff"; | |
Path outputFile = Utils.getPath(ManipulateSaveFrame.class, output); | |
Integer frameId = 0; | |
Integer newWidth = 0; | |
Integer newHeight = 0; | |
Integer x = 0; | |
Integer y = 0; | |
Integer rectWidth = 0; | |
Integer rectHeight = 0; | |
String rotateFlipMethod = "rotate90flipnone"; | |
Boolean saveOtherFrames = false; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().GetImageFrame( | |
input, | |
frameId, | |
newWidth, | |
newHeight, | |
x, | |
y, | |
rectWidth, | |
rectHeight, | |
rotateFlipMethod, | |
saveOtherFrames, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
Path inputFile = Utils.getPath(ResizeFrame.class, input); | |
String output = "Sample2.tiff"; | |
Path outputFile = Utils.getPath(ResizeFrame.class, output); | |
Integer frameId = 0; | |
Integer newWidth = 300; | |
Integer newHeight = 300; | |
Integer x = 96; | |
Integer y = 96; | |
Integer rectWidth = 200; | |
Integer rectHeight = 200; | |
String rotateFlipMethod = ""; | |
Boolean saveOtherFrames = false; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().GetImageFrame( | |
input, | |
frameId, | |
newWidth, | |
newHeight, | |
x, | |
y, | |
rectWidth, | |
rectHeight, | |
rotateFlipMethod, | |
saveOtherFrames, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud | |
String input = "Sample1.tiff"; | |
Path inputFile = Utils.getPath(RotateFlipFrame.class, input); | |
String output = "Sample2.tiff"; | |
Path outputFile = Utils.getPath(RotateFlipFrame.class, output); | |
Integer frameId = 0; | |
Integer newWidth = 0; | |
Integer newHeight = 0; | |
Integer x = 0; | |
Integer y = 0; | |
Integer rectWidth = 0; | |
Integer rectHeight = 0; | |
String rotateFlipMethod = "rotate90flipnone"; | |
Boolean saveOtherFrames = false; | |
String outPath = ""; | |
Utils.getStorageSdk().PutCreate( | |
input, | |
null, | |
Utils.STORAGE, | |
inputFile.toFile() | |
); | |
com.aspose.imaging.model.ResponseMessage apiResponse | |
= Utils.getImagingSdk().GetImageFrame( | |
input, | |
frameId, | |
newWidth, | |
newHeight, | |
x, | |
y, | |
rectWidth, | |
rectHeight, | |
rotateFlipMethod, | |
saveOtherFrames, | |
outPath, | |
Utils.FOLDER, | |
Utils.STORAGE | |
); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment