DK11 for .NET | TatukGIS.NDK.TGIS_PixelExportManager | Classes | Constructors | Methods | Properties | Events
Pixel export manager.
// C# public class TGIS_PixelExportManager { }
' VisualBasic Public Class TGIS_PixelExportManager End Class
// Oxygene type TGIS_PixelExportManager = public class end;
Name | Visibility | Description | |
---|---|---|---|
TGIS_PixelExportManager() | public | Create an instance. | |
Name | Visibility | Description | |
---|---|---|---|
ExportFrom(IGIS_Viewer, IGIS_ViewerBmp, TGIS_Extent, int) | public | Export a map given by the viewer using tiles. | |
ExportFrom(IGIS_Viewer, IGIS_ViewerBmp, TGIS_Extent, int, int, int) | public | Export a map given by the viewer using tiles. | |
Name | Visibility | Description | |
---|---|---|---|
Fill | public | If True, space beyond export extent and drawer background will be filled with FillColor. | |
FillColor | public | Color of the fill. | |
FillValue | public | Value of the fill (grid layers only). | |
OverlappedExtentMargin | public | Margin (in pixels) to scan around an exported tile. | |
TemporaryVisibleExtent | public | Area for rendered labels. | |
TileSize | public | Size of exported tile. | |
Exports the viewer content into the image file. Prepared to export even very big images by exporting in tiles.
Pseudo code:
// prepare output layer lp = (TGIS_LayerPixel)TGIS_Utils.GisCreateLayer('', path); // prepare subformat specification to use layer default encoding // you can also use TGIS_LayerPixel.Capabilities to learn about // other possibilites. subformat = new TGIS_LayerPixelSubFormat( TGIS_PixelFormat.RGB, false, TGIS_PixelSubFormat.None, TGIS_CompressionType.None, 100 ) ; // build output layer lp.Build( lp.Path, false, GIS.CS, GIS.Extent, width, height, subformat); // create export manager export = new TGIS_PixelExportManager( lp ); export.BusyEvent = my_busy_event; // create temporary viewer to be used for tiling tile = new TGIS_ViewerBmp(); // perform export export.ExportFrom( GIS, tile, GIS.Extent, dpi ); // finalize save lp.SaveData()