Udostępnij za pośrednictwem


Canvas.Translate(Single, Single) Method

Definition

Preconcat the current matrix with the specified translation

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

Parameters

dx
Single

The distance to translate in X

dy
Single

The distance to translate in Y

Attributes

Remarks

Preconcat the current matrix with the specified translation

Java documentation for android.graphics.Canvas.translate(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.

Applies to