Matrix.Translate(Double, Double) Metodo

Definizione

Accoda una conversione degli offset specificati a questa Matrix struttura.

public:
 void Translate(double offsetX, double offsetY);
public void Translate(double offsetX, double offsetY);
member this.Translate : double * double -> unit
Public Sub Translate (offsetX As Double, offsetY As Double)

Parametri

offsetX
Double

Quantità di offset Matrix lungo l'asse x.

offsetY
Double

Quantità di offset Matrix lungo l'asse y.

Esempio

Nell'esempio seguente viene illustrato come accodare una traduzione a una Matrix struttura.

private Matrix translateExample()
{
    
    Matrix myMatrix = new Matrix(5, 10, 15, 20, 25, 30);
    
    myMatrix.Translate(5, 10);

    // myMatrix is equal to (5, 10, 15, 20, 30, 40).
    return myMatrix;
}

Si applica a

Vedi anche