LEADTOOLS WebForms and AJAX Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.22
Client Image Processing Commands

The LEADTOOLS WebImageViewer supports a group of image processing commands that can be applied to the loaded image through the Leadtools.Web.Controls.WebImageViewer.ApplyCommand(Leadtools.ImageProcessing.RasterCommand) method.

The following table contains the server/client commands that are currently supported by the WebImageViewer control, and how to get/set the client command class properties on the client side.

Server Command Client Command Access Command Properties Through:
AutoCropCommand AutoCropCommand(threshold)

getThreshold(): integer

setThreshold(threshold: integer)

BalanceColorCommandFactor BalanceColorCommandFactor(toRed, toGreen)

getRedFactor():BalanceColorsCommand

setRedFactor(redFactor: BalanceColorCommandFactor)

getGreenFactor():BalanceCommand

setGreenFactor(greenFactor: BalanceColorCommandFactor)

getBlueFactor():BalanceCommand

setBlueFactor(blueFactor: BalanceColorCommandFactor)

BorderRemoveCommand BorderRemoveCommand(flags, border, percent, whiteNoiseLength, variance)

getFlags():BorderRemoveCommandFlags

setFlags(flags: BorderRemoveCommandFlags)

getBorder():BorderRemoveCommandFlags

setBorder(border: BorderRemoveBorderFlags)

getPercent():integer

setPercent(percent: integer)

getWhiteNoiseLength():integer

setWhiteNoiseLength(whiteNoiseLength: integer)

getVariance():

setVariance(variance: integer)

ChangeContrastCommand ChangeContrastCommand(contrast)

getContrast(): integer

setContrast(contrast: integer)

ChangeHueCommand ChangeHueCommand(angle)

getAngle(): integer

setAngle(angle: integer)

ChangeIntensityCommand ChangeIntensityCommand(brightness)

getBrightness(): integer

setBrightness(brightness: integer)

ChangeSaturationCommand ChangeSaturationCommand(change)

getChange(): integer

setChange(change: integer)

ColorHalftoneCommand ColorHalftoneCommand(maximumRadius, cyanAngle, magentaAngle, yellowAngle, blackAngle)

getMaximumRadius():integer

setMaximumRadius(maximumRadius:integer)

getCyanAngle():integer

setCyanAngle(cyanAngle:integer)

getMagentaAngle():integer

setMagentaAngle(magentaAngle:integer)

getYellowAngle():integer

setYellowAngle(yellowAngle:integer)

getBlackAngle():integer

setBlackAngle(blackAngle:integer)

ConvertSignedToUnsignedCommand ConvertSignedToUnsignedCommand(type)

getType():ConvertSignedToUnsignedCommandType

setType(type: ConvertSignedToUnsignedCommandType)

ConvertUnsignedToSignedCommand ConvertUnsignedToSignedCommand(type)

getType():ConvertSignedToUnsignedCommandType

setType(type:ConvertUnsignedToSignedCommandType)

DeskewCommand DeskewCommand(fillColor, flags)

getFillColor(): string (CSS color)

setFillColor(fillColor: string (CSS color) )

getFlags(): DeskewCommandFlags)

setFlags(flags:

DespeckleCommand DespeckleCommand() -
DotRemoveCommand DotRemoveCommand(flags, minimumDotWidth, minimumDotHeight, maximumDotWidth, maximumDotHeight)

getFlags():DotRemoveCommandFlags

setFlags(flags: DotRemoveCommandFlags)

getMinimumDotWidth(): integer

setMinimumDotWidth(minimumDotWidth: integer)

getMinimumDotHeight(): integer

setMinimumDotHeight(minimumDotHeight: integer)

getMaximumDotWidth(): integer

setMaximumDotWidth(maximumDotWidth: integer)

getMaximumDotHeight():integer

setMaximumDotHeight(maximumDotHeight: integer)

EmbossCommand EmbossCommand(direction, depth)

getDirection():EmbossCommandDirection

setDirection(direction: EmbossCommandDirection)

getDepth():integer

setDepth(depth:integer)

FlipCommand FlipCommand(horizontal)

getHorizontal(): boolean

setHorizontal(horizontal: boolean)

FreeHandWaveCommand FreeHandWaveCommand(amplitudes, scale, waveLength, angle, fillColor, flags)

getAmplitudes(): Array of integer

setAmplitudes(amplitudes: Array of integer)

getScale(): integer

setScale(scale: integer)

getWaveLength(): integer

setWaveLength(waveLength: integer)

getAngle(): integer

setAngle(angle: integer)

getFillColor(): string (CSS Color)

setFillColor(fillColor: string (CSS Color))

getFlags(): FreeHandWaveCommandFlags

setFlags(flags: FreeHandWaveCommandFlags)

GammaCorrectCommand GammaCorrectCommand(gamma)

getGamma():integer

setGamma(gamma: integer)

GaussianCommand GaussianCommand(radius)

getRadius():integer

setRadius(radius:integer)

GrayscaleCommand GrayscaleCommand() -
GrayScaleExtendedCommand GrayScaleExtendedCommand(redFactor, greenFactor)

getFlags(): RemapIntensityCommandFlags

setFlags(flags: RemapIntensityCommandFlags)

getLookupTable(): Array of integer

setLookupTable(lookupTable: Array of integer)

RemoveRedEyeCommand RemoveRedEyeCommand(newColor)

getNewColor(): string (CSS Color)

setNewColor(newColor: string (CSS Color))

getThreshold(): integer

setThreshold(threshold: integer)

getLightness(): integer

setLightness(lightness: integer)

SharpenCommand SharpenCommand(sharpness)

getSharpness():integer

setSharpness(sharpness :integer)

SmoothCommand SmoothCommand(flags, length)

getFlags(): SmoothCommandFlags

setFlags(flags: SmoothCommandFlags)

getLength(): integer

setLength(length: integer)

SpatialFilterCommand SpatialFilterCommand(predefinedFilter)

getPredefinedFilter(): SpatialFilterCommandPredefined

setPredefinedFilter(predefinedFilter: SpatialFilterCommandPredefined)

StretchIntensityCommand StretchIntensityCommand() -
UnsharpMaskCommand UnsharpMaskCommand(amount, radius, threshold, colorType)

getAmount(): integer

setAmount(amount: integer)

getRadius(): integer

setRadius(radius: integer)

getThreshold(): integer

setThreshold(threshold: integer)

getColorType(): UnsharpMaskCommandColorType

setColorType(colorType: UnsharpMaskCommandColorType)

RotateCommand RotateCommand(angle, flags, fillColor)

getAngle(): integer

setAngle(angle: integer)

getFlags(): RotateCommandFlags

setFlags(Flags: RotateCommandFlags)

getFillColor(): string (CSS Color)

setFillColor(fillColor: string (CSS Color))

To apply one of the above commands to the image from client-side do something like the following:

              // this code rotates the image of WebImageViewer1 by 45 degrees.
              function RotateImage()
              {
                  var cmd = new RotateCommand(4500, RotateCommandFlags.Bicubic, '#FF00FF');
                  WebImageViewer1.WebImageViewer.ApplyCommand(cmd);
              }