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
// Open an existing excel file. | |
Workbook wb = new Workbook("SampleInput.xlsx"); | |
// Get the worksheets collection in the spreadsheet. | |
WorksheetCollection sheets = wb.Worksheets; | |
// Get first Worksheet from WorksheetCollection by index. | |
Worksheet sheet = sheets[0]; | |
// This option will ensure the references (in formulas, charts) |
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
// Open an existing excel file. | |
Workbook wb = new Workbook("SampleInput.xlsx"); | |
// Get the worksheets collection in the spreadsheet. | |
WorksheetCollection sheets = wb.Worksheets; | |
// Get first Worksheet from WorksheetCollection by index. | |
Worksheet sheet = sheets[0]; | |
// This option will ensure the references (in formulas, charts) |
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
// Open an existing excel file. | |
Workbook workbook = new Workbook("SampleInput.xlsx"); | |
// Iterate over the worksheets. | |
foreach (Worksheet sheet in workbook.Worksheets) | |
{ | |
// Delete the Blank Rows from the worksheet. | |
sheet.Cells.DeleteBlankRows(); | |
} |
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
using Aspose.Cells; | |
// Open an existing excel file. | |
Workbook wb = new Workbook("SampleInput.xlsx"); | |
// Get the worksheets collection in the spreadsheet. | |
WorksheetCollection sheets = wb.Worksheets; | |
// Get first Worksheet from WorksheetCollection by index. | |
Worksheet sheet = sheets[0]; |
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
// An array of images you want to merge. | |
string[] imagePaths = { "Image1.jpeg", "Image2.jpg" }; | |
string outputPath = "MergeHorizontalAsPNG"; | |
// Getting resulting image size. | |
List<Size> imageSizes = new List<Size>(); | |
foreach (string imagePath in imagePaths) | |
{ | |
using (RasterImage image = (RasterImage)Image.Load(imagePath)) |
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
// An array of images you want to merge. | |
string[] imagePaths = { "Image1.jpeg", "Image2.jpg" }; | |
string outputPath = "MergeHorizontalAsPDF"; | |
string tempFilePath = "temp.jpg"; | |
// Getting resulting image size. | |
List<Size> imageSizes = new List<Size>(); | |
foreach (string imagePath in imagePaths) | |
{ |
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
// An array of images you want to merge | |
string[] imagePaths = { "Image1.jpeg", "Image2.jpg" }; | |
string outputPath = "MergeImages_Vertically.jpg"; | |
// Getting resulting image size. | |
List<Size> imageSizes = new List<Size>(); | |
foreach (string imagePath in imagePaths) | |
{ | |
using (RasterImage image = (RasterImage)Image.Load(imagePath)) |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using Aspose.Imaging; | |
using Aspose.Imaging.FileFormats.Jpeg; | |
using Aspose.Imaging.ImageOptions; | |
using Aspose.Imaging.Sources; | |
// Array of images you want to merge. |
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
// Array of Images you want to merge. | |
string[] imagePaths = { "Image1.jpeg", "Image2.jpg" }; | |
string outputPath = "MergedJPEGImages_Horizontally.jpg"; | |
string tempFilePath = "temp.jpg"; | |
// Getting resulting image size. | |
List<Size> imageSizes = new List<Size>(); | |
foreach (string imagePath in imagePaths) | |
{ |
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
DicomImage dicomImage = (DicomImage) Image.load("src/main/resources/image.dcm"); | |
// Set the active page to be converted to JPEG | |
dicomImage.setActivePage(dicomImage.getDicomPages()[0]); | |
JpegOptions jpegOptions = new JpegOptions(); | |
// Save as JPEG | |
dicomImage.save("src/main/resources/Output/DICOM_to_JPEG.jpg", jpegOptions); |
NewerOlder