How to remove the unwanted values created around the raster data to show the background in C++ ArcGIS Runtime API

965
3
10-16-2022 01:47 AM
Labels (3)
hoangtruonggis
New Contributor II

I'm using Qt 5 C++ / Desktop_Qt_5_15_2_MSVC2019_64bit and ArcGIS SDK 100.13 to build my app.

When I add a raster to the map, I have a trouble creating a white (or black) background on a tiff image.

I want the white part to be transparent so the background can be seen.

Thank for help!

Screenshot 2022-10-16 154241.png

Tags (2)
0 Kudos
3 Replies
ThomasHoman
Occasional Contributor III

Hello,

While I don't have specific SDK experience perhaps https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/mosaic.htm might help. Specifically the comment of "For file-based rasters, Ignore Background Value must be set to the same value as NoData for the background value to be ignored."

Regards,

Tom

hoangtruonggis
New Contributor II

Thank for your suggestion. But the main reason is I programmatically create the application independently with ArcGIS Pro. I haven't found any APIs that support it yet.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

The Raster Function capability may solve the problem - for more info see Solved: Re: RasterLayer Alpha Channel? - Esri Community 

0 Kudos