Class: ImageServiceParameters

Description

Represents the image service parameter options used when calling ArcGISImageServiceLayer.exportMapImage. (As of v1.2)

Samples

Search for samples that use this class.  

Class hierarchy

esri.layers.ImageServiceParameters

Constructor

Constructor Description
esri.layers.ImageServiceParameters() Creates a new ImageServiceParameters object. The constructor takes no parameters.

Properties

Property Type Description
bandIds Number[] Array of current band selections.
compressionQuality Number Current compression quality value. The compression quality controls how much loss the image will be subjected to. Only valid with JPG image types.
extent Extent Extent of the exported image.
format String Map image format. If no format is specified the format is set to the server default which is jpgpng
height Number Requested image height in pixels.
interpolation String Current interpolation method. The interpolation method affects how the raster dataset is transformed when it undergoes warping or when it changes coordinate space.
mosaicRule MosaicRule Specifies the mosaic rule when defining how individual images should be mosaicked.
noData Number The pixel value that represents no information.
renderingRule RasterFunction Specifies the rendering rule for how the requested image should be rendered. View the Raster Functions help topic in the REST help for more details.
timeExtent TimeExtent Define the time extent for the image.
width Number Requested image width in pixels.

Constants

Constant Description
INTERPOLATION_BILINEAR Resamples pixel by bilinear interpolation.
INTERPOLATION_CUBICCONVOLUTION Resamples pixel by cubic convolution.
INTERPOLATION_MAJORITY Resamples pixel by majority value.
INTERPOLATION_NEARESTNEIGHBOR Resamples pixel by nearest neighbor.
Constructor Detail

esri.layers.ImageServiceParameters()

Creates a new ImageServiceParameters object. The constructor takes no parameters.
Code snippets:
var params = new esri.layers.ImageServiceParameters();
Properties Detail

<Number[]> bandIds

Array of current band selections.
Code snippets:
params.bandIds = [3,1,2];

<Number> compressionQuality

Current compression quality value. The compression quality controls how much loss the image will be subjected to. Only valid with JPG image types.

<Extent> extent

Extent of the exported image.

<String> format

Map image format. If no format is specified the format is set to the server default which is jpgpng
Known values: png8 | png24 | jpg | bmp | gif | jpgpng
Code snippets:
var params = new esri.layers.ImageServiceParameters();
params.format = "jpgpng";

<Number> height

Requested image height in pixels.

<String> interpolation

Current interpolation method. The interpolation method affects how the raster dataset is transformed when it undergoes warping or when it changes coordinate space.

<MosaicRule> mosaicRule

Specifies the mosaic rule when defining how individual images should be mosaicked.
Code snippets:
var params = new esri.layers.ImageServiceParameters();
var mr = new esri.layers.MosaicRule();
mr.method = esri.layers.MosaicRule.METHOD_LOCKRASTER;
mr.lockRasterIds = [32,454,14];
params.mosaicRule =mr;

<Number> noData

The pixel value that represents no information.
Code snippets:
  var params = new esri.layers.ImageServiceParameters();
  params.noData = 0;

<RasterFunction> renderingRule

Specifies the rendering rule for how the requested image should be rendered. View the Raster Functions help topic in the REST help for more details.
Code snippets:
var params = new esri.layers.ImageServiceParameters();
var rasterFunction = new esri.layers.RasterFunction();
rasterFunction.functionName = "Hillshade";

rasterFunction.arguments = {
  "Azimuth":215.0,
  "Altitude":75.0,
  "ZFactor":0.3
};
rasterFunction.variableName = "DEM";
params.renderingRule =rasterFunction;

<TimeExtent> timeExtent

Define the time extent for the image.

<Number> width

Requested image width in pixels.