User Tools

Site Tools


api:dk11:net:tatukgis.ndk.igis_viewer3d.printbmp_trect_tgis_bitmap

Table of Contents

IGIS_Viewer3D.PrintBmp method

DK11 for .NET | TatukGIS.NDK.IGIS_Viewer3D.PrintBmp | Methods | Properties

Dump required screen rectangle to a bitmap

Available also on: Delphi | ActiveX.

Syntax

// C#
public void PrintBmp(
  TRect _rect,
  TGIS_Bitmap _bmp
);
' VisualBasic
Public Sub PrintBmp(
  ByVal _rect As TRect,
  ByVal _bmp As TGIS_Bitmap
)
// Oxygene
public
  procedure PrintBmp(
    _rect : TRect;
    _bmp : TGIS_Bitmap
  );

Parameters

Name Type Description
_rect TRect required screen rectangle to be returned as TGIS_Bitmap
_bmp TGIS_Bitmap 32 bits TBitmap returned as a result

Remarks

if aspect ratios of _rect and _bmp are different procedure will preserve _rect ratio (empty margins will occur on _bmp)

Example

C#

// output bitmap is 512x512
var bmp = new TGIS_Bitmap(256,256);
 
// only upper-left quadrangle will be printed
rct = new Rectangle(0, 0, GIS.Width/2, GIS.Height/2)
 
GIS.Viewer3D.PrintBmp( rct, ref bmp );
bmp.SaveToFile( @"c:\temp\map3d.bmp" );
2019/08/13 10:54