- request
- A DataContractAttribute containing the data that will be used in this ColorResolution operation.
Visual Basic (Declaration) | |
---|---|
<OperationContractAttribute("ColorResolution")> <FaultContractAttribute(DetailType=Leadtools.Services.Raster.FaultContracts.RasterFault, Action="", Name="", Namespace="", HasProtectionLevel=False)> Overridable Function ColorResolution( _ ByVal request As ColorResolutionRequest _ ) As CommandResponse |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
[OperationContractAttribute("ColorResolution")] [FaultContractAttribute(DetailType=Leadtools.Services.Raster.FaultContracts.RasterFault, Action="", Name="", Namespace="", HasProtectionLevel=false)] virtual CommandResponse ColorResolution( ColorResolutionRequest request ) |
C++/CLI | |
---|---|
[OperationContractAttribute("ColorResolution")] [FaultContractAttribute(DetailType=Leadtools.Services.Raster.FaultContracts.RasterFault, Action="", Name="", Namespace="", HasProtectionLevel=false)] virtual CommandResponse ColorResolution( ColorResolutionRequest request ) |
Parameters
- request
- A DataContractAttribute containing the data that will be used in this ColorResolution operation.
Return Value
A DataContractAttribute containing the modified image resulting from the ColorResolution operation.
Visual Basic | Copy Code |
---|---|
Public Sub ColorResolutionExample() |
C# | Copy Code |
---|---|
public void ColorResolutionExample() |
This operation provides flexibility in specifying the output destination and in specifying the palette to use.
For general information about dithering, refer to Color Resolution and Dithering and Dithering Methods.
You can convert the image in place or create a new converted image.
In specifying a palette, you can use simple palette options, or you can specify a palette that is tailored to your needs. The tailored palette can be any size that you specify. It can include specific colors, reserved blank entries, and open entries that this method fills with optimized colors.
NOTE: Using this operation to change the color order of a 24-bit or 32-bit image (i.e. RGB to BGR) will have no effect on the image when painting or saving (to a file). If you want to change the visual appearance, you can simply swap the color order using the Order property.
This operation does not support signed data images. An exception will be thrown if a signed data image is passed to this operation.
For more information, refer to Introduction - Palette Handling.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family