MatrixTransform3D.Matrix 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 , Matrix3D 指定 3D 轉換。
public:
property System::Windows::Media::Media3D::Matrix3D Matrix { System::Windows::Media::Media3D::Matrix3D get(); void set(System::Windows::Media::Media3D::Matrix3D value); };
public System.Windows.Media.Media3D.Matrix3D Matrix { get; set; }
member this.Matrix : System.Windows.Media.Media3D.Matrix3D with get, set
Public Property Matrix As Matrix3D
屬性值
指定 3D 轉換的 Matrix3D。
範例
try
{
Double setM11 = System.Convert.ToDouble(M11Text.Text);
Double setM21 = System.Convert.ToDouble(M21Text.Text);
Double setM31 = System.Convert.ToDouble(M31Text.Text);
Double setOffsetX = System.Convert.ToDouble(OffsetXText.Text);
Double setM12 = System.Convert.ToDouble(M12Text.Text);
Double setM22 = System.Convert.ToDouble(M22Text.Text);
Double setM32 = System.Convert.ToDouble(M32Text.Text);
Double setOffsetY = System.Convert.ToDouble(OffsetYText.Text);
Double setM13 = System.Convert.ToDouble(M13Text.Text);
Double setM23 = System.Convert.ToDouble(M23Text.Text);
Double setM33 = System.Convert.ToDouble(M33Text.Text);
Double setOffsetZ = System.Convert.ToDouble(OffsetZText.Text);
Double setM14 = System.Convert.ToDouble(M14Text.Text);
Double setM24 = System.Convert.ToDouble(M24Text.Text);
Double setM34 = System.Convert.ToDouble(M34Text.Text);
Double setM44 = System.Convert.ToDouble(M44Text.Text);
endMatrix3D = new Matrix3D(setM11, setM12, setM13, setM14, setM21, setM22, setM23, setM24, setM31, setM32, setM33, setM34, setOffsetX, setOffsetY, setOffsetZ, setM44);
myMatrixTransform3D.Matrix = endMatrix3D;
}
catch
{
MessageBox.Show("Set Matrix3D values or rotation values before transforming");
}
Try
Dim setM11 As Double = Convert.ToDouble(M11Text.Text)
Dim setM21 As Double = Convert.ToDouble(M21Text.Text)
Dim setM31 As Double = Convert.ToDouble(M31Text.Text)
Dim setOffsetX As Double = Convert.ToDouble(OffsetXText.Text)
Dim setM12 As Double = Convert.ToDouble(M12Text.Text)
Dim setM22 As Double = Convert.ToDouble(M22Text.Text)
Dim setM32 As Double = Convert.ToDouble(M32Text.Text)
Dim setOffsetY As Double = Convert.ToDouble(OffsetYText.Text)
Dim setM13 As Double = Convert.ToDouble(M13Text.Text)
Dim setM23 As Double = Convert.ToDouble(M23Text.Text)
Dim setM33 As Double = Convert.ToDouble(M33Text.Text)
Dim setOffsetZ As Double = Convert.ToDouble(OffsetZText.Text)
Dim setM14 As Double = Convert.ToDouble(M14Text.Text)
Dim setM24 As Double = Convert.ToDouble(M24Text.Text)
Dim setM34 As Double = Convert.ToDouble(M34Text.Text)
Dim setM44 As Double = Convert.ToDouble(M44Text.Text)
end_Matrix3D = New Matrix3D(setM11, setM12, setM13, setM14, setM21, setM22, setM23, setM24, setM31, setM32, setM33, setM34, setOffsetX, setOffsetY, setOffsetZ, setM44)
myMatrixTransform3D.Matrix = end_Matrix3D
Catch
MessageBox.Show("Set Matrix3D values or rotation values before transforming")
End Try
備註
相依性屬性資訊
識別碼欄位 | MatrixProperty |
設定為 的中繼資料屬性 true |
無 |