Freigeben über


Region.Translate Method

Definition

Overloads

Translate(Int32, Int32)

Translate the region by [dx, dy].

Translate(Int32, Int32, Region)

Set the dst region to the result of translating this region by [dx, dy].

Translate(Int32, Int32)

Translate the region by [dx, dy].

[Android.Runtime.Register("translate", "(II)V", "GetTranslate_IIHandler")]
public virtual void Translate (int dx, int dy);
[<Android.Runtime.Register("translate", "(II)V", "GetTranslate_IIHandler")>]
abstract member Translate : int * int -> unit
override this.Translate : int * int -> unit

Parameters

dx
Int32
dy
Int32
Attributes

Remarks

Translate the region by [dx, dy]. If the region is empty, do nothing.

Java documentation for android.graphics.Region.translate(int, int).

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

Translate(Int32, Int32, Region)

Set the dst region to the result of translating this region by [dx, dy].

[Android.Runtime.Register("translate", "(IILandroid/graphics/Region;)V", "GetTranslate_IILandroid_graphics_Region_Handler")]
public virtual void Translate (int dx, int dy, Android.Graphics.Region? dst);
[<Android.Runtime.Register("translate", "(IILandroid/graphics/Region;)V", "GetTranslate_IILandroid_graphics_Region_Handler")>]
abstract member Translate : int * int * Android.Graphics.Region -> unit
override this.Translate : int * int * Android.Graphics.Region -> unit

Parameters

dx
Int32
dy
Int32
dst
Region
Attributes

Remarks

Set the dst region to the result of translating this region by [dx, dy]. If this region is empty, then dst will be set to empty.

Java documentation for android.graphics.Region.translate(int, int, android.graphics.Region).

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