This document is archived and information here might be outdated.  Recommended version.


IDynamicCacheLayerManager.Format Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IDynamicCacheLayerManager.Format Property

The name of the tile format which is used by the cache.

[Visual Basic .NET]
Public Property Format As String
[C#]
public string Format {get; set;}
[C++]
HRESULT get_Format(
  BSTR* Format
);
[C++]
HRESULT put_Format(
  BSTR Format
);
[C++]

Parameters Format [out, retval] Format is a parameter of type BSTR Format [in] Format is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

There are two compression formats which are supported by the dynamic display � PNG and JPEG. In both cases, the 32 bit image format is used (although JPEG only supports 24 bits out-of-the-box, ESRI has extended the format in order to support transparency).

When setting the input format it is best to explicitly specify JPEG32 or PNG32.

By their nature, the two compression formats are different from each other. PNG format is at best when it is compressing discrete colors and tends to bloat when a continuous image is being used (such as aerial photo). On the other hand, JPEG compression is usually better in terms of compression (takes less disk space) and is much better with continuous images; however when it comes to discrete colors, the result may be a bit twisted and can look blurry.

The default compression format is PNG.

At runtime, when the dynamic display is active, changing the compression format will result in regeneration of the cache. If the dynamic display is not active (or hasn�t been activated), the new format information will be written to the layer information and as soon as the dynamic display is activated, the existing cache will be rebuild.

See Also

IDynamicCacheLayerManager Interface

.NET Samples

Dynamic cache layer manager controller (Code Files: CacheManagerDlg)