Top > ColorIndexToRGB

ColorIndexToRGB   カテゴリ ユーティリティ(Utility) Edit

Declaration:

 PROCEDURE ColorIndexToRGB ( color :INTEGER;
          VAR red :LONGINT;
          VAR green :LONGINT;
          VAR blue :LONGINT
          ) ;

Description:

 Procedure ColorIndexToRGB converts the Vectorworks palette colors from the colors' palette position index to its red, green, and blue component values. RGB values are in the range of 0~65535.

 A color table listing with associated index values can be found in the Appendix.

説明

 カラーパレットの色番号から各色の成分を取り出します。値の範囲は0から65535までです。

Parameters:

     color Color index. 色番号
     red RGB color component value. 赤の成分
     green RGB color component value. 緑の成分
     blue RGB color component value. 青の成分

変数変数の説明
colorINTEGER色番号
redLONGINT赤の成分
greenLONGINT緑の成分
blueLONGINT青の成分

Example:

     ColorIndexToRGB(45,r,g,b);
     {returns the color value components of the color at position 45}


リロード   新規 下位ページ作成 編集 凍結 差分 添付 コピー 名前変更   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
Last-modified: Tue, 22 Nov 2011 10:47:21 JST (4558d)