状態変数

Graphics State Variables and the State Variables. The values of these variables form part of the Virtual Machine State. These variables are global in that they can always be referenced from content. The set of Graphics State Variables is the set of state variables whose values are used by imaging operators. The State Variables hold information about the state of the Content Processor. The following subclauses define each state variable, its type, and its initial value at the time the Content Processor is called. ]]> 仮想機械の構成要素には,二つの変数の集合,作図状態変数及び状態変数がある。 それらの変数の値は,仮想機械の状態の一部を構成する。 状態変数は,内容からいつでも参照できるという意味で大域的とする。 作図状態変数の集合は,作画操作中に使う値をもつ状態変数の集合とする。 状態変数は,内容プロセサの状態に関する情報を表す。 次に続く副節で,各状態変数について,その型及び内容プロセサが呼び出されたときの 初期値を定義する。

  • これらの変数の値は,多くの演算子において暗黙のオペランドとして用いられる。 そのように変数を使うことの意味は,それぞれ個別の演算子の定義をする節で定める。 各状態変数を定義する次に続く副節中の備考において, その状態変数を暗黙のオペランドとして用いる演算子自身とその意味を 定義する節を参照する。
  • 内容中で演算子を用いることによって,ある状態変数は,明示的に設定でき, ある状態変数は明示的に参照でき,ある状態変数は設定と参照が共にできる。 それらの機能を実行する演算子については,参照先の節を参照すること。

    現黒生成(CurrentBlackGeneration)

    CurrentBlackGeneration Graphics State Variable has a value of type Procedure. Its initial value is implementation-dependent. ]]> CurrentBlackGeneration作図状態変数は,手続き型の値をもつ。 その初期値は実装に依存する。 CurrentBlackGeneration specifies the function for generating the black component of DeviceCMYK color during a DeviceRGB to DeviceCMYK color conversion. Operators specific to the manipulation of CurrentBlackGeneration are defined in . ]]> CurrentBlackGenerationは,装置RGB色表現から装置CMYK色表現への色変換を 行う際に,装置CMYK色表現における黒成分を生成するための機能を定める。 CurrentBlackGenerationを操作するために特に用意された演算子については, で定義する。

    現クリップ領域(CurrentClippingRegion)

    CurrentClippingRegion Graphics State Variable describes a region of the page image. Its initial value is a rectangle containing the entire imageable region of the page image as specified in . ]]> CurrentClippingRegion作図状態変数は,ページ像内の一領域を示す。 その初期値は,で規定するとおり ページ像を作画可能な領域全体を含む領域とする。 CurrentClippingRegion is a part of the imaging model. It determines the area of the medium which can be affected by imaging activities. It is defined in and used throughout to . Operators specific to the manipulation of CurrentClippingRegion are defined in . ]]> CurrentClippingRegionは,作画モデルの一部とする。 CurrentClippingRegionは,作画操作によって影響を受ける 媒体上の領域を決定する。 CurrentClippingRegionは,で定義され, からまでを通して用いられる。 CurrentClippingRegionを操作するために特に用意された演算子については, で定義する。

    現在色(CurrentColor)

    CurrentColor Graphics State Variable has as its value the specification for the current color/pattern in the current color space. The type and number of component values for this Graphics State Variable depend on the CurrentColorSpace Graphics State Variable. See through for details. Its initial value is <0:Number> (denoting 100% black) in the default color space (see below). ]]> CurrentColor作図状態変数は,現色空間中における現在の色/パターンの仕様を 値としてもつ。 この作図状態変数がもつ要素値の数及び型は, CurrentColorSpace 作図状態変数に 依存する。詳細は及びを参照。 その初期値は,無指定時色空間における <0:> (100%の黒を意味する)とする (後述の参照)。 CurrentColor specifies the color to be rendered for all geometric graphics and character text imaging operators, throughout to and , and the color of bitmap raster graphics. The color may be a solid color or a bit mask pattern in the CurrentColorSpace or a pattern which selects its own color space. ]]> CurrentColorは, からまで及び で定義するすべての幾何図形及び 文字テキストの作画操作を実行するときに, 可視化すべき色,及びビットマップラスタ図形の色を指定する。 その色は,CurrentColorSpace内の無地の色又はビットマスクパターン, 又は自分自身の色空間を選択するパターンとする。 SetColorSpace operator establishes a new CurrentColor. ]]> SetColorSpace演算子の実行によって色空間を変更すると 新たなCurrentColorが作られる。 CurrentColor for each color space and operators specific to the manipulation of CurrentColor, are defined in and . ]]> 各色空間に対するCurrentColorの初期値, 及びCurrentColorを操作するために特に 用意された演算子については, 及びで定義する。

    現色可視化(CurrentColorRendering)

    CurrentColorRendering Graphics State Variable has a value of type DictionaryReference. Its initial value is implementation-dependent. ]]> CurrentColorRendering作図状態変数は,辞書参照型の値をもつ。 その初期値は,実装依存とする。 CurrentColorRendering specifies the parameters (as a color rendering Dictionary) to the function which converts CIE-related color into device color. Operators specific to the manipulation of CurrentColorRendering are defined in . ]]> CurrentColorRenderingは,CIE関連色を装置色に変換する機能に対する パラメタ群を(1個の色可視化辞書として)定める。 CurrentColorRenderingを操作するために特に用意された演算子については, において定義する。

    現色空間(CurrentColorSpace)

    CurrentColorSpace Graphics State Variable has a Color Space Object which is a value of type VectorReference. ]]> CurrentColorSpace作図状態変数は,ベクタ参照型の値である 色空間オブジェクトをもつ。 FindResource when applied to an INTERNAL RESOURCE NAME that is declared to be bound to a Color Space resource (see ) for which the Object Name is "color-space-family::DeviceGray". ]]> その初期値は,要素が一つのベクタへの参照とする。 その参照は,オブジェクト名が"color-space-family::DeviceGray" である色空間資源(参照)と結合するように 内部資源名に対してFindResourceを適用して返される結果とする。 CurrentColorSpace specifies the domain in which colors are specified, and the set of component values used in that specification. ]]> CurrentColorSpaceは,色を写像する対象となる領域,及びその写像を行う ために用いる要素値の集合を指定する。 CurrentColor is a pattern, the referenced Vector specifies the color space underlying the pattern. ]]> CurrentColorがパターンの場合,参照されるベクタはそのパターンを 記述するのに用いられる色空間を規定する。 CurrentColorSpace are defined in and . ]]> CurrentColorSpaceを操作するために特に用意された演算子については, 及びで定義する。

    現破線パターン(CurrentDashPattern)

    CurrentDashPattern Graphics State Variable has two component values: a reference to a Vector of Numbers and a numerical offset. The initial values are a reference to an empty Vector and an offset of <0:Number>. ]]> CurrentDashPattern作図状態変数は,1個の数値ベクタへの参照 と1個の数値オフセットとの二つの構成要素からなる値をもつ。 その初期値は,空ベクタへの参照及び <0:> のオフセットとする。 CurrentDashPattern specifies the dash feature generated along paths imaged by the StrokePath operator. Operators specific to the manipulation of this state variable are defined in . ]]> CurrentDashPatternは,StrokePath演算子によって作画される パスにそって生成される破線の形状を定める。 この状態変数を操作するために特に用意された演算子については, で定義する。

    現フォント(CurrentFont)

    CurrentFont Graphics State Variable has a value of type IndexedFont. Its initial value is <null:Null>; if an operation which uses the CurrentFont is attempted before a value has been assigned to CurrentFont, RaiseError shall be invoked with InvalidFont as its operand. ]]> CurrentFont作図状態変数は,指標付きフォント型の値をもつ。 その初期値は,<null:ヌル>とする。 CurrentFontに値を割り当てる前にCurrentFontを用いる操作を 行った場合, InvalidFontをオペランドとしてRaiseErrorが呼び出されるものとする。 GetSelectedFont and GetRootFont which only access the value will not invoke RaiseError. ]]> CurrentFontの値にアクセスするだけのGetSelectedFont, 及び GetRootFont 演算子は,RaiseErrorを発生させない。 CurrentFont specifies the IndexedFont to be used for all character text imaging operators; see to . Operators specific to the manipulation of CurrentFont are also defined in . ]]> CurrentFontは,すべての文字テキスト作画操作が用いる 指標付きフォントを指定する。 からまでを参照。 CurrentFontを操作するために特に用意された演算子については, で定義する。

    現中間調(CurrentHalftone)

    CurrentHalftone Graphics State Variable has a value of type DictionaryReference. Its initial value is implementation-dependent. ]]> CurrentHalftone作図状態変数は,辞書参照型の値をもつ。 その初期値は,実装依存とする。 CurrentHalftone specifies the parameters (as a halftone Dictionary) to the halftoning function. Operators specific to the manipulation of CurrentHalftone are defined in . ]]> CurrentHalftone作図状態変数は,中間調処理機能に対する パラメタ群を(1個の中間調辞書として)定める。 CurrentHalftoneを操作するために特に用意された演算子については, で定義する。

    現マイタ限界(CurrentMiterLimit)

    CurrentMiterLimit Graphics State Variable has a value of type Number. Its initial value is <10:Number>. ]]> CurrentMiterLimit作図状態変数は,数型の値をもつ。 その初期値は,<10:> とする。 CurrentMiterLimit is used by the StrokePath operator to determine when a bevel join is used instead of a miter join; see . Operators specific to the manipulation of this state variable are also defined in . ]]> CurrentMiterLimitは,マイタ接続の代わりにベベル接続を使うべきか どうか判断するために,StokePath演算子によって用いられる (参照)。 この状態変数を操作するために特に用意された演算子については, で定義する。

    現パス(CurrentPath)

    CurrentPath Graphics State Variable is a Path. Its initial value is the null path. All points in the CurrentPath are points in the Reference Coordinate System (see ). ]]> CurrentPath作図状態変数は,パスを値としてもつ。 その初期値は,空パスとする。 CurrentPath中におけるすべての点は,参照座標系での点とする。 (参照) CurrentPath is used by operators that image Paths, and manipulated by operators that build Paths; see . ]]> CurrentPathは,パスを構築する演算子によって操作され, パスを作画する演算子によって用いられる。参照。

    現位置(CurrentPosition)

    CurrentPosition Graphics State Variable is a point in the Reference Coordinate System (see ). The value of the CurrentPosition Graphics State Variable is undefined if and only if the value of the CurrentPath Graphics State Variable is the null path. Otherwise, the value of the CurrentPosition Graphics State Variable is end point of the CurrentPath. ]]> CurrentPosition作図状態変数の値は,参照座標系における点とする (参照)。 CurrentPath作図状態変数の値が空パスの場合に限り, CurrentPosition作図状態変数の値は,未定義とする。 空パス以外の場合,CurrentPosition作図状態変数の値は, CurrentPathの終点とする。 CurrentPosition specifies the location, in RCS coordinates, where the beginning of a character text glyph sequence will be placed for imaging, or starting point of the next path element in a geometric graphics sequence. Operators specific to the manipulation of this state variable are defined in and . ]]> CurrentPositionは,RCS座標系上において,作画時に文字テキス トのグリフ列の 先頭が置かれる位置又は幾何図形の列で次のパス要素の始点が置かれる位置を 定める。 この状態変数を操作するために特に用意された演算子については, 及びで定義する。

    現オーバプリント(CurrentOverPrint)

    CurrentOverPrint Graphics State Variable has a value of type Boolean. Its initial value is false. ]]> CurrentPrint 作図状態変数は,論理型の値をもつ。 その初期値は,偽とする。 CurrentOverPrint Graphics State Variable is used to control painting when generating color separations, something that some presentation devices are able to do. When painting on one separation, false causes the corresponding areas in the other separations to be erased and true leaves them unchanged; see . This can be used to implement trapping, chokes , spreads and grip. ]]> CurrentOverPrint 作図状態変数は, 色分離を行える提示装置がそれを行う場合に,ペイントを制御するために使われる。 ある一つの分離した色をペイントする際に,この変数の値が偽の場合, 別の分離した色によって対応する領域を消去し,真の場合,そのままで変更なしとする (参照)。 これは、トラップ、チョーク、スプレッド及びグリップを実装するために 用いることができる。

    現線幅調整(CurrentStrokeAdjust)

    CurrentStrokeAdjust Graphics State Variable has a value of type Boolean. Its initial value is implementation-dependent. ]]> CurrentStrokeAdjust作図状態変数は,論理型の値をもつ。 その初期値は,実装依存とする。 StrokePath operator, the scan conversion algorithms may produce lines of non-uniform thickness due to rasterization effects. ]]> StrokePath演算子の実行によってパスにそって線を引くとき,走査変換 アルゴリズムがラスタ化の影響によって太さが均一ではない線を作り出すことがある。 CurrentStrokeAdjust is true, the stroke may be adjusted to produce lines of uniform thickness. ]]> CurrentStrokeAdjustの値が真の場合,線の幅と座標を,均一の太さの線を 作るのに必要なだけ自動的に調整できる。 . ]]> この状態変数を操作するために特に用意された演算子については, で定義する。

    現終端形状(CurrentStrokeEnd)

    CurrentStrokeEnd Graphics State Variable has a value of type Cardinal. Its initial value is <0:Cardinal>. ]]> CurrentStrokeEnd作図状態変数は,非負整数型の値をもつ。 その初期値は,<0:非負整数>とする。 CurrentStrokeEnd specifies the type of end feature applied to path ends imaged by the StrokePath operator. Operators specific to the manipulation of this state variable are defined in . ]]> CurrentStrokeEndは,StrokePath演算子が描画するパス終端に適用される 終端形状を指定する。 この状態変数を操作するために特に用意された演算子については, で定義する。

    現接続形状(CurrentStrokeJoin)

    CurrentStrokeJoin Graphics State Variable has a value of type Cardinal. Its initial value is <0:Cardinal>. ]]> CurrentStrokeJoin作図状態変数は,非負整数型の値をもつ。 その初期値は,<0:非負整数>とする。 CurrentStrokeJoin specifies the type of join between non-tangential path elements imaged by the StrokePath operator. Operators specific to the manipulation of this state variable are defined in . ]]> CurrentStrokeJoinは,StrokePath演算子が描画する 非正接のパス要素間の接続形状を指定する。 この状態変数を操作するために特に用意された演算子については, で定義する。

    現線幅(CurrentStrokeWidth)

    CurrentStrokeWidth Graphics State Variable has a value of type Real. Its initial value is <1.0:Real>. ]]> CurrentStrokeWidth作図状態変数は,実数型の値をもつ。 その初期値は,<1.0:実数>とする。 CurrentStrokeWidth specifies, in UCS units, the width of lines imaged by the StrokePath operator. Operators specific to the manipulation of this state variable are defined in . ]]> CurrentStrokeWidthは,StrokePath演算子が描画する線の幅を, UCS単位を用いて指定する。 この状態変数を操作するために特に用意された演算子については, で定義する。

    現座標変換(CurrentTransformation)

    CurrentTransformation Graphics State Variable has a value of type Transformation. Its initial value is the Transformation which maps the axes of the UCS to the corresponding axes of the page image RCS as described in , and maps 1 unit in the UCS to 1 unit (1 millimeter) in the RCS. ]]> CurrentTransformation作図状態変数は,座標変換型の値をもつ。 その初期値は,で記述されているとおり UCSの各座標軸をページ像のRCSの対応する座標軸に写像し,かつUCSにおける 1単位をRCSにおける1単位(1ミリメータ)に写像する座標変換とする。 CurrentTransformation specifies the mapping to be applied to coordinates in the UCS to transform them into coordinates in the RCS. This mapping is defined in , and used throughout to . Operators specific to the manipulation of CurrentTransformation are defined in . ]]> CurrentTransformationは,UCS上の座標に適用し,それをRCS上の座標に 変換する対応付けを指定する。 この対応付けは,で定義し, からまでを通して使用する。 CurrentTransformationを操作するために特に用意された演算子については, で定義する。

    現下色除去(CurrentUnderColorRemoval)

    CurrentUnderColorRemoval Graphics State Variable has a value of type Procedure. Its initial value is implementation-dependent. ]]> CurrentUnderColorRemoval作図状態変数は,手続き型の値をもつ。 その初期値は,実装依存とする。 CurrentUnderColorRemoval specifies the function for compensating for black generation by adjusting CMY values during a DeviceRGB to DeviceCMYK color conversion. Operators specific to the manipulation of CurrentUnderColorRemoval are defined in . ]]> CurrentUnderColorRemovalは,装置RGB色表現から装置CMYK色表現への色変換を 行う際,黒生成の影響を相殺するためにCMYの値を調整する機能を指定する。 CurrentUnderColorRemovalを操作するために特に用意された演算子については, で定義する。

    装置記述辞書(DeviceDescription)

    DeviceDescription State Variable has a value of type DictionaryReference. The contents of this ReadOnly Dictionary include at least the key/value pairs described in the following subclauses. The initial values of these mandatory key/value pairs, as well as the keys and values of any additional key/value pairs, are implementation-dependent. ]]> DeviceDescription状態変数は,辞書参照型の値をもつ。 この読み込み専用辞書は,少なくとも次の続く副節で述べるキーと値との対をその内容として含む。 これら必す(須)のキーと値との対の初期値は,付加的なキーと値との対にお けるキー及び値と同様に、実装依存とする。 DeviceDescription make available to document content certain aspects of the current state of the presentation device. The current value of the DeviceDescription DictionaryReference is obtained via execution of the GetDeviceDescription operator described in . DeviceDescriptionの内容は, ]]> 提示装置の現在の状態に関する幾つかの決まった情報を, 文書内容から利用可能にする。 装置記述辞書の辞書参照の現在の値は, で記述するGetDeviceDescription 演算子の実行によって獲得できる。

    プロセス色クラス

    ProcessColorClass key has a value of type Name. This Name value specifies the colorant model used for rendering process colors in the device. Each ProcessColorClass determines the names of the colorants that are used as keys in a type 5 Halftone Dictionary (see ). ]]> ProcessColorClassキーは,名前型の値をもつ。 この名前の値が,プロセス色を可視化するために装置で用いられる色材モデルを 規定する。 各ProcessColorClassは,型5のハーフトーン辞書内のキーとして使われる 色材の名前を決定する(参照)。 ProcessColorClass are as shown in . ]]> これらは,型5のハーフトーン辞書中の要素であるハーフトーン辞書の選択, 及びセパレーション作成の制御のために用いられるプロセス色材名となる。 ProcessColorClassとして有効な値をに 示す。 値名 プロセス色クラス DeviceGray 単一のプロセス色材"黒"をもつ提示装置 DeviceKX 二つのプロセス色材"黒"及び"無指定時"をもつ提示装置 DeviceRGB 三つのプロセス色材"赤","緑"及び"青"をもつ提示装置 DeviceRGBK 四つのプロセス色材"赤","緑","青"及び"黒"をもつ提示装置 DeviceCMY 三つのプロセス色材"シアン","マゼンタ"及び"黄"をもつ提示装置 DeviceCMYK 四つのプロセス色材"シアン","マゼンタ","黄"及び"黒"をもつ提示装置

    現解像度

    現解像度は,1画素あたりのUCS単位で記述される。 UCSは,RCS及び媒体のX及びY軸に対して回転している場合もある。 装置によっては、媒体のX方向とY方向とで解像度が異なるため, 現解像度は,RCSで定義された二つの解像度ベクタをUCSに変換した値に よって表現される。 ここでの"ベクタ"は,数学上の用語として用いられており, この規格でベクタ型と定義したものを参照するものではない。 X及びYの二つの解像度ベクタは,それぞれRCSのX及びY軸に,平行な向きに置かれる。 DeviceDescription Dictionary, the key CurrentResolution is bound to a reference to a Vector of four Numbers. ]]> X軸方向及びY軸方向の解像度ベクタの大きさは,RCSの X及びY方向で装置の1画素あたりのRCS単位の数とする。 装置記述辞書内のCurrentResolutionキーは,四つの数値からなる ベクタへの参照と結び付いている。 最初の二つの要素は,UCSでのX軸解像度ベクタのX及びY座標 最後の二つの要素は,Y軸解像度ベクタのX及びY座標とする。 CurrentResolution is cXrX, the value of the second Number of CurrentResolution is cXrY, and the value of the third Number of CurrentResolution is cYrX, then a unit step along the X axis of UCS moves 1/cXrX pels in the X direction of RCS and 1/cYrX pels in the Y direction of RCS. Moving (cXrX,cXrY) units in UCS moves one pel in the direction of the X axis in RCS. This information allows a generator of SPDL to position image elements an integral number of device pels apart so they will render consistently with one another. ]]> CurrentResolutionの1番目の数値がcXrXCurrentResolutionの2番目の数値がcXrY,及び CurrentResolutionの3番目の数値がcYrXの場合, UCSのX軸にそった1単位のステップ分の移動は, RCSのX軸にそって1/cXrX画素分及びRCSのY軸にそって1/cYrX画素分 の移動となる。 UCSにおける(cXrX,cXrY)単位分の移動は,RCSにおけるX軸 方向への1画素分の移動となる。 この情報によってSPDLのgeneratorは,複数のイメージ要素を,装置の画素を 単位として整数倍離れた場所に,置くことができることになる。これによって, それらの要素を相互に矛盾なく可視化できることになる。

    現媒体寸法

    CurrentMediumSizeX and CurrentMediumSizeY keys each have a value of type Number, and make available to document content the actual size in millimeters of the medium, along the x- and y-axes of the RCS. ]]> CurrentMediumSizeX及びCurrentMediumSizeYの二つのキーは, 数型の値をもち,RCSのx軸とy軸とにそったミリメートル単位での媒体の実寸法を, 文書内容中から利用可能にする。

    現描画可能領域

    CurrentImageMinX, CurrentImageMaxX, CurrentImageMinY, and CurrentImageMaxY each have a value of type VectorReference which corresponds to a corner point of the maximum rectangular region of the page image on which imaging is possible. Each Vector has two elements of type Number which are the X and Y coordinates, in UCS, of the corresponding corner point of the imageable region, in RCS. ]]> CurrentImageMinX,CurrentImageMaxX,CurrentImageMinY 及びCurrentImageMaxYの四つのキーは,それぞれ, ページ像を作画できる最大のく(矩)形範囲の四つの角に対応する ベクタ参照型の値をもつ。 各ベクタは,数型の二つの値をもち,それぞれは,UCS上のX及びY座標で, それらは,ページ像を作画できる最大範囲を,RCS上のx座標及びy座標で 表した座標に対応する。

    x-image-shift, y-image-shift and plex, may affect the coordinates of the imageable region. ]]> 描画可能領域の境界は, 概して提示装置及びページ像を可視化する媒体の特性を考慮して SPDLの実装によって決定される。 描画可能領域の座標は,その媒体に対するページ像の位置に依存する場合もある。 特に,x-image-shifty-image-shift及びplexのような 提示パラメタは,描画可能領域の境界の座標に影響を与えることができる。