Edit
gimp-edit-fill
- gimp-edit-fill
- 内部GIMPプロシージャ
- Fill selected area of drawable.
- ドローアブルの選択した領域を塗りつぶします。
- パラメーター
| drawable |
DRAWABLE |
The drawable to fill to |
| fill-type |
INT32 |
The type of fill { FILL-FOREGROUND (0), FILL-BACKGROUND (1), FILL-WHITE (2), FILL-TRANSPARENT (3), FILL-PATTERN (4) } |
- 返り値
- 追加情報
- This procedure fills the specified drawable with the fill mode. If the fill mode is foreground, the current foreground color is used. If the fill mode is background, the current background color is used. Other fill modes should not be used. This procedure only affects regions within a selection if there is a selection active. If you want to fill the whole drawable, regardless of the selection, use 'gimp-drawable-fill'.
Deprecated: Use 'gimp-drawable-edit-fill' instead.
このプロシージャは、指定されたドローアブルを塗りつぶしモードで塗りつぶします。 塗りつぶしモードが前景色の場合、現在の前景色が使用されます。 塗りつぶしモードが背景の場合、現在の背景色が使用されます。 他の充填モードは使用しないでください。 この手順は、選択がアクティブな場合にのみ、選択内の領域に影響します。 選択に関係なく、ドローアブル全体を塗りつぶしたい場合は、「gimp-drawable-fill」を使用します。
非推奨:代わりに「gimp-drawable-edit-fill」を使用してください。
gimp-drawable-fill
- gimp-drawable-fill
- 内部GIMPプロシージャ
- Fill the drawable with the specified fill mode.
- ドローアブルを指定された塗りつぶしモードで塗りつぶします。
- パラメーター
| drawable |
DRAWABLE |
The drawable to fill to |
| fill-type |
INT32 |
The type of fill { FILL-FOREGROUND (0), FILL-BACKGROUND (1), FILL-WHITE (2), FILL-TRANSPARENT (3), FILL-PATTERN (4) } |
- 返り値
- This procedure fills the drawable. If the fill mode is foreground the current foreground color is used. If the fill mode is background, the current background color is used. If the fill type is white, then white is used. Transparent fill only affects layers with an alpha channel, in which case the alpha channel is set to transparent. If the drawable has no alpha channel, it is filled to white. No fill leaves the drawable's contents undefined.
- This procedure is unlike 'gimp-edit-fill' or the bucket fill tool because it fills regardless of a selection. Its main purpose is to fill a newly created drawable before adding it to the image. This operation cannot be undone.
- この手順により、ドローアブルが埋められます。 塗りつぶしモードが前景色の場合、現在の前景色が使用されます。 塗りつぶしモードが背景の場合、現在の背景色が使用されます。 塗りつぶしの種類が白の場合、白が使用されます。 透明塗りつぶしは、アルファチャネルのあるレイヤーにのみ影響します。この場合、アルファチャネルは透明に設定されます。 ドローアブルにアルファチャネルがない場合は、白で塗りつぶされます。 塗りつぶしがない場合、ドローアブルの内容は未定義のままになります。
- この手順は、選択に関係なく塗りつぶすため、「gimp-edit-fill」やバケット塗りつぶしツールとは異なります。 その主な目的は、新しく作成されたドローアブルを画像に追加する前に塗りつぶすことです。 この操作は元に戻せません。
Image-Get
gimp-image-get-item-position
- gimp-image-get-item-position
- 内部GIMPプロシージャ
- Returns the position of the item in its level of its item tree
- アイテムツリーのレベルでのアイテムの位置を返します
- パラメーター
| image |
IMAGE |
The image |
| item |
ITEM |
The item |
- 返り値
| position |
INT32 |
The position of the item in its level in the item tree |
- アイテムツリーのレベルでのアイテムの位置
- 追加情報
- This procedure determines the position of the specified item in its level in its item tree in the image. If the item doesn't exist in the image, or the item is not part of an item tree, an error is returned.
- このプロシージャは、画像内のアイテムツリーのレベルで指定されたアイテムの位置を決定します。アイテムが画像に存在しない場合、またはアイテムがアイテムツリーの一部でない場合、エラーが返されます。
Item-Transform
gimp-item-transform-flip-simple
- gimp-item-transform-flip-simple
- 内部GIMPプロシージャ
- Flip the specified item either vertically or horizontally.
- 指定したアイテムを垂直または水平に反転します。
- パラメーター
| item |
ITEM |
The affected item |
| flip-type |
INT32 |
Type of flip { ORIENTATION-HORIZONTAL (0), ORIENTATION-VERTICAL (1) } |
| auto-center |
INT32 |
Whether to automatically position the axis in the selection center (TRUE or FALSE) |
| axis |
FLOAT |
coord. of flip axis |
- 返り値
| item |
ITEM |
The flipped item |
- 裏返したアイテム
- 追加情報
- This procedure flips the specified item.
If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipped. If auto_center is set to TRUE, the flip is around the selection's center. Otherwise, the coordinate of the axis needs to be specified. The return value is the ID of the flipped floating selection.
If there is no selection or the item is not a drawable, the entire item will be flipped around its center if auto_center is set to TRUE, otherwise the coordinate of the axis needs to be specified. Additionally, if the item has its linked flag set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be flipped around the same axis. The return value will be equal to the item ID supplied as input.
This procedure is affected by the following context setters: 'gimp-context-set-transform-resize'.
このプロシージャは、指定されたアイテムを反転します。
セレクションが存在し、アイテムがドローアブルである場合、セレクションの下にあるドローアブルの部分がドローアブルから切り取られ、フローティングセレクションになり、それが反転されます。 auto_centerがTRUEに設定されている場合、フリップは選択範囲の中心の周りにあります。それ以外の場合は、軸の座標を指定する必要があります。戻り値は、反転されたフローティング選択のIDです。
選択がないか、アイテムが描画可能でない場合、auto_centerがTRUEに設定されていると、アイテム全体がその中心を中心に反転します。それ以外の場合は、軸の座標を指定する必要があります。さらに、アイテムのリンクフラグがTRUEに設定されている場合、リンクフラグがTRUEに設定されている、画像に含まれるすべての追加アイテムも同じ軸を中心に反転します。戻り値は、入力として指定されたアイテムIDと同じになります。
この手順は、次のコンテキストセッターの影響を受けます: 'gimp-context-set-transform-resize'。
gimp-item-transform-rotate
- gimp-item-transform-rotate
- 内部GIMPプロシージャ
- Rotate the specified item about given coordinates through the specified angle.
- 指定されたアイテムを、指定された角度で指定された座標を中心に回転させます。
- パラメーター
| item |
ITEM |
The affected item |
| angle |
FLOAT |
The angle of rotation (radians) |
| auto-center |
INT32 |
Whether to automatically rotate around the selection center (TRUE or FALSE) |
| center-x |
FLOAT |
The hor. coordinate of the center of rotation |
| center-y |
FLOAT |
The vert. coordinate of the center of rotation |
- 返り値
| item |
ITEM |
The rotated item |
- 回転したアイテム
- 追加情報
- This function rotates the specified item.
If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. If auto_center is set to TRUE, the rotation is around the selection's center. Otherwise, the coordinate of the center point needs to be specified. The return value is the ID of the rotated floating selection.
If there is no selection or the item is not a drawable, the entire item will be rotated around its center if auto_center is set to TRUE, otherwise the coordinate of the center point needs to be specified. Additionally, if the item has its linked flag set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be rotated around the same center point. The return value will be equal to the item ID supplied as input.
This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.
この関数は、指定されたアイテムを回転させます。
選択範囲が存在し、アイテムがドローアブルである場合、選択範囲の下にあるドローアブルの部分がドローアブルから切り取られてフローティング選択範囲になり、指定された量だけ回転されます。 auto_centerがTRUEに設定されている場合、回転は選択範囲の中心を中心に行われます。それ以外の場合は、中心点の座標を指定する必要があります。戻り値は、ローテーションされたフローティング選択のIDです。
選択がない場合、またはアイテムが描画可能でない場合、auto_centerがTRUEに設定されていると、アイテム全体がその中心を中心に回転します。それ以外の場合は、中心点の座標を指定する必要があります。さらに、アイテムのリンクフラグがTRUEに設定されている場合、リンクフラグがTRUEに設定されている画像に含まれるすべての追加アイテムも、同じ中心点を中心に回転します。戻り値は、入力として指定されたアイテムIDと同じになります。
この手順は、次のコンテキストセッターの影響を受けます: 'gimp-context-set-interpolation'、 'gimp-context-set-transform-direction'、 'gimp-context-set-transform-resize'。
gimp-item-transform-rotate-simple
- gimp-item-transform-rotate-simple
- 内部GIMPプロシージャ
- Rotate the specified item about given coordinates through the specified angle.
- 指定されたアイテムを、指定された角度で指定された座標を中心に回転させます。
- パラメーター
| item |
ITEM |
The affected item |
| rotate-type |
INT32 |
Type of rotation { ROTATE-90 (0), ROTATE-180 (1), ROTATE-270 (2) } |
| auto-center |
INT32 |
Whether to automatically rotate around the selection center (TRUE or FALSE) |
| center-x |
FLOAT |
The hor. coordinate of the center of rotation |
| center-y |
FLOAT |
The vert. coordinate of the center of rotation |
- 返り値
| item |
ITEM |
The rotated item |
- 回転したアイテム
- 追加情報
- This function rotates the specified item.
If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. If auto_center is set to TRUE, the rotation is around the selection's center. Otherwise, the coordinate of the center point needs to be specified. The return value is the ID of the rotated floating selection.
If there is no selection or the item is not a drawable, the entire item will be rotated around its center if auto_center is set to TRUE, otherwise the coordinate of the center point needs to be specified. Additionally, if the item has its linked flag set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be rotated around the same center point. The return value will be equal to the item ID supplied as input.
This procedure is affected by the following context setters: 'gimp-context-set-transform-resize'.
この関数は、指定されたアイテムを回転させます。
選択範囲が存在し、アイテムがドローアブルである場合、選択範囲の下にあるドローアブルの部分がドローアブルから切り取られてフローティング選択範囲になり、指定された量だけ回転されます。 auto_centerがTRUEに設定されている場合、回転は選択範囲の中心を中心に行われます。それ以外の場合は、中心点の座標を指定する必要があります。戻り値は、ローテーションされたフローティング選択のIDです。
選択がない場合、またはアイテムが描画可能でない場合、auto_centerがTRUEに設定されていると、アイテム全体がその中心を中心に回転します。それ以外の場合は、中心点の座標を指定する必要があります。さらに、アイテムのリンクフラグがTRUEに設定されている場合、リンクフラグがTRUEに設定されている画像に含まれるすべての追加アイテムも、同じ中心点を中心に回転します。戻り値は、入力として指定されたアイテムIDと同じになります。
この手順は、次のコンテキストセッターの影響を受けます: 'gimp-context-set-transform-resize'。
gimp-item-transform-scale
- gimp-item-transform-scale
- 内部GIMPプロシージャ
- Scale the specified item.
- 指定されたアイテムをスケーリングします。
- パラメーター
| item |
ITEM |
The affected item |
| x0 |
FLOAT |
The new x coordinate of the upper-left corner of the scaled region |
| y0 |
FLOAT |
The new y coordinate of the upper-left corner of the scaled region |
| x1 |
FLOAT |
The new x coordinate of the lower-right corner of the scaled region |
| y1 |
FLOAT |
The new y coordinate of the lower-right corner of the scaled region |
- 返り値
| item |
ITEM |
The scaled item |
- スケーリングされたアイテム
- 追加情報
- This procedure scales the specified item.
The 2 coordinates specify the new locations of the top-left and bottom-roght corners of the original bounding box.
If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled as specified. The return value is the ID of the scaled floating selection.
If there is no selection or the item is not a drawable, the entire item will be scaled according to the specified coordinates. Additionally, if the item has its linked flag set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be scaled the same way. The return value will be equal to the item ID supplied as input.
This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.
この手順では、指定されたアイテムをスケーリングします。
2つの座標は、元の境界ボックスの左上隅と下隅の新しい位置を指定します。
セレクションが存在し、アイテムがドローアブルである場合、セレクションの下にあるドローアブルの部分がドローアブルから切り取られ、フローティングセレクションになり、指定されたとおりにスケーリングされます。戻り値は、スケーリングされたフローティング選択のIDです。
選択範囲がない場合、またはアイテムが描画可能でない場合、アイテム全体が指定された座標に従ってスケーリングされます。さらに、アイテムのリンクフラグがTRUEに設定されている場合、リンクフラグがTRUEに設定されている、画像に含まれるすべての追加アイテムも同じ方法で拡大縮小されます。戻り値は、入力として指定されたアイテムIDと同じになります。
この手順は、次のコンテキストセッターの影響を受けます: 'gimp-context-set-interpolation'、 'gimp-context-set-transform-direction'、 'gimp-context-set-transform-resize'。
Alpha-Channel
gimp-drawable-has-alpha
- gimp-drawable-has-alpha
- 内部GIMPプロシージャ
- Returns TRUE if the drawable has an alpha channel.
- ドローアブルにアルファチャネルがある場合はTRUEを返します。
- パラメーター
| drawable |
DRAWABLE |
The drawable |
- ドローアブル
- 返り値
| has-alpha |
INT32 |
Does the drawable have an alpha channel? (TRUE or FALSE) |
- ドローアブルにはアルファチャンネルがありますか? (正しいか間違っているか)
- 追加情報
- This procedure returns whether the specified drawable has an alpha channel. This can only be true for layers, and the associated type will be one of: { RGBA , GRAYA, INDEXEDA }.
- このプロシージャは、指定されたドローアブルにアルファチャネルがあるかどうかを返します。 これはレイヤーにのみ当てはまり、関連するタイプは{RGBA、GRAYA、INDEXEDA}のいずれかになります。
gimp-layer-add-alpha
- gimp-layer-add-alpha
- 内部GIMPプロシージャ
- Add an alpha channel to the layer if it doesn't already have one.
- まだアルファチャンネルがない場合は、レイヤーにアルファチャンネルを追加します。
- パラメーター
- レイヤー
- 返り値
- 追加情報
- This procedure adds an additional component to the specified layer if it does not already possess an alpha channel. An alpha channel makes it possible to clear and erase to transparency, instead of the background color. This transforms layers of type RGB to RGBA, GRAY to GRAYA, and INDEXED to INDEXEDA.
- この手順では、指定したレイヤーにまだアルファチャネルがない場合、追加のコンポーネントを追加します。 アルファチャンネルを使用すると、背景色の代わりに、透明度までクリアおよび消去することができます。 これにより、タイプRGBからRGBA、GRAYからGRAYA、およびINDEXEDからINDEXEDAのレイヤーが変換されます。
gimp-layer-flatten
- gimp-layer-flatten
- 内部GIMPプロシージャ
- Remove the alpha channel from the layer if it has one.
- アルファチャネルがある場合は、レイヤーから削除します。
- パラメーター
- レイヤー
- 返り値
- 追加情報
- This procedure removes the alpha channel from a layer, blending all (partially) transparent pixels in the layer against the background color. This transforms layers of type RGBA to RGB, GRAYA to GRAY, and INDEXEDA to INDEXED.
- この手順では、レイヤーからアルファチャネルを削除し、レイヤー内のすべての(部分的に)透明なピクセルを背景色とブレンドします。 これにより、タイプRGBAからRGB、GRAYAからGRAY、およびINDEXEDAからINDEXEDのレイヤーが変換されます。
最終更新:2021年11月22日 10:46