Condividi tramite


EffectFactory.EffectCrop Field

Definition

Crops an upright rectangular area from the image.

[Android.Runtime.Register("EFFECT_CROP")]
public const string EffectCrop;
[<Android.Runtime.Register("EFFECT_CROP")>]
val mutable EffectCrop : string

Field Value

Attributes

Remarks

Crops an upright rectangular area from the image. If the crop region falls outside of the image bounds, the results are undefined.

Available parameters:

<table> <tr><td>Parameter name</td><td>Meaning</td><td>Valid values</td></tr> <tr><td>xorigin</td> <td>The origin's x-value.</td> <td>Integer, between 0 and width of the image.</td> </tr> <tr><td>yorigin</td> <td>The origin's y-value.</td> <td>Integer, between 0 and height of the image.</td> </tr> <tr><td>width</td> <td>The width of the cropped image.</td> <td>Integer, between 1 and the width of the image minus xorigin.</td> </tr> <tr><td>height</td> <td>The height of the cropped image.</td> <td>Integer, between 1 and the height of the image minus yorigin.</td> </tr> </table>

Java documentation for android.media.effect.EffectFactory.EFFECT_CROP.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to