Канвертаваць PSD у PNG праз C#
.NET Photoshop API для PSD і PSB Пераўтварэнне ў растравыя выявы, уключаючы PNG
Высокая якасць візуалізацыі PSD у фармаце PNG
- Загрузіце PSD метадам Image.Load
- Стварыце асобнік класа PngOptions
- Выклічце метад Image.Save
- Перадайце імя файла вываду і аб’ект PngOptions
Пачаць працу з .NET Photoshop API
Усталюйце з каманднага радка як nuget install Aspose.PSD
або праз кансоль дыспетчара пакетаў Visual Studio з Install-Package Aspose.PSD
.
У якасці альтэрнатывы атрымайце аўтаномную праграму ўстаноўкі MSI або бібліятэкі DLL у ZIP-файле з [спампоўкі] ( https://releases.aspose.com/psd/net) .
.NET C# Код для пераўтварэння PSD ў PNG
using (var image = new Image.Load("template.psd")) | |
{ | |
var options = new PngOptions(); | |
image.Save("output.png", options); | |
} |
PSD What is PSD File Format?
PSD, Photoshop Document, represents Adobe Photoshop’s native file format used for graphics designing and development. PSD files may include image layers, adjustment layers, layer masks, annotations, file information, keywords and other Photoshop-specific elements. Photoshop files have default extension as .PSD and has a maximum height and width of 30,000 pixels, and a length limit of two gigabytes.
Read MorePNG What is PNG File Format?
PNG, Portable Network Graphics, refers to a type of raster image file format that use loseless compression. This file format was created as a replacement of Graphics Interchange Format (GIF) and has no copyright limitations. However, PNG file format does not support animations. PNG file format supports loseless image compression that makes it popular among its users. With the passage of time, PNG has evolved as one of the mostly used image file format.
Read More