ImageGear for C and C++ on Windows v20.0 - Updated
DWF
User Guide > File Formats and Compressions > File Formats > File Formats Reference > DWF
Full Name DWF (Design Web Format)
Format ID IG_FORMAT_DWF = 78
File Extension(s) *.dwf, *.w2d, *.w3d
Data Type Vector/CAD image
Data Encoding Binary
Color Profile Support No
Multi-Page Support Yes
Alpha Channel Support No
ImageGear 3D Image Support Yes (read only)
ImageGear Raster to Vector Format Conversion Support Yes
ImageGear Unicode Text Display Support Yes
To support the DWF format, attach the ImageGear CAD/Vector DWF Component to Core ImageGear. See Attaching Components.

ImageGear Supported Versions:

ImageGear Supported Features:

ImageGear Read Support:

ImageGear Write Support:

ImageGear Filter Control Parameters:

Filter Control Parameter Type Default Value Available Values Description
IMAGE_FORMAT AT_INT32 IG_FORMAT_PNG IG_FORMAT_BMP
IG_FORMAT_CAL
IG_FORMAT_GIF
IG_FORMAT_G4
IG_FORMAT_JPG
IG_FORMAT_PCX
IG_FORMAT_PCT
IG_FORMAT_PNG
IG_FORMAT_TGA IG_FORMAT_TIF
Defines the internal format that will be used for saving of raster data inside the DWF file. This only affects saving of raster images to DWF. Allowed values correspond to enumIGSaveFormats constants.
WIDTH AT_INT32 512 Any positive value Defines the width of the empty DIB associated with the image after loading. DIB height is calculated using the file's scale factors. See Working with Vector Images.

Comments:

DWF is an open file format developed by AutoDesk for storing DWG files on the Internet. DWF contains a vector based description of drawings and illustrations. The format supports 2D and 3D drawings. Unlike DWG and DXF, DWF is focused on viewing only. It is intended to be used for publishing 2D and 3D CAD drawings so they can be easily viewed without requiring the use of CAD software.

The format may also contain an encapsulated raster image, in one of the following formats: BMP, CAL, GIF, CCITT Group4, JPEG, PCX, PCT, PNG, TGA, TIFF.

DWF Features Supported for Reading

ImageGear uses DWFToolkit for reading DWF file contents. The following tables use DWFToolkit terms to list DWF features supported by ImageGear:

2D Features

DWF Toolkit Object

Supported Attributes

Imported into ImageGear as:

WT_Polygon

Vertices

IG_VECT_ENT_POLYLINE entity.

WT_Polyline

Vertices

IG_VECT_ENT_POLYLINE entity.

WT_Color

RGBA color

Current color for creating IG_VECT_ENT_ATTR_DRAWCOLOR, IG_VECT_ENT_ATTR_FILLCOLOR attributes and a color of HIG_VECT_TEXTOBJ object.

WT_Background

RGBA color

Background color for HIG_VECT_VIEW object.

WT_Text

Text string

Bounds

Position

IG_VECT_ENT_TEXT entity.

WT_Text_HAlign

Horizontal alignment

Horizontal alignment for IG_VECT_ENT_TEXT entity.

WT_Text_VAlign

Vertical alignment

Vertical alignment for IG_VECT_ENT_TEXT entity.

WT_Font

Font name

Font height

Font rotation

Font spacing

Font width scale

Font is bold flag

Font is italic flag

Font is underlined flag

Used for creating HIG_VECT_FONT object.

WT_Line_Weight

Weight

Used as a thickness when creating IG_VECT_ENT_ATTR_THICKNESS attribute.

WT_Fill

Fill mode

Used internally to turn filling mode on/off.

WT_Filled_Ellipse

Start angle

End angle

Rotation

Major axe

Minor axe

Center X position

Center Y position

Either IG_VECT_ENT_ELLIPSE or IG_VECT_ENT_ARC entity.

WT_Outline_Ellipse

Start angle

End angle

Rotation

Major axe

Minor axe

Center X position

Center Y position

Either IG_VECT_ENT_ELLIPSE or IG_VECT_ENT_ARC entity.

WT_Polytriangle

Vertices

IG_VECT_ENT_GEOMETRY entity.

WT_Visibility

Visibility

Affects the visibility of entities.

3D Features

DWF Toolkit Object

Supported Attributes

Imported into ImageGear as:

Color

Diffuse color

Color for creating IG_VECT_ENT_ATTR_DRAWCOLOR, IG_VECT_ENT_ATTR_FILLCOLOR attributes and a color of HIG_VECT_TEXTOBJ object.

Color_RGB

RGB value

Color for creating IG_VECT_ENT_ATTR_DRAWCOLOR, IG_VECT_ENT_ATTR_FILLCOLOR attributes and a color of HIG_VECT_TEXTOBJ object.

Color_By_Value

Value

Color for creating IG_VECT_ENT_ATTR_DRAWCOLOR, IG_VECT_ENT_ATTR_FILLCOLOR attributes and a color of HIG_VECT_TEXTOBJ object. Color value is converted into RGB.

Color_By_Index

Index

Color for creating IG_VECT_ENT_ATTR_DRAWCOLOR, IG_VECT_ENT_ATTR_FILLCOLOR attributes and a color of HIG_VECT_TEXTOBJ object. Color value is converted into RGB.

Color_By_Index_16

Index

Color for creating IG_VECT_ENT_ATTR_DRAWCOLOR, IG_VECT_ENT_ATTR_FILLCOLOR attributes and a color of HIG_VECT_TEXTOBJ object. Color value is converted into RGB.

Color_By_FIndex

Index

Color for creating IG_VECT_ENT_ATTR_DRAWCOLOR, IG_VECT_ENT_ATTR_FILLCOLOR attributes and a color of HIG_VECT_TEXTOBJ object. Color value is converted into RGB.

Color_Map

Color values

Used to get an actual color value by index.

View

Target

Position

Up vector

Transformation matrix of HIG_VECT_VIEW object.

Modelling_Matrix

4x4 matrix

Transformation for entities.

Open_Segment

Segment name

IG_VECT_ENT_BLOCK and IG_VECT_ENT_INSERT entities. IG_VECT_ENT_INSERT references IG_VECT_ENT_BLOCK.

The block is set as current.

Close_Segment

 

Restores previous current block.

Include_Segment

Segment name

IG_VECT_ENT_INSERT entity that references the existing block.

Visibility

Visibility

Affects the visibility of entities.

Text_Alignment

Alignment

Specifies an alignment for IG_VECT_ENT_TEXT entity.

Text_Font

Mask

Name

Size

Width factor

Width scale

Extra space

Rotation

Used for creating HIG_VECT_FONT object and for some settings of IG_VECT_ENT_TEXT entity.

Circle

Start point

Middle point

End point

Center

IG_VECT_ENT_ELLIPSE entity.

 

Circular_Arc

Start point

Middle point

End point

Center

IG_VECT_ENT_ELLIPSE or IG_VECT_ENT_ARC entity.

Circular_Hord

Start point

Middle point

End point

Center

IG_VECT_ENT_ELLIPSE or IG_VECT_ENT_ARC entity.

Circular_Wedge

Start point

Middle point

End point

Center

IG_VECT_ENT_ELLIPSE or IG_VECT_ENT_ARC entity.

Ellipse

Major

Minor

Center

IG_VECT_ENT_ELLIPSE entity.

Elliptical_Arc

Major

Minor

Center

Limits (Angles)

IG_VECT_ENT_ARC entity.

Line

Points

IG_VECT_ENT_EASYLINE entity.

Polygon

Points

IG_VECT_ENT_POLYLINE entity.

Polyline

Points

IG_VECT_ENT_POLYLINE entity.

ImageGear Vector Entities Supported for Writing to DWF Format

All vector data is saved as 2D stream. 3D coordinates are projected to 2D surface during saving, according to the active view transformation.

ImageGear Entity or Object

Saved as DWF Element

IG_VECT_ENT_EASYLINE

IG_VECT_ENT_POLYLINE

IG_VECT_ENT_POLYLINEEX

IG_VECT_ENT_ARC

IG_VECT_ENT_ELLIPSE

IG_VECT_ENT_NURBS_CURVE

IG_VECT_ENT_BEZIER_CURVE

Vector Cache data is written as either WT_Polygon or WT_Polyline, depending on draw and fill attributes.

IG_VECT_ENT_NURBS_SURFACE

Mesh object of the NURBS surface is saved as several WT_Polyline objects.

IG_VECT_ENT_BEZIER_SURFACE

Mesh object of the Bezier surface is saved as several WT_Polyline objects.

IG_VECT_ENT_BLOCK

All entities in the block container are saved taking into account the block transformation.

IG_VECT_ENT_TEXT

WT_Text objects. WT_Font objects are created if necessary.

IG_VECT_ENT_INSERTION

All entities in the reverenced block container are saved taking into account the insertion and block transformation.

IG_VECT_ENT_VIEWPORT

Viewport content is saved taking into account the viewport scaling and transformation.

IG_VECT_ENT_FIGURE

Vector Cache data is written as WT_Polygon. Every internal entity of the figure is also saved as WT_Polyline.

IG_VECT_ENT_EASY_SURFACE

Mesh object of the surface is saved as several WT_Polyline objects.

IG_VECT_ENT_SHELL

Faces of the shell are saved as WT_Polyline objects.

IG_VECT_ENT_SOLID

Either WT_Polygon or WT_Polyline, depending on draw and fill attributes.

IG_VECT_ENT_GEOMETRY

WT_Polytriangle object.

Is this page helpful?
Yes No
Thanks for your feedback.