Visual Basic (Declaration) | |
---|---|
Public Property Interpolation As ArcGISImageServiceLayer.ImageServiceInterpolation |
C# | |
---|---|
public ArcGISImageServiceLayer.ImageServiceInterpolation Interpolation {get; set;} |
The default interpolation method is the NearestNeighbor Enumeration.
There are four ArcGISImageServiceLayer.ImageServiceInterpolation Enumeration values that can be used in the Interpolation Property, they are:
- NearestNeighbor
- BilinearInterpolation
- CubitConvolution
- Majority
Theoretical information related to interpolation can be found for the following topics:
XAML | Copy Code |
---|---|
<esri:Map Name="Map1" Height="400" Width="400" "> <!-- Interpolation Property (Read/Write). --> <esri:ArcGISImageServiceLayer Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Portland/CascadeLandsat/ImageServer" Interpolation="Majority"/> </esri:Map> <TextBlock Name="TextBlock_Interpolation" Height="23" Width="248" Text="{Binding ElementName=Map1, Path=Layers[0].Interpolation}"/> |
C# | Copy Code |
---|---|
private void MainPage_Loaded(object sender, System.Windows.RoutedEventArgs e) { // The Map1 object (a Map object) was defined previously in XAML. // Create an ArcGISImageServiceLayer. ESRI.ArcGIS.Client.ArcGISImageServiceLayer myArcGISImageServiceLayer = new ESRI.ArcGIS.Client.ArcGISImageServiceLayer(); myArcGISImageServiceLayer.Url = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Portland/CascadeLandsat/ImageServer"; // In this example the Interpolation will be set to Majority. myArcGISImageServiceLayer.Interpolation = ESRI.ArcGIS.Client.ArcGISImageServiceLayer.ImageServiceInterpolation.Majority; // Create an Event Handler. myArcGISImageServiceLayer.Initialized += new System.EventHandler<EventArgs>(ArcGISImageServiceLayer_Intialized); // Add the ArcGISImageServiceLayer to the LayerCollection of the Map. Map1.Layers.Add(myArcGISImageServiceLayer); } private void ArcGISImageServiceLayer_Intialized(object sender, EventArgs e) { // The Map1 object (a Map object) and TextBlock_CompressionQuality (a TextBlock object) were defined previously in XAML. // Access a specific ArcGISImageServiceLayer. ESRI.ArcGIS.Client.ArcGISImageServiceLayer myArcGISImageServiceLayer = (ESRI.ArcGIS.Client.ArcGISImageServiceLayer)Map1.Layers[0]; // Interpolation Property (Read/Write). // Use the getter (Read) to obtain the Interpolation. ESRI.ArcGIS.Client.ArcGISImageServiceLayer.ImageServiceInterpolation myInterpolation = myArcGISImageServiceLayer.Interpolation; TextBlock_Interpolation.Text = myInterpolation.ToString(); } |
VB.NET | Copy Code |
---|---|
Private Sub MainPage_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded ' The Map1 object (a Map object) was defined previously in XAML. ' Create an ArcGISImageServiceLayer. Dim myArcGISImageServiceLayer As New ESRI.ArcGIS.Client.ArcGISImageServiceLayer myArcGISImageServiceLayer.Url = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Portland/CascadeLandsat/ImageServer" ' In this example the Interpolation will be set to Majority. myArcGISImageServiceLayer.Interpolation = ESRI.ArcGIS.Client.ArcGISImageServiceLayer.ImageServiceInterpolation.Majority ' Create an Event Handler. AddHandler myArcGISImageServiceLayer.Initialized, AddressOf ArcGISImageServiceLayer_Intialized ' Add the ArcGISImageServiceLayer to the LayerCollection of the Map. Map1.Layers.Add(myArcGISImageServiceLayer) End Sub Private Sub ArcGISImageServiceLayer_Intialized(ByVal sender As Object, ByVal e As EventArgs) ' The Map1 object (a Map object) and TextBlock_Interpolation (a TextBlock object) were defined previously in XAML. ' Access a specific ArcGISImageServiceLayer. Dim myArcGISImageServiceLayer As ESRI.ArcGIS.Client.ArcGISImageServiceLayer = Map1.Layers.Item(0) ' Interpolation Property (Read/Write). ' Use the getter (Read) to obtain the Interpolation. Dim myInterpolation As ESRI.ArcGIS.Client.ArcGISImageServiceLayer.ImageServiceInterpolation = myArcGISImageServiceLayer.Interpolation TextBlock_Interpolation.Text = myInterpolation.ToString End Sub |
Target Platforms:Windows Phone 7