ImageGear .NET v24.12 - Updated
DWF
User Guide > File Formats and Compressions > File Formats > File Formats Reference > DWF
Full Name DWF (Design Web Format)
Format ID ImGearFormats.DWF
File Extension(s) *.dwf, *.w2d, *.w3d
Data Type Vector/CAD image
Data Encoding Binary
Multi-Page Support Yes
Alpha Channel Support No
Metadata Update Support No
ImageGear Platforms Support Win32, .NET
DWF format requires ImageGear.Formats.DWF Namespace.

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
Width Long 512 Any positive value Defines the DIB width of the loaded image. The DIB height is calculated using the file's scale factors.

Comments

DWF is an open format developed by AutoDesk (Design Web Format). 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.

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

ImGearVectEntities.POLYLINE entity.

WT_Polyline

Vertices

ImGearVectEntities.POLYLINE entity.

WT_Color

RGBA color

Current color for creating ImGearVectAttrib.DRAWCOLOR, ImGearVectAttrib.FILLCOLOR attributes and a color of ImGearVectorTextObject object.

WT_Background

RGBA color

Background color for ImGearVectorView object.

WT_Text

Text string

Bounds

Position

ImGearVectEntities.TEXT entity.

WT_Text_HAlign

Horizontal alignment

Horizontal alignment for ImGearVectEntities.TEXT entity.

WT_Text_VAlign

Vertical alignment

Vertical alignment for ImGearVectEntities.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 ImGearVectorFont object.

WT_Line_Weight

Weight

Used as a thickness when creating ImGearVectAttrib.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 ImGearVectEntities.ELLIPSE or ImGearVectEntities.ARC entity.

WT_Outline_Ellipse

Start angle

End angle

Rotation

Major axe

Minor axe

Center X position

Center Y position

Either ImGearVectEntities.ELLIPSE or ImGearVectEntities.ARC entity.

WT_Polytriangle

Vertices

ImGearVectEntities.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 ImGearVectAttrib.DRAWCOLOR, ImGearVectAttrib.FILLCOLOR attributes and a color of ImGearVectorTextObject object.

Color_RGB

RGB value

Color for creating ImGearVectAttrib.DRAWCOLOR, ImGearVectAttrib.FILLCOLOR attributes and a color of ImGearVectorTextObject object.

Color_By_Value

Value

Color for creating ImGearVectAttrib.DRAWCOLOR, ImGearVectAttrib.FILLCOLOR attributes and a color of ImGearVectorTextObject object. Color value is converted into RGB.

Color_By_Index

Index

Color for creating ImGearVectAttrib.DRAWCOLOR, ImGearVectAttrib.FILLCOLOR attributes and a color of ImGearVectorTextObject object. Color value is converted into RGB.

Color_By_Index_16

Index

Color for creating ImGearVectAttrib.DRAWCOLOR, ImGearVectAttrib.FILLCOLOR attributes and a color of ImGearVectorTextObject object. Color value is converted into RGB.

Color_By_FIndex

Index

Color for creating ImGearVectAttrib.DRAWCOLOR, ImGearVectAttrib.FILLCOLOR attributes and a color of ImGearVectorTextObject 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 ImGearVectorView object.

Modelling_Matrix

4x4 matrix

Transformation for entities.

Open_Segment

Segment name

ImGearVectEntities.BLOCK and ImGearVectEntities.INSERT entities. ImGearVectEntities.INSERT references ImGearVectEntities.BLOCK.

The block is set as current.

Close_Segment

 

Restores previous current block.

Include_Segment

Segment name

ImGearVectEntities.INSERT entity that references the existing block.

Visibility

Visibility

Affects the visibility of entities.

Text_Alignment

Alignment

Specifies an alignment for ImGearVectEntities.TEXT entity.

Text_Font

Mask

Name

Size

Width factor

Width scale

Extra space

Rotation

Used for creating ImGearVectorFont object and for some settings of ImGearVectEntities.TEXT entity.

Circle

Start point

Middle point

End point

Center

ImGearVectEntities.ELLIPSE entity.

 

Circular_Arc

Start point

Middle point

End point

Center

ImGearVectEntities.ELLIPSE or ImGearVectEntities.ARC entity.

Circular_Hord

Start point

Middle point

End point

Center

ImGearVectEntities.ELLIPSE or ImGearVectEntities.ARC entity.

Circular_Wedge

Start point

Middle point

End point

Center

ImGearVectEntities.ELLIPSE or ImGearVectEntities.ARC entity.

Ellipse

Major

Minor

Center

ImGearVectEntities.ELLIPSE entity.

Elliptical_Arc

Major

Minor

Center

Limits (Angles)

ImGearVectEntities.ARC entity.

Line

Points

ImGearVectEntities.EASYLINE entity.

Polygon

Points

ImGearVectEntities.POLYLINE entity.

Polyline

Points

ImGearVectEntities.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

ImGearVectEntities.EASYLINE

ImGearVectEntities.POLYLINE

ImGearVectEntities.POLYLINEEX

ImGearVectEntities.ARC

ImGearVectEntities.ELLIPSE

ImGearVectEntities.NURBS_CURVE

ImGearVectEntities.BEZIER_CURVE

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

ImGearVectEntities.NURBS_SURFACE

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

ImGearVectEntities.BEZIER_SURFACE

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

ImGearVectEntities.BLOCK

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

ImGearVectEntities.TEXT

WT_Text objects. WT_Font objects are created if necessary.

ImGearVectEntities.INSERTION

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

ImGearVectEntities.VIEWPORT

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

ImGearVectEntities.FIGURE

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

ImGearVectEntities.EASY_SURFACE

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

ImGearVectEntities.SHELL

Faces of the shell are saved as WT_Polyline objects.

ImGearVectEntities.SOLID

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

ImGearVectEntities.GEOMETRY

WT_Polytriangle object.