These options control the behavior of the image converter used by Document Conversion Service. Table values in bold text are the default value for that setting.
Sample Profile |
|
<add Name="ConverterPlugIn.PNImageConverter.WICScalingMode" Value="BICUBIC"/>
<!-- Background color for transparent images, white is default --> <add Name="ConverterPlugIn.PNImageConverter.AlphaBackgroundColorRGB" Value="255,255,255"/> |
Code Sample - C# |
|
// Background color for transparent images, white is default |
Code Sample - VB.NET |
|
Dim item As PNDocConvQueueServiceLib.IPNDocConvQueueItem
' Create the conversion item item = New PNDocConvQueueServiceLib.PNDocConvQueueItem()
' Set conversion settings item.Set("ConverterPlugIn.PNImageConverter.ImageToolkitOrder","LEAD;WIC") item.Set("ConverterPlugIn.PNImageConverter.LEADScalingMode","BICUBIC") item.Set("ConverterPlugIn.PNImageConverter.WICScalingMode","BICUBIC")
' Background color for transparent images, white is default
item.Set("Devmode settings;Resolution","300")
... ' convert the file item.Convert("PEERNET Image Converted", _ "C:\Test\screenshot.png", _ "C:\Test\Out\ConvertedImage") |
|
||||
---|---|---|---|---|
|
||||
|
||||
|
||||
|
||||
|
||||
|
The table below lists the image formats supported by each tool kit.
Image Format |
LEAD |
WIC |
CServe Portable Network Graphics images (*.png) |
• |
• |
Graphics Interchange Format image files (*.gif) |
• |
• |
Icon Format (*.ico) |
|
• |
JPEG images (*.jpg) |
• |
• |
TIFF images (*.tif) |
• |
• |
Windows Bitmap images (*.bmp) |
• |
• |
Windows Media Photo (*.wdp, *.hdp, *.jxr) |
|
• |
ZSoft PCX images (*.pcx) |
• |
|
ZSoft DCX images (*.dcx) |
• |
|