- uri
- The uri of image.
- username
- The username who has privilages on the the specified uri. Must be passes as (domain/username).
- password
- The password for the specified user.
- format
- The output image format.
- bitsPerPixel
- Value that indicates the number of bits for the destination image.
- width
- The new image width in pixels.
- height
- The new image height in pixels.
- qualityFactor
- The QualityFactor to be used when converting the image, refer to Save.
Visual Basic (Declaration) | |
---|---|
<FaultContractAttribute(DetailType=Leadtools.Services.Raster.FaultContracts.RasterFault, Action="", Name="", Namespace="", HasProtectionLevel=False)> <WebGetAttribute()> <OperationContractAttribute(Action="ConvertImage", Name="ConvertImage")> Overloads Overridable Function Convert( _ ByVal uri As String, _ ByVal username As String, _ ByVal password As String, _ ByVal format As RasterImageFormat, _ ByVal bitsPerPixel As Integer, _ ByVal width As Integer, _ ByVal height As Integer, _ ByVal backColor As String, _ ByVal qualityFactor As Integer _ ) As Stream |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
[FaultContractAttribute(DetailType=Leadtools.Services.Raster.FaultContracts.RasterFault, Action="", Name="", Namespace="", HasProtectionLevel=false)] [WebGetAttribute()] [OperationContractAttribute(Action="ConvertImage", Name="ConvertImage")] virtual Stream Convert( string uri, string username, string password, RasterImageFormat format, int bitsPerPixel, int width, int height, string backColor, int qualityFactor ) |
C++/CLI | |
---|---|
[FaultContractAttribute(DetailType=Leadtools.Services.Raster.FaultContracts.RasterFault, Action="", Name="", Namespace="", HasProtectionLevel=false)] [WebGetAttribute()] [OperationContractAttribute(Action="ConvertImage", Name="ConvertImage")] virtual Stream^ Convert( String^ uri, String^ username, String^ password, RasterImageFormat format, int bitsPerPixel, int width, int height, String^ backColor, int qualityFactor ) |
Parameters
- uri
- The uri of image.
- username
- The username who has privilages on the the specified uri. Must be passes as (domain/username).
- password
- The password for the specified user.
- format
- The output image format.
- bitsPerPixel
- Value that indicates the number of bits for the destination image.
- width
- The new image width in pixels.
- height
- The new image height in pixels.
- backColor
- A color value to determine how to fill the background color if the image dimensions are smaller than width and height. Can be HTML named colors or hexadecimal color values.
- qualityFactor
- The QualityFactor to be used when converting the image, refer to Save.
Return Value
A Stream that contains the document data.This example will convert TIF file on sharepoint to BMP and save it on disk.
Visual Basic | Copy Code |
---|---|
Public Sub ConvertImageExample() |
C# | Copy Code |
---|---|
public void ConvertImageExample() |
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family