User Tools

Site Tools


api:dk11:delphi:gispixelexportmanager.tgis_pixelexportmanager

TGIS_PixelExportManager class

DK11 for Delphi | GisPixelExportManager.TGIS_PixelExportManager | Classes | Constructors | Methods | Properties | Events

Pixel export manager.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
type
  TGIS_PixelExportManager = class
  end;
// C++ Builder
class PASCALIMPLEMENTATION TGIS_PixelExportManager

Constructors

Inherited Overrides Protected
Name Visibility Description
Create public Create an instance.

Methods

Inherited Overrides Protected
Name Visibility Description
ExportFrom(IGIS_Viewer; IGIS_ViewerBmp; TGIS_Extent; Integer) public Export a map given by the viewer using tiles.
ExportFrom(IGIS_Viewer; IGIS_ViewerBmp; TGIS_Extent; Integer; Integer; Integer) public Export a map given by the viewer using tiles.

Properties

Inherited Protected
Name Visibility Description
Fill published If True, space beyond export extent and drawer background will be filled with FillColor.
FillColor published Color of the fill.
FillValue published Value of the fill (grid layers only).
OverlappedExtentMargin published Overlapped extent margin (in pixels).
TileSize published Size of exported tile.

Events

Inherited Protected
Name Visibility Description
BusyEvent published 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

2020/05/08 01:12