创建轨迹梯度,渐变五角星,C#源代码 // Put the points of a polygon in an array. Point[] points = { new Point(75, 0), new Point(100, 50), new Point(150, 50), new Point(112, 75), new Point(150, 150), new Point(75, 100), new Point(0, 150), new Point(37, 75), new Point(
旋转、反射和扭曲图像程序(C#源代码编写)Image image = new Bitmap("..\\..\\test.bmp"); e.Graphics.DrawImage(image, 200, 200, 300, 300); Point[] destinationPoints = { new Point(0, 20), // destination for upper-left point of // original new Point(300, 50), // destination
阴影效果的文字程序(C#源代码编写) Graphics g = e.Graphics; Font myFont; myFont = new Font("SansSerif", 40); SolidBrush textShadowBrush = new SolidBrush(Color.FromArgb(70, Color.Blue)); VisualStudio2008创建
数字时钟,动态显示当前时间,C#源代码public string ProcessTime() { string sTime; // Get the current time int iHour = DateTime.Now.Hour; int iMin = DateTime.Now.Minute; int iSec = DateTime.Now.Second; // Format the current time into a string... sTime = (iHour < 10)