This sample demonstrates how to work with raster layers in ArcGIS Pro. The samples includes these functions:
1.) Create a new image service layer and add the layer to the current map.
2.) Set the compression type and quality to JPEG and 85 on the selected image service layer.
3.) Set the processing template to Natural Color on the selected image service layer.
4.) Set the stretch type to Percent Clip and enable DRA on the selected image service layer.
5.) Set the resampling type to Nearest Neighbor on the selected image service layer.
Language: C#
Subject: Map Authoring
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, https://www.esri.com
Date: 11/04/2024
ArcGIS Pro: 3.4
Visual Studio: 2022
.NET Target Framework: net8.0-windows
- Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the Releases page.
- In Visual Studio click the Build menu. Then select Build Solution.
- Click Start button to open ArcGIS Pro.
- ArcGIS Pro will open.
- Open a new map view using the Map tempalte (using this path: "CIMPATH=map/map.xml")
- Click on the ADD-IN tab.
- Click the Add Raster Layer button to add a new image service layer to the map.
- Click on the other buttons described above to set different properties in the image service layer.
Home | API Reference | Requirements | Download | Samples