Not so long ago I have done something like this with ExportTIFF
. You can load the feature to map, zoom to it and then do sth. like this:
ExportTIFF docExport = new ExportTIFFClass();
(docExport as IExport).Resolution = (short)iOutputResolution;
(docExport as IExport).PixelBounds = PixelBoundsEnv;
(docExport as IExport).ExportFileName = sOutputDir + ...
(docExport as IExportTIFF).GeoTiff = true;
(docExport as IWorldFileSettings).MapExtent = docMapExtEnv;
(docExport as IWorldFileSettings).OutputWorldFile = true;
if (docExport is IExportImage)
{
(docExport as IExportImage).ImageType = esriExportImageType.esriExportImageTypeIndexed;
if (docActiveView.ScreenDisplay is IScreenDisplay2)
{
IColor col = new RgbColorClass();
col.RGB=(docActiveView.ScreenDisplay as IScreenDisplay2).BackgroundRGB;
(docExport as IExportImage).BackgroundColor = col;
}
}
long hdc = (docExport as IExport).StartExporting();
IEnvelope dummy = null;
docActiveView.Output((int)hdc, (System.Int16)((docExport as IExport).Resolution), ref exportRECT, docMapExtEnv, null);
(docExport as IExport).FinishExporting();
(docExport as IExport).Cleanup();