4D View v14PV Get picture property |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v14
PV Get picture property
|
PV Get picture property ( area ; picNum ; property ) -> 戻り値 | ||||||||
引数 | 型 | 説明 | ||||||
area | 倍長整数 |
![]() |
4D View エリア | |||||
picNum | 倍長整数 |
![]() |
ピクチャ番号 | |||||
property | 倍長整数 |
![]() |
プロパティ番号 | |||||
戻り値 | 倍長整数 |
![]() |
プロパティの値 | |||||
PV Get picture propertyコマンドは、area内でpicNumで指定されたピクチャに関するプロパティの値を返します。
引数propertiesを定義するには、PV Picture propertiesテーマの定数を使用します:
定数 | 型 | 値 |
pv picture background | 倍長整数 | 8 |
pv picture column | 倍長整数 | 0 |
pv picture data height | 倍長整数 | 5 |
pv picture data width | 倍長整数 | 4 |
pv picture display height | 倍長整数 | 7 |
pv picture display width | 倍長整数 | 6 |
pv picture fixed size | 倍長整数 | 10 |
pv picture hor offset | 倍長整数 | 2 |
pv picture locked | 倍長整数 | 11 |
pv picture mapping mode | 倍長整数 | 9 |
pv picture row | 倍長整数 | 1 |
pv picture vert offset | 倍長整数 | 3 |
また、引数propertiesにpv picture mapping modeの値を渡した場合には、戻り値を比較するためにPV Picture mapping mode テーマ内の定数を使用することができます:
定数 | 型 | 値 |
pv mapping replicated | 倍長整数 | 3 |
pv mapping scaled centered prop | 倍長整数 | 6 |
pv mapping scaled to fit | 倍長整数 | 5 |
pv mapping scaled to fit prop | 倍長整数 | 4 |
pv mapping trunc non-centered | 倍長整数 | 1 |
pv mapping truncated centered | 倍長整数 | 2 |
このメソッドは、ピクチャ番号1 のピクチャに関する情報を表示します。
C_INTEGER($Index) `プロパティ配列のループ指標
C_LONGINT($Value) `オプションに対応する値
ARRAY STRING($PropertiesCodes;12) `プロパティのコード
ARRAY STRING(80;$PropertiesLabels;12) `プロパティのラベル
`プロパティ配列の初期化
$PropertiesCodes{1}:=pv picture column
$PropertiesLabels{1}:="参照列"
$PropertiesCodes{2}:=pv picture row
$PropertiesLabels{2}:="参照行"
$PropertiesCodes{3}:=pv picture horz offset
$PropertiesLabels{3}:="H オフセット"
$PropertiesCodes{4}:=pv picture vert offset
$PropertiesLabels{4}:="V オフセット"
$PropertiesCodes{5}:=pv picture data width
$PropertiesLabels{5}:="実際の幅"
$PropertiesCodes{6}:=pv picture data height
$PropertiesLabels{6}:="実際の高さ"
$PropertiesCodes{7}:=pv picture display width
$PropertiesLabels{7}:="表示幅"
$PropertiesCodes{8}:=pv picture display height
$PropertiesLabels{8}:="表示高さ"
$PropertiesCodes{9}:=pv picture background
$PropertiesLabels{9}:="背景"
$PropertiesCodes{10}:=pv picture mapping mode
$PropertiesLabels{10}:="マッピング"
$PropertiesCodes{11}:=pv picture fixed size
$PropertiesLabels{11}:="固定サイズ"
$PropertiesCodes{12}:=pv picture locked
$PropertiesLabels{12}:="ロック"
$PictureInfo:="ピクチャ番号1の情報:"+Char(Carriage return)
For($Index;1;12) `異なるプロパティを調査
$Value:=PV Get picture property(Area;1;$PropertiesCodes{$Index}) `プロパティの読み込み
$PictureInfo:=$PictureInfo+$PropertiesLabels{$Index}+" : "+String($Value)+". " `情報を更新
End for
ALERT($PictureInfo) `情報を表示
プロダクト: 4D View
テーマ: PVピクチャ
番号:
15863
初出: 4D View 6.8
4D View ( 4D View v11.4)
4D View ( 4D View v12)
4D View ( 4D v13)
4D View ( 4D View v14 R2)
4D View ( 4D View v14)
4D View ( 4D View v14 R3)
4D View ( 4D View v14 R4)