User Tools

Site Tools


api:dk11:delphi:gisrendererabstract.tgis_rendererabstract.createcontext_igis_viewerparent_igis_viewer_tgis_renderercontext_tpoint_integer_integer_integer_integer

Table of Contents

TGIS_RendererAbstract.CreateContext method

DK11 for Delphi | GisRendererAbstract.TGIS_RendererAbstract.CreateContext | Fields | Methods | Properties

Initiate context for the renderer.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  procedure CreateContext(
    const _parent : IGIS_ViewerParent;
    const _viewer : IGIS_Viewer;
    const _context : TGIS_RendererContext;
    const _shift : TPoint;
    const _width : Integer;
    const _height : Integer;
    const _ppi : Integer;
    const _fontscale : Integer
  ); virtual;
// C++ Builder
public:
  virtual void CreateContext(
    IGIS_ViewerParent* const _parent,
    IGIS_Viewer* const _viewer,
    TGIS_RendererContext* const _context,
    TPoint* const _shift,
    const int _width,
    const int _height,
    const int _ppi,
    const int _fontscale
  );

Parameters

Name Type Description
_parent IGIS_ViewerParent viewer parented interface; for Control* like methods
_viewer IGIS_Viewer viewer object
_context TGIS_RendererContext drawing context
_shift TPoint left and upper margins for the drawing surface
_width Integer width of the drawing surface
_height Integer height of the drawing surface
_ppi Integer resolution for the drawing surface
_fontscale Integer font scaling factor in percents
2018/02/17 00:10