EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Spezifikationen Seite 230

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 304
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 229
CHAPTER 8: ExtendScript Tools and Features Specifying measurement values 230
Specifying measurement values
ExtendScript provides the UnitValue object to represent measurement values. The properties and
methods of the
UnitValue object make it easy to change the value, the unit, or both, or to perform
conversions from one unit to another.
UnitValue object
Represents measurement values that contain both the numeric magnitude and the unit of measurement.
UnitValue object constructor
The UnitValue constructor creates a new UnitValue object. The keyword new is optional:
myVal = new UnitValue (value, unit);
myVal = new UnitValue ("value unit");
myVal = new UnitValue (value, "unit");
The value is a number, and the unit is specified with a string in abbreviated, singular, or plural form, as
shown in the following table.
If an unknown unit type is supplied, the type is set to
"?", and the UnitValue object prints as "UnitValue
0.00000".
Abbreviation Singular Plural Comments
in inch inches 2.54 cm
ft foot feet 30.48 cm
yd yard yards 91.44 cm
mi mile miles 1609.344 m
mm millimeter millimeters
cm centimeter centimeters
m meter meters
km kilometer kilometers
pt point points inches / 72
pc pica picas points * 12
tpt traditional point traditional points inches / 72.27
tpc traditional pica traditional picas 12 tpt
ci cicero ciceros 12.7872 pt
px pixel pixels baseless (see below)
% percent percent baseless (see below)
Seitenansicht 229
1 2 ... 225 226 227 228 229 230 231 232 233 234 235 ... 303 304

Kommentare zu diesen Handbüchern

Keine Kommentare