Adobe 26001360 Scripting Guide - Page 328
ExportOptionsPNG8, Table 5.33, ExportOptionsPNG8 - Properties
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 328 highlights
328 Visual Basic Reference Notes It is not necessary to specify values for all properties. Default values will be provided for any properties not specified. Example 17.1 This example exports the current document as a PNG24 file with specific options. Dim appRef As New Illustrator.Application Dim png24ExportOptions As New Illustrator.ExportOptionsPNG24 Dim docRef As Illustrator.Document If appRef.Documents.Count > 0 Then png24ExportOptions.AntiAliasing = False png24ExportOptions.Transparency = False Set docRef = appRef.ActiveDocument docRef.Export "C:\temp\AiExport.png", aiPNG24, png24ExportOptions End If ExportOptionsPNG8 Options which may be supplied when exporting a document as an 8-bit PNG file. See the Export method for additional details. Table 5.33 ExportOptionsPNG8 - Properties Property R/O Value type What it is AntiAliasing Application ArtBoardClipping ColorCount ColorDither Boolean If true, the exported image should be anti-aliased; default value: true R/O Application object The Illustrator Application object Boolean If true, the exported image should be clipped to the art board; default: false Long The number of colors in the exported image's color table; acceptable values range from 2 to 256; default: 128 AiColorDitherMethod The method used to dither colors in the enumeration exported image; default: aiDiffusionDither 12 Aug 03