Saves an image to a PSD file, along with the specified layers.
public void SavePsdWithLayers(
RasterImage image,
string fileName,
int bitsPerPixel,
RasterImage layerImages,
CodecsPsdLayerInfo[] layerInfos
)
Public Sub SavePsdWithLayers( _
ByVal image As RasterImage, _
ByVal fileName As String, _
ByVal bitsPerPixel As Integer, _
ByVal layerImages As RasterImage, _
ByVal layerInfos() As CodecsPsdLayerInfo _
)
public:
void SavePsdWithLayers(
RasterImage^ image,
String^ fileName,
int bitsPerPixel,
RasterImage^ layerImages,
array<CodecsPsdLayerInfo^>^ layerInfos
)
image
The image to save.
fileName
The output file name.
bitsPerPixel
Resulting file's pixel depth. For color images this can be 24 or 32. For grayscale images this can be 8.
layerImages
An RasterImage object that contains layers (in each page) to save in the output file. The layers should have the same bits per pixel as the file. Every page in the image will be saved as a layer. The first page in the image will be interpreted as the first layer. The pages in the image must have the same bits per pixel as specified in bitsPerPixel.
layerInfos
An optional array of CodecsPsdLayerInfo objects. If this is a null reference , then each layer will start at (0, 0) and will have the same size as the image. If this is not a null reference, then the layer information for each layer in layerInfos will be stored here.The number of CodecsPsdLayerInfo objects must be the same as the number of pages in layerImages.
Use this method to save PSD files with layers.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document