freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于gdi技術(shù)的船舶電站同步表的設(shè)計與實現(xiàn)論文畢業(yè)-資料下載頁

2025-06-27 17:47本頁面
  

【正文】 2003[16] 嚴(yán)浪濤,[J].計算技術(shù)與自動化, 附錄 源程序附錄I 同步表源程序代碼:using System。using 。using 。using 。using 。using 。using 。namespace SNYCHRONIZER。{ public partial class SNYCHRONIZER : UserControl { public SNYCHRONIZER() { InitializeComponent()。 } private float AngleDegree = 1。 public float Lamp //定義控件的屬性 { get { return AngleDegree。 } set { if ( value 36 amp。amp。 value 36)//旋轉(zhuǎn)范圍的設(shè)定 { AngleDegree = value。 } Invalidate()。 Update()。 } } protected override void OnPaintBackground(PaintEventArgs e){ (e)。 Graphics displayGraphics = 。 const float pai = 。 Image i = new Bitmap(, )。 Graphics g = (i)。 InitializeCoordinates(g)。 (BackColor)。 = 。 Pen p3 = new Pen(, 1)。 = 。//用P3做寬度為1的綠色虛線形式框架 (p3, 82, 82, 0, 168)。 Pen p1 = new Pen(, 2)。 Point[] points = { new Point(80,80),new Point(80,80),new Point(80,80),new Point(80,80) }。//用P1定4個坐標(biāo)點 GraphicsPath path = new GraphicsPath()。 (points)。 PathGradientBrush pBrush = new PathGradientBrush(path)。 = 。 (pBrush, path)。 Pen p2 = new Pen(, 7)。 (p2, 79, 79, 159, 159)。//用P2繪制寬度為7的黑色矩形框 Pen p4 = new Pen(, )。 (p4, 75, 72, 149, 147)。// Pen p5 = new Pen(, 4)。 (p5, 75, 75, 152, 150)。//用P5繪制寬度為4的深灰色矩形框 for (int m = 0。 m = 36。 m = m + 1) { Color color = 。 if (m == 9) { color = 。 } (new SolidBrush(color), 65 * (float)((180 + m * 10) * pai / 180) 5, 65 * (float)((180 + m * 10) * pai / 180) , 7, 7, 0, 360)。 } (new SolidBrush(), 5, 47, 7, 7, 0, 360)。 //設(shè)置37個陰影點和顏色的選定,使其更有立體感 for (int n = 0。 n 36。 n = n + 1) { Color color1 = 。 (new SolidBrush(color1), 65 * (float)((180 + n * 10) * pai / 180) 3, 65 * (float)((180 + n * 10) * pai / 180) 3, 7, 7, 0, 360)。 } //以(0,0)為圓心繪制一個半徑為65的圓形,圓上均勻分布36個點的計算方法 Color newColor = 。 (new SolidBrush(newColor), 65 * (float)((90 + Lamp * 10) * pai / 180) 3, 65 * (float)((90 + Lamp * 10) * pai / 180) 3, 7, 7, 0, 360)。 //指示綠燈的旋轉(zhuǎn)公式 (new SolidBrush(), 3, 49, 7, 7, 0, 360)。 PointF[] pts ={ new PointF(23,40), new PointF(40,28), new PointF(10,45), new PointF(,45)}。 (new Pen(, 2), pts)。//右邊方向指針的畫制和線條的粗細(xì) GraphicsPath path1 = new GraphicsPath()。 (pts)。 PointF[] pts1 ={ new PointF(26,40), new PointF(43,28), new PointF(13,45), new PointF(,45)}。 (new Pen(, 2), pts1)。//左邊方向指針的畫制和線條的粗細(xì) GraphicsPath path2 = new GraphicsPath()。 (pts1)。SolidBrush sb = new SolidBrush()。 Font font = new Font(Times New Roman, 7, )。 Font font1 = new Font(Times New Roman, 15, )。 (SYNC, font, sb, new PointF(13, 40))。//確定SNYC(同步表)括的位置 (SLOW, font, sb, new PointF(55, 20))。//確定SLOW的位置 (FAST, font, sb, new PointF(30, 20))。//確定FAST的位置 (S, font1, sb, new PointF(8, 10))。//確定S的位置 (CQJTU, font, sb, new PointF(41, 63))。//確定CQJTU(重慶交通大學(xué))的位置 (i, ClientRectangle)。 ()。 ()。 ()。 ()。 ()。 ()。 ()。 } void InitializeCoordinates(Graphics grfx) { if (Width == 0 || Height == 0) return。 (Width / 2, Height / 2)。 float fInches = (Width / , Height / )。 (fInches * / 166, fInches * / 166)。 } }} 附錄II 測試代碼:namespace TEST{ partial class Form1 { /// summary /// 必需的設(shè)計器變量 /// /summary private ponents = null。 /// summary /// 清理所有正在使用的資哩源 /// /summary /// param name=disposing如果應(yīng)釋放托管資哩源,為true否則為false/param protected override void Dispose(bool disposing) { if (disposing amp。amp。 (ponents != null)) { ()。 } (disposing)。 } region Windows 窗體設(shè)計生成的代碼 /// summary /// 設(shè)計器支持所需的方法不要 /// 使用代洙碼編括輯器修改此方法的內(nèi)容 /// /summary private void InitializeComponent() { = new ()。 ()。 // snychronizer1 = 9F。 = new (125, 64)。 = snychronizer1。 = new (229, 203)。 = 0。 // Form1 = new (6F, 12F)。 = 。 = new (549, 377)。 ()。 = Form1。 = Form1。 (false)。 } endregion private snychronizer1。 }}31
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1