Index

D-Type Shape Engine Overview

D-Type Shape Engine is just one level above D-Type Rasterizer. Its function is to render custom vectorial shapes (outlines) that are described using straight or curved segments to the output surface of the application's choice. In this process, colors and, optionally, advanced style effects are applied.

D-Type Shape Engine consists of the following main components:

Life Cycle

A typical life cycle of an application that relies on D-Type Shape Engine is briefly summarized in the following table:

Step Function
1. Initialize D-Type Engine dtEngineIniViaStream
2. Set destination surface (D-Type's Memory Surface or Windows Device Context) and its clipping region to the Output dtOutputSetAsMDC, dtOutputSetAsHDC
3. Select a style to the Output. dtOutputSetStyleAttribs or dtOutputSetStyleEffects
4. Define and draw shapes dtShapesDoOutput
5. Deinitialize D-Type Engine dtEngineExt

Please note that the above table only identifies the most important steps and functions. Your application might need additional steps and/or functions.

How It Works

Note: The maximum width and height to render in a single pass can be set in the dtype.inf initialization file or by calling the dtRasterizerRealloc function.

 

Index