RectF.Inset(Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inset the rectangle by (dx,dy).
[Android.Runtime.Register("inset", "(FF)V", "GetInset_FFHandler")]
public virtual void Inset (float dx, float dy);
[<Android.Runtime.Register("inset", "(FF)V", "GetInset_FFHandler")>]
abstract member Inset : single * single -> unit
override this.Inset : single * single -> unit
Parameters
- dx
- Single
The amount to add(subtract) from the rectangle's left(right)
- dy
- Single
The amount to add(subtract) from the rectangle's top(bottom)
- Attributes
Remarks
Inset the rectangle by (dx,dy). If dx is positive, then the sides are moved inwards, making the rectangle narrower. If dx is negative, then the sides are moved outwards, making the rectangle wider. The same holds true for dy and the top and bottom.
Java documentation for android.graphics.RectF.inset(float, float)
.
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.