Shape Family
Previous  Top  Next


The DtpDocuments library is built up with a completely object oriented approach. The result of this is the family tree below.

Mother of all shapes
The mother of all shapes is the TdtpShape object. It does not represent any real shape yet but for clarity, let's visualise this shape as a little purple goat:

clip0023clip0024clip0025clip0026
This shape can be resized, moved, and rotated freely. It can also be made semi-transparent, as can be seen above when put over a rock image. Since all these properties are defined on this level, they will be available for each shape that inherits from this object!

Effects
Also on this level, we can already assign effects to the shape. There are a number of effects:

Shadow
clip0027
Traditional shadow
clip0028
Configured as a glow
clip0029
On a background it blends in..
Frames
clip0030
A frame can be placed around any shape.
clip0031
It rotates with the shape, and can be filled, and can have rounded corners
clip0032
..and combine shadow and frames! Note that the fill can be transparent too.
Color adjustments
clip0033
Original colors
clip0034
Brightness and contrast adjusted
clip0035
Hue, Saturation and Lighting adjusted.










Family tree
The family tree extends with these descending shapes:
clip0036
Thanks to the object-oriented nature, all shape types inherit the properties from the ancestor, so each shape can rotate, be blended, have frames, shadows, color corrections, etcetera. Additionally here are some key properties per shape type:

Text shapes
These shapes can have any font that can be rendered in Windows and can be edited in-document if you use a TrueType font. Text shapes can be left or right justified or centered.

Multiline shapes
These shapes can also be edited in-document, and will automatically wordwrap (default option). Note that with the frame option these make nice text boxes.

Bitmap shapes
The library supports these type of bitmap file formats:
·Windows Bitmap (BMP)  
·Jpeg Images (JPG)  
·GIF Images  
·PNG Images  
The library can be easily extended to add other file formats.

Bitmaps always have RGBA channels and are 32 bits in DtpDocuments

Metafile shapes
The library supports Windows Metafile and Enhanced Metafile. The Metafile shape can override the color and line settings of the metafiles.