Get elements of a matrix
-
Hello,
I have got a matrix and I want to get his elements so I can work with them in an unsigned int[][] or in a similar way.
I have proved to get them with the method Element but it returns an array and I think it don't do what I want, something like this L[i][j];
Another thing that I have thought is to change this matrix into a String like this, but then I found the same problem. I don't know how to get this elements!
System::Drawing::Drawing2D::Matrix^ L; System::String^ labelString=L->ToString();
Could anyone of you help me?
Thank you in advanced!
-
now I know that Elements will save all the elements as an array so I could access the different elements but now I don't know how works this property.
I have written that
L->Elements(cli::array<int>(1)^get());
and I get these errors:
error C2143: syntax error : missing ',' before ')' error C2059: syntax error : ')' error C2143: syntax error : missing ',' before ')' error C2059: syntax error : ')'
Could anyone of you help me?
Vielen Dank im Voraus!
-
cli::array<float> ^matrixValues = L->Elements; float val00 = matrixValues[0]; float val01 = matrixValues[1]; float val02 = matrixValues[2]; float val10 = matrixValues[3]; ...
-
Thank you so much!!!
it works fine!!!
Thank you for your help!!!!