How to Change background color of DWF file
You can specify the background color when you create a DWF™ file, or change it for existing DWF files.
Note: You cannot change the background color of an existing binary DWF file. However, you can specify the background color for existing binary DWF files when embedding them in HTML.
To specify the background color when you create a DWF file
- On the File menu, click Plot.
- In the Plot dialog box, click the Plot Device tab.
- Under Plotter Configuration, select an ePlot plotter from the Name list. For example, select DWF ePlot.pc3 from the Name list.
- Click Properties.
- In the Plotter Configuration Editor dialog box, Device and Document Settings tab, click Custom Properties.
- Under Access Custom Dialog, click Custom Properties.
- In the DWF Properties dialog box, select the background color from the Background Color Shown in Viewer list.
- Click OK in each dialog box to return to the Plot Device tab in the Plot dialog box.
To change the background color of an existing ASCII DWF file
Note: You can use this method for ASCII DWF files only.
- In a text editor (for example, Notepad), open the ASCII DWF file.
- Locate the string "Background 255" and change it to "Background #", where # is the required RGB color value. For example, 255 is white and 40 is green.
- Save the file and exit the text editor.
To specify the background color when embedding a DWF file in HTML
When the DWF file is embedded in an HTML file, you can specify the optional BackColor parameter for the object and embedded tags. The BackColor parameter specifies a background color for the referenced DWF file.
Microsoft® Internet Explorer
For Internet Explorer, you specify the background color in the object tag, as shown in the following example:
<param name="BackColor" value="255">
Netscape
For Netscape, you specify the background color in the embedded tag, as shown in the following example:
backcolor="255"
Note: The color value is a hexadecimal number.
Example: DWF in HTML
The following example is a short HTML file, where the background color of the embedded DWF file is specified for both Internet Explorer and Netscape.
<HTML>
<BODY>
<H3>HTML file with embedded DWF with red background</H3>
<object
id="linkrods"
classid="clsid:B2BE75F3-9197-11CF-ABF4-08000996E931"
codebase="ftp://ftp.autodesk.com/pub/whip/english/whip.cab#version=3,1,36,35"
width=400
height=300>
<param name="Filename" value="linkrods.dwf">
<param name="BackColor" value="244">
<embed
name="linkrods"
pluginspage="http://www.autodesk.com/products/whip"
BackColor="244"
width=400
height=300
src="linkrods.dwf">
</object>
</BODY>
</HTML>
Note: Although you can add parameters in the HTML file or edit ASCII DWF files to change the background color; these actions do not switch white geometry to black and vice versa.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home