Otvorite AI datoteku na mreži
Kada vam nije potrebna funkcija uređivanja kada otvorite AI format na mreži, ovaj AI Viewer dobro je rješenje za mnoge svrhe. Možete otvoriti AI datoteku na mreži nakon prijenosa na web poslužitelj. AI Format je vektorski format, tako da će se rasterizacija nastaviti u navedenoj veličini slike. Za dodatne funkcije, možete koristiti .Net ili Java API visokog koda za otvaranje AI datoteka u dimenzijama koje su vam potrebne
Drag and drop a file or click Open Image
You can reproduce the main functionality of this built-in app using Aspose.PSD
// For the new AI format please use the following code: async Task<bool> OpenPdfToPng(Stream pdfFileStream, string pngFileId, Size size) { pdfFileStream.Position = 0; try { using var pdfDocument = new Aspose.Pdf.Document(pdfFileStream); var page = pdfDocument.Pages[1]; using var imageStream = new MemoryStream(); Resolution resolution = new Resolution(300); PngDevice pngDevice = new PngDevice(size.Width, size.Height, resolution); pngDevice.Process(page, imageStream); imageStream.Position = 0; await StorageService.Upload(pngFileId, imageStream); imageStream.Close(); return true; } catch (Aspose.Pdf.InvalidPdfFileFormatException) { return false; } } // For the Old AI Formats please use the Aspose.PSD high-code API using (AiImage image = (AiImage)Image.Load(sourceFileName)) { ImageOptionsBase options = new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha }; image.Save(outFileName, options); }
You can download Aspose.PSD from Nuget package manager
Check the following list of documentation links:
Please check the offical documentation https://docs.aspose.com/psd/
Otvorite AI datoteku s Aspose.PSD ili drugim Aspose proizvodima. Render AI File pregled online.