User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_pixelexportmanager

TGIS_PixelExportManager class

DK11 for .NET | TatukGIS.NDK.TGIS_PixelExportManager | Classes | Constructors | Methods | Properties | Events

Pixel export manager.

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public class TGIS_PixelExportManager 
{
}
' VisualBasic
Public Class TGIS_PixelExportManager
End Class
// Oxygene
type
  TGIS_PixelExportManager = public class
  end;

Constructors

Inherited Overrides Protected
Name Visibility Description
TGIS_PixelExportManager() public Create an instance.

Methods

Inherited Overrides Protected
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.

Properties

Inherited Protected
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).
TileSize public Size of exported tile.

Events

Inherited Protected
Name Visibility Description
BusyEvent public Busy event handler.

Remarks

Exports the viewer content into the image file. Prepared to export even very big images by exporting in tiles.

Example

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()

References

2019/01/25 17:10