![]() Transform2.Translate(cx, cy, MatrixOrder.Append) Transform2.Rotate(-60f, MatrixOrder.Append) Transform1.Translate(cx, cy, MatrixOrder.Append) Transform1.Rotate(60f, MatrixOrder.Append) RectangleF rect = new RectangleF(-rx, -ry, 2 * rx, 2 * ry) private void Form1_Load(object sender, EventArgs e) That code is kind of long so if you’re not interested in seeing how the cursors are created, skip down past the following code. The form’s Load event handler creates the cursors at run time. The program starts by using the following code to define an array of Cursor objects. What this example does do is show how to use a series of cursor images to make an animated cursor at runtime. As far as I know, C# doesn’t support that kind of cursor. ![]() This example doesn’t show how to use an animated cursor file such as an animated gif or png file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |