Select to view content in your preferred language

Change Resample Method on a Raster

618
0
02-08-2012 12:59 PM
TomFlahive
Occasional Contributor
I have some working code where I create a raster from a raster dataset, using the following code:

Dim pRLayer As IRasterLayer
pRLayer = New RasterLayer
pRLayer.Name = "Logo"
pRLayer.CreateFromDataset(pRDataset)


This code works fine.  But I would now like to change the resampling method to BilinearInterpolation.  I tried the following, but this didn't work

pRLayer.Raster.ResampleMethod = rstResamplingTypes.RSP_BilinearInterpolation


Does anyone know how to change the resampling method given a raster layer?

Thanks.
0 Kudos
0 Replies