User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.tgis_pixelexportmanager

TGIS_PixelExportManager class

DK11 for ActiveX | TatukGIS_XDK11.TGIS_PixelExportManager | Classes | Methods | Properties

Pixel export manager.

Available also on: Delphi | .NET | Java.

Syntax

// C#
public class TGIS_PixelExportManager : ITGIS_PixelExportManager, IConnectionPointContainer, ITGIS_PixelExportManagerEvents 
{
}
' VisualBasic
Public Class TGIS_PixelExportManager
  Implements ITGIS_PixelExportManager
  Implements IConnectionPointContainer
  Implements ITGIS_PixelExportManagerEvents
End Class
// Oxygene
type
  TGIS_PixelExportManager = public class
  end;

Implements

Methods

Inherited Overrides Protected
Name Visibility Description
AttachDelphiObj public Only for internal use of TatukGIS.
(Inherited from ITBaseObject)
BusyEvent public Busy event handler.
(Inherited from ITGIS_PixelExportManagerEvents)
Create_ public Create an instance.
DelphiObj public Only for internal use of TatukGIS.
(Inherited from ITBaseObject)
ExportFrom public Export a map given by the viewer using tiles.
ExportFrom_2 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).
OverlappedExtentMargin public Overlapped extent margin (in pixels).
TemporaryVisibleExtent public Used to force rendering labels.
TileSize public Size of exported tile.

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

2021/04/14 01:03

Page Tools