Converts an image stream from one format to another, creating a new image file in a stream in the new format.
public IAsyncAction ConvertAsync(
ILeadStream srcStream,
ILeadStream destStream,
Leadtools.RasterImageFormat format,
int width,
int height,
int bitsPerPixel,
Leadtools.Codecs.CodecsImageInfo info
)
Public Overloads Function ConvertAsync( _
ByVal srcStream As ILeadStream, _
ByVal destStream As ILeadStream, _
ByVal format As Leadtools.RasterImageFormat, _
ByVal width As Integer, _
ByVal height As Integer, _
ByVal bitsPerPixel As Integer, _
ByVal info As Leadtools.Codecs.CodecsImageInfo _
) As IAsyncAction
public IAsyncAction ConvertAsync(
ILeadStream srcStream,
ILeadStream destStream,
Leadtools.RasterImageFormat format,
int width,
int height,
int bitsPerPixel,
Leadtools.Codecs.CodecsImageInfo info
)
function Leadtools.Codecs.RasterCodecs.ConvertAsync(ILeadStream,ILeadStream,RasterImageFormat,Int32,Int32,Int32,CodecsImageInfo)(
srcStream ,
destStream ,
format ,
width ,
height ,
bitsPerPixel ,
info
)
public:
IAsyncAction^ ConvertAsync(
ILeadStream^ srcStream,
ILeadStream^ destStream,
Leadtools.RasterImageFormat format,
int width,
int height,
int bitsPerPixel,
Leadtools.Codecs.CodecsImageInfo^ info
)
srcStream
A ILeadStream containing the data of the input image file.
destStream
A ILeadStream that will contain the data of the output image file.
format
The output file format. For valid values, refer to Summary of All Supported Image File Formats.
width
New width of the output image. If this value is not 0, then the output file will be resized to the width value. Use a value of 0 if you do not wish to resize the output file.
height
New height of the output image. If this value is not 0, then the output file will be resized to the height value. Use a value of 0 if you do not wish to resize the output file.
bitsPerPixel
The output image pixel depth. Note that not all bits per pixel are available to all file formats.
info
A CodecsImageInfo object specifying more options for the conversion.
An asynchronous convert operation on a RasterCodecs object.
If you convert to a lower bits-per-pixel format, this method optimizes the colors automatically. For example, when converting a 24-bit file (16 million colors) to an 8-bit file (256 colors) this method selects the best 256 colors to represent the 24-bit image
Note that this is a high-level method that does conversion from all possible formats to all possible formats.
Products |
Support |
Feedback: ConvertAsync(ILeadStream,ILeadStream,RasterImageFormat,Int32,Int32,Int32,CodecsImageInfo) 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.