OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2010, Google Inc. | 2 * Copyright 2010, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
68 \param blue The blue component. | 68 \param blue The blue component. |
69 \param green The green component. | 69 \param green The green component. |
70 \param alpha The alpha component. | 70 \param alpha The alpha component. |
71 \return The created pattern | 71 \return The created pattern |
72 %] | 72 %] |
73 [static] Pattern? CreateRgbaPattern(Pack pack, | 73 [static] Pattern? CreateRgbaPattern(Pack pack, |
74 double red, | 74 double red, |
75 double green, | 75 double green, |
76 double blue, | 76 double blue, |
77 double alpha); | 77 double alpha); |
78 | |
79 %[ | |
80 Set the affine transformation matrix that maps user space to pattern space. | |
81 The default matrix is the identity matrix, so that no transformation occurs. | |
82 | |
83 \param xx xx component of the affine transformation | |
84 \param yx yx component of the affine transformation | |
85 \param xy xy component of the affine transformation | |
86 \param yy yy component of the affine transformation | |
87 \param x0 X translation component of the affine transformation | |
88 \param y0 Y translation component of the affine transformation | |
89 %] | |
fbarchard
2011/01/19 18:51:20
this is a 2x2 matrix rotation? So you can rotate
Tristan Schmelcher 2
2011/01/20 00:26:16
No, it is an affine transform, i.e. a 3x3 matrix.
| |
90 void SetAffineTransform(double xx, | |
91 double yx, | |
92 double xy, | |
93 double yy, | |
94 double x0, | |
95 double y0); | |
78 }; // Pattern | 96 }; // Pattern |
79 | 97 |
80 } // namespace o2d | 98 } // namespace o2d |
81 | 99 |
82 } // namespace o3d | 100 } // namespace o3d |
OLD | NEW |