Loads the specified channel from the specified PSD file.
public IAsyncOperation<RasterImage> LoadPsdChannelAsync(
ILeadStream stream,
int bitsPerPixel,
Leadtools.Codecs.CodecsLoadByteOrder order,
int channelIndex,
Leadtools.Codecs.CodecsPsdChannelInfo channelInfo
)
Public Function LoadPsdChannelAsync( _
ByVal stream As ILeadStream, _
ByVal bitsPerPixel As Integer, _
ByVal order As Leadtools.Codecs.CodecsLoadByteOrder, _
ByVal channelIndex As Integer, _
ByVal channelInfo As Leadtools.Codecs.CodecsPsdChannelInfo _
) As IAsyncOperation(Of RasterImage)
public IAsyncOperation<RasterImage> LoadPsdChannelAsync(
ILeadStream stream,
int bitsPerPixel,
Leadtools.Codecs.CodecsLoadByteOrder order,
int channelIndex,
Leadtools.Codecs.CodecsPsdChannelInfo channelInfo
)
function Leadtools.Codecs.RasterCodecs.LoadPsdChannelAsync(
stream ,
bitsPerPixel ,
order ,
channelIndex ,
channelInfo
)
public:
IAsyncOperation<RasterImage^>^ LoadPsdChannelAsync(
ILeadStream^ stream,
int bitsPerPixel,
Leadtools.Codecs.CodecsLoadByteOrder order,
int channelIndex,
Leadtools.Codecs.CodecsPsdChannelInfo^ channelInfo
)
stream
The input PSD stream.
bitsPerPixel
Resulting image pixel depth. Valid values are:
Value | Meaning |
---|---|
0 | Keep the original file's pixel depth (Do not convert). |
1 to 8 | The specified bits per pixel in the resulting image. |
12 | 12 bits per pixel in the resulting image. |
16 | 16 bits per pixel in the resulting image. |
24 | 24 bits per pixel in the resulting image. |
32 | 32 bits per pixel in the resulting image. |
48 | 48 bits per pixel in the resulting image. |
64 | 64 bits per pixel in the resulting image. |
order
The desired color order.
channelIndex
Index of the channel to load. This index is zero-based. Pass 0 to load the first channel, 1 to load the second channel, etc.
channelInfo
a CodecsPsdChannelInfo object to be updated with information about the loaded channel. Pass a null reference for this parameter if channel information is not needed.
When this method completes, it returns the RasterImage object that this method loads.
Use this method to load PSD files only.
This method works similarly to the normal Load or LoadAsync methods, except that it loads only a channel from a PSD file. It loads the channel specified in the channelIndex.
Before calling this method, you may need to get or set file information, such as the number of channels on the file. Refer to CodecsPsdImageInfo.
The number of channels in a file is indicated by CodecsPsdImageInfo.Channels. If this number is 0, the file does not contain any channels and this method should not be called.
Products |
Support |
Feedback: LoadPsdChannelAsync Method - Leadtools.Codecs |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.