getAutoCropRect getautocroprect
画像の背景色または透明度に基づいて切り抜く領域を返します。
構文
認証済みユーザータイプ section-32dfe7bb68764b93ae01e05ff7a7bdd0
IpsAdmin
IpsCompanyAdmin
IpsUser
ImagePortalAdmin
ImagePortalUser
ImagePortalContrib
ImagePortalContribUser
パラメータ section-965d5973b8344d43a74b3e07cf0b7eb3
入力 (getAutoCropRectParam)
NOTE
このメソッドを呼び出す際には、 autoColorCropOptions または autoTransparentCropOptions を指定します。
名前
種類
必須
説明
companyHandle
xsd:string
はい
操作するアセットを持つ会社へのハンドル。
assetHandle
xsd:string
はい
操作するアセットのハンドル。
autoColorCropOptions
types:AutoColorCropOptions
いいえ
色に基づいて切り抜きの長方形を計算します。 詳しくは、 AutoColorCropOptions.
autoTransparentCropOptions
types:AutoTransparentCropOptions
いいえ
透明度に基づいて切り抜きの長方形を計算します。 詳しくは、 AutoTransparentCropOptions.
出力 (getAutoCropRectReturn)
名前
種類
必須
説明
xOffset
xsd:int
はい
計算された切り抜き領域の開始左のピクセル座標。
yOffset
xsd:int
はい
計算された切り抜き領域の最初の上のピクセル座標。
幅
xsd:int
はい
計算された切り抜き領域の幅(ピクセル単位)。
高さ
xsd:int
はい
計算された切り抜き領域の高さ(ピクセル単位)。
例 section-ba65bd66086d491cad1cea535954ee1f
リクエスト
<getAutoCropRectParam xmlns="http://www.scene7.com/IpsApi/xsd/2012-07-31-beta">
<companyHandle>c|3578</companyHandle>
<assetHandle>a|3192146</assetHandle>
<autoColorCropOptions>
<corner>UpperLeft</corner>
<tolerance>0.5</tolerance>
</autoColorCropOptions>
</getAutoCropRectParam>
応答
<getAutoCropRectReturn xmlns="http://www.scene7.com/IpsApi/xsd/2012-07-31-beta">
<xOffset>452</xOffset>
<yOffset>66</yOffset>
<width>1271</width>
<height>1874</height>
</getAutoCropRectReturn>
recommendation-more-help
4e9b9d8c-5839-4215-aa35-01b652869681