LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

SavePsdWithLayersAsync Method






The image to save.
The output stream.
Resulting file's pixel depth. For color images this can be 24 or 32. For grayscale images this can be 8.
A Leadtools.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.
An optional array of CodecsPsdLayerInfo objects. If this is a null reference (Nothing in Visual Basic), then each layer will start at (0, 0) and will have the same size as the image. If this is not a null reference (Nothing in Visual Basic), 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.
Saves an image to a PSD file, along with the specified layers. .NET support WinRT support
Syntax
public IAsyncAction SavePsdWithLayersAsync( 
   RasterImage image,
   ILeadStream stream,
   int bitsPerPixel,
   RasterImage layerImages,
   CodecsPsdLayerInfo[] layerInfos
)
'Declaration
 
Public Function SavePsdWithLayersAsync( _
   ByVal image As RasterImage, _
   ByVal stream As ILeadStream, _
   ByVal bitsPerPixel As Integer, _
   ByVal layerImages As RasterImage, _
   ByVal layerInfos() As CodecsPsdLayerInfo _
) As IAsyncAction
'Usage
 
Dim instance As RasterCodecs
Dim image As RasterImage
Dim stream As ILeadStream
Dim bitsPerPixel As Integer
Dim layerImages As RasterImage
Dim layerInfos() As CodecsPsdLayerInfo
Dim value As IAsyncAction
 
value = instance.SavePsdWithLayersAsync(image, stream, bitsPerPixel, layerImages, layerInfos)
public IAsyncAction SavePsdWithLayersAsync( 
   RasterImage image,
   ILeadStream stream,
   int bitsPerPixel,
   RasterImage layerImages,
   CodecsPsdLayerInfo[] layerInfos
)
 function Leadtools.Codecs.RasterCodecs.SavePsdWithLayersAsync( 
   image ,
   stream ,
   bitsPerPixel ,
   layerImages ,
   layerInfos 
)
public:
IAsyncAction^ SavePsdWithLayersAsync( 
   RasterImage^ image,
   ILeadStream^ stream,
   int bitsPerPixel,
   RasterImage^ layerImages,
   array<CodecsPsdLayerInfo^>^ layerInfos
) 

Parameters

image
The image to save.
stream
The output stream.
bitsPerPixel
Resulting file's pixel depth. For color images this can be 24 or 32. For grayscale images this can be 8.
layerImages
A Leadtools.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 (Nothing in Visual Basic), then each layer will start at (0, 0) and will have the same size as the image. If this is not a null reference (Nothing in Visual Basic), 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.

Return Value

An asynchronous save operation on a RasterCodecs object.
Remarks
Use this method to save PSD files with layers.
Example
For an example, refer to LoadPsdLayer.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterCodecs Class
RasterCodecs Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.