Import of vector formats into pictures of the D2000 System

This chapter describes how to create a driver for importing images from other vector formats into the pictures of the D2000 System.


Import drivers

The files in DLL format represent the import drivers for the D2000 GrEditor. Their name must start with "Imp_". They are placed in the installation directory of the D2000 System, subdirectory Bin (together with GR.EXE). When starting the GrEditor, it detects the presence of files "IMP_*.DLL" in the directory (e.g. D2000\Bin). If there is at least one this file, the item Imports will be created in the submenu Utils. It enables the services of import drivers. Other drivers can be added when D2000 GrEditor is running.

A user interface requires the three functions that are included in a dynamic library (DLL). D2000 GrEditor calls these functions and supports the driver by call-back functions that enable to create the graphic objects in the pictures of the D2000 System.


Interface functions

A user interface requires a set of three functions, which are encased in a dynamic library (DLL), for the import of vector formats into pictures. The D2000 GrEditor calls these functions when occurring a request to import a picture into the opened picture. The functions are described in the chapter Interface functions.


Call-back procedures

Call-back procedures ensure the callbacks of GrEditor from the import DLL. They allow you to create graphic objects on the basis of decoding of import files. See the description in the chapter Call-back procedures.


Graphic objects creating

The chapter Graphic object creating describes the creating of graphic objects.


Graphic objects creating - examples

The chapter Graphic object creating - examples contains the examples on how to create the graphic objects.


Interface

An interface specification describes a definition of constants and types that are necessary for import of pictures from other graphic formats. On-line help contains the examples for ADA and C programming languages.

Napíšte komentár