As for the rotation of the picture, there are generally 3 solutions: (1) filter (2) CSS3 (3) canvas. The next step is explained.For the convenience of understanding, we mainly explain in 90 degrees, taking into account other angles.1. Filter (ie exclusive)1.1 Rotate FilterThe syntax is as follows:Filter:progid:DXImageTransform.Microsoft.BasicImage (rotation=i);Rotation values 0 (0 or 360 degrees), 1 (90 degrees), 2 (180 degrees), 3 (270 degrees). The other number is invalid.Example of rotation 9
The transpose () used in the text represents the matrix transpose function, and Mul () represents the matrix multiplication.This paper attempts to explain some fuzzy concepts about matrix operation and storage in DX,HLSL,CG,OPENGGL,GLSL.0, first figure out, the matrix to transform the row/column vector, how the matrix is expected.Suppose there is a row vector p, a column vector q, a given "asymmetric matrix" A can be used to transform P can be expressed as Mul (P,a) (this is called post-multiply
A matrix rotation angle is associated with four data types: M11, M12, m21, and m22. The calculation formula is as follows:
┏ ┓ ┃ Cos (r) sin (r) 0 ┃-sin (r) Cos (r) 0 ┃ DX dy 1 ┃ ┗ ┛ // The r here is not the angle of the radian; The radian calculation method is: r = angle * PI/180.
The following two paragraphsProgramThe above formula is compared and tested:
// Var M: igpmatrix; begin M: = tgpmatrix. create; M. rotate (90); showmes
Rotating an element is a more common need, in support CSS3 browser can be used transform easily implemented, here is the introduction: http://www.css88.com/archives/2168, here is the demo/http Www.css88.com/tool/css3Preview/Transform.html, it is no longer introduced.If you rotate an element under IE, you can only rely on the filter.If you are only rotating in 90-degree units, simply use this filter:filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=i)Where I take 0,1,2,3, respectively,
BackgroundToday, an outgoing mail server encountered a failure, resulting in all outgoing mail can not be sent, and then thought to use the intranet mail server directly out, but one of the servers can not ping out of the network, such as: Ping smpt.163.com different.After troubleshooting, the gateway is not configuredBy command: Route add default gateway xx.xx.xx.xx, after adding the gateway, ping smpt.163.com again:Bytes from m12-12.163.com (220.181
In modern browsers using CSS3 transform style can be easily done, but for domestic IE browser (especially 7,8) also occupies a large share of the case, compatibility still must be considered, so also deliberately recorded under the use of IE rotation filter.There are two types of rotary filters under IE:The first type:CSS StylesFilter:progid:DXImageTransform.Microsoft.BasicImage (Rotation:1)Where the rotation attribute has only four values: 0,1,2,3, respectively, are: 0 degrees, 90 degrees, 180
find that the X component that affects v is the X-component and the X-components of the rotation of the z-axis, and for the Y of V the same is true for the z component. 2 row main sequence, column main sequence OpenGL It is recommended to use a one-dimensional array to represent this transformation matrix: typedef glfloat MATRIX16[16]; In order to quickly access the x-axis, y-axis, and z-axis, the array is represented by the column main sequence: [M0, M4, M8,
Java Reflection mechanism Public classtesthibernate {@Test Public voidTESTHB () {Try{Class cs= Class.forName ("Testhibernate.test1");//Classload classObject OJ = Cs.newinstance ();//through class new an objectmethod[] Mt = Cs.getmethods ();//Get all methods for(Method method:mt) {//Polling out all function methods if(Method.getname () = = "M13") {//judging functions by function nameMethod.invoke (oj,1,2); for(Class parameter:method.getParameterTypes ()) {//to poll the
Zoom in the current code only the 2D, think about it yourself (╯▽╰) Projection matrix formula: 3D usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespaceconsoleapplication6{ classmatrix3x3 { Public DoubleM11, M12, M13; Public DoubleM21, M22, M23; Public DoubleM31, M32, M33; #regionScaling Public Staticmatrix3x3 Setupscale (floatKx,floatKy,floatKz) {matrix3x3 m=Newmatrix3x3 (); M.
UWP development-two-dimensional transformation and three-dimensional transformation, uwp two-dimensional transformation 3D
In development, due to some requirements, we may need to perform some translation, scaling, rotation, or even 3D transformations. So let's talk about how to implement these transformations in UWP.
I,
Two-dimensional transformation:
UIElement. RenderTransform
A. TranslateTransform, translation:
Attribute: X, Y. I believe everyone knows how to use it. I will not talk nonsense
The improved version optimizes this problem by using simple Javascript
Code You can add a menu. At the same time, the HTML page is very concise. You only need to write two lines of code! O (partition _ partition) O
1. Prerequisite: Introduce a CSS file and a Javascript file to the HTML page. As follows:
Copy code The Code is as follows: Introduce the CSS file: Introduce JavaScript files: 2. The menu definition code is as follows:Copy codeThe Code is as follows: if (document. getelementbyid ){
Connect to ORacleError:ORA-09817: Write to audit file failed.
[Oracle @ qs-dmm-rh1 dave] $ sqlplus sys/oracle as sysdba;
SQL * Plus: Release 10.2.0.4.0-Production on Thu Mar 17 16:35:02 2011
Copyright (c) 1982,200 7, Oracle.All Rights Reserved.
ERROR:
ORA-09817: Write to audit file failed.
--This error is basically because the disk space is full.
Enter user-name:
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name:
ERROR:
ORA-01017: invalid username/password; logon denie
A hungry man mode is also known as the immediate loading mode, including the above is very urgentThat is, the object was created when the class was Used.PackageLock; public classEhansingleton {/*a hungry man load mode/immediate load mode*/ //Initializing Constructors PrivateEhansingleton () {}Private StaticEhansingleton Ehan =NewEhansingleton (); public StaticEhansingleton getinstance () {Try{thread.sleep ( the);//Convenient multi-threading testing}Catch(interruptedexception E) {
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.