Maria GDK 4.5.0.137
Documentation of managed code in release branch
Loading...
Searching...
No Matches
TPG.GeoFramework.RasterExport.Contracts.OffscreenRasterExportFactory Class Reference

Factory for creating the different objects for performing offscreen exports. More...

Public Member Functions

async Task< IOffScreenRasterExporterNewOffScreenExporter (INativeRenderingManager renderingManager, GeoRect visibleGeoArea, int widthInPixels, int heightInPixels, bool adjustBitmapToViewport, double dpi, string displayProjection)
 Creates an implementation of IOffscreenRasterExport. The method also ensure that the WPF rendering thread has had some time to breathe, therefore it as made async. Has to be used with the async await pattern from the UI thread.
 
async Task< IOffScreenRasterExporterNewOffScreenExporterMetric (INativeRenderingManager renderingManager, GeoRect visibleGeoArea, double widthInMillimeters, double heightInMillimeters, bool adjustBitmapToViewport, double dpi, string displayProjection)
 Creates an implementation of IOffscreenRasterExport. The method also ensure that the WPF rendering thread has had some time to breathe, therefore it as made async. Has to be used with the async await pattern from the UI thread.
 
async Task< IComplexOffScreenExporterNewComplexOffScreenExporter (INativeRenderingManager renderingManager, GeoRect visibleGeoArea, int widthInPixels, int heightInPixels, bool adjustBitmapToViewport, double dpi, string displayProjection, int leftMarginInPixels, int topMarginInPixels, int rightMarginInPixels, int bottomMarginInPixels)
 Creates a new IComplexOffScreenExporter implementation based on pixel sizes. The method also ensure that the WPF rendering thread has had some time to breathe, therefore it as made async. Has to be used with the async await pattern from the UI thread.
 
async Task< IComplexOffScreenExporterNewComplexOffScreenExporterMetric (INativeRenderingManager renderingManager, GeoRect visibleGeoArea, double widthInMillimeters, double heightInMillimeters, bool adjustBitmapToViewport, double dpi, string displayProjection, double leftMarginInMillimeters, double topMarginInMillimeters, double rightMarginInMillimeters, double bottomMarginInMillimeters)
 Creates a new IComplexOffScreenExporter implementation based on metric sizes. The method also ensure that the WPF rendering thread has had some time to breathe, therefore it as made async. Has to be used with the async await pattern from the UI thread.
 

Detailed Description

Factory for creating the different objects for performing offscreen exports.

Member Function Documentation

◆ NewComplexOffScreenExporter()

async Task< IComplexOffScreenExporter > TPG.GeoFramework.RasterExport.Contracts.OffscreenRasterExportFactory.NewComplexOffScreenExporter ( INativeRenderingManager  renderingManager,
GeoRect  visibleGeoArea,
int  widthInPixels,
int  heightInPixels,
bool  adjustBitmapToViewport,
double  dpi,
string  displayProjection,
int  leftMarginInPixels,
int  topMarginInPixels,
int  rightMarginInPixels,
int  bottomMarginInPixels 
)
inline

Creates a new IComplexOffScreenExporter implementation based on pixel sizes. The method also ensure that the WPF rendering thread has had some time to breathe, therefore it as made async. Has to be used with the async await pattern from the UI thread.

Parameters
renderingManager
visibleGeoAreaThe geographical area to export.
widthInPixelsThe width in pixels of the resulting bitmap.
heightInPixelsThe height in pixels of the resulting bitmap.
adjustBitmapToViewportIf true, the exported bitmap size will be adjusted to the map viewport.
dpiDpi of the resulting bitmap.
displayProjectionThe display projection string.
leftMarginInPixelsLeft margin measured in pixels.
topMarginInPixelsTop margin measured in pixels.
rightMarginInPixelsRight margin measured in pixels.
bottomMarginInPixelsBottom margin measured in pixels.
Returns
The implementation.

◆ NewComplexOffScreenExporterMetric()

async Task< IComplexOffScreenExporter > TPG.GeoFramework.RasterExport.Contracts.OffscreenRasterExportFactory.NewComplexOffScreenExporterMetric ( INativeRenderingManager  renderingManager,
GeoRect  visibleGeoArea,
double  widthInMillimeters,
double  heightInMillimeters,
bool  adjustBitmapToViewport,
double  dpi,
string  displayProjection,
double  leftMarginInMillimeters,
double  topMarginInMillimeters,
double  rightMarginInMillimeters,
double  bottomMarginInMillimeters 
)
inline

Creates a new IComplexOffScreenExporter implementation based on metric sizes. The method also ensure that the WPF rendering thread has had some time to breathe, therefore it as made async. Has to be used with the async await pattern from the UI thread.

Parameters
renderingManager
visibleGeoAreaThe geographical area to export.
widthInMillimetersThe width in pixels of the resulting bitmap.
heightInMillimetersThe height in pixels of the resulting bitmap.
adjustBitmapToViewportIf true, the exported bitmap size will be adjusted to the map viewport.
dpiDpi of the resulting bitmap.
displayProjectionThe display projection string.
leftMarginInMillimetersLeft margin measured in millimeters.
topMarginInMillimetersTop margin measured in millimeters.
rightMarginInMillimetersRight margin measured in millimeters.
bottomMarginInMillimetersBottom margin measured in millimeters.
Returns
The implementation.

◆ NewOffScreenExporter()

async Task< IOffScreenRasterExporter > TPG.GeoFramework.RasterExport.Contracts.OffscreenRasterExportFactory.NewOffScreenExporter ( INativeRenderingManager  renderingManager,
GeoRect  visibleGeoArea,
int  widthInPixels,
int  heightInPixels,
bool  adjustBitmapToViewport,
double  dpi,
string  displayProjection 
)
inline

Creates an implementation of IOffscreenRasterExport. The method also ensure that the WPF rendering thread has had some time to breathe, therefore it as made async. Has to be used with the async await pattern from the UI thread.

Parameters
renderingManager
visibleGeoAreaThe geographical area to export.
widthInPixelsThe width in pixels of the resulting bitmap.
heightInPixelsThe height in pixels of the resulting bitmap.
adjustBitmapToViewportIf true, the exported bitmap size will be adjusted to the map viewport.
dpiDpi of the resulting bitmap.
displayProjectionThe display projection string.
Returns
The implementation.

◆ NewOffScreenExporterMetric()

async Task< IOffScreenRasterExporter > TPG.GeoFramework.RasterExport.Contracts.OffscreenRasterExportFactory.NewOffScreenExporterMetric ( INativeRenderingManager  renderingManager,
GeoRect  visibleGeoArea,
double  widthInMillimeters,
double  heightInMillimeters,
bool  adjustBitmapToViewport,
double  dpi,
string  displayProjection 
)
inline

Creates an implementation of IOffscreenRasterExport. The method also ensure that the WPF rendering thread has had some time to breathe, therefore it as made async. Has to be used with the async await pattern from the UI thread.

Parameters
renderingManager
visibleGeoAreaThe geographical area to export.
widthInMillimetersThe width in pixels of the resulting bitmap.
heightInMillimetersThe height in pixels of the resulting bitmap.
adjustBitmapToViewportIf true, the exported bitmap size will be adjusted to the map viewport.
dpiDpi of the resulting bitmap.
displayProjectionThe display projection string.
Returns
The implementation.

The documentation for this class was generated from the following file: