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

正文內(nèi)容

cnet程式設(shè)計(jì)-資料下載頁(yè)

2024-09-30 09:03本頁(yè)面

【導(dǎo)讀】“WindowsForms”是全新的視窗應(yīng)用程式介面。“WebForms”與“WebServices”組成了全新的網(wǎng)際。查看命名空間提供的成員。案的名稱(chēng),然後按[確定]。格線(xiàn)可以幫助我們對(duì)齊控制項(xiàng),如果要設(shè)定格線(xiàn)的大小或。在方案總管內(nèi)的專(zhuān)案名稱(chēng)按一下滑鼠右鍵,然後從快顯功。只要選取表單,屬性視窗就會(huì)列出被選取之表單的常用屬。表單的配置方式:「單一文件介面」、「多重文件介面」。執(zhí)行階段的表單就像所有物件,會(huì)有建立與終止的時(shí)候。Load、HandleCreated、VisibleChanged等事件,其中HandleCreated. 是在表單第一次顯示時(shí)才會(huì)觸發(fā)。Form1.Activate();呼叫Form類(lèi)別的Activate()方法使表單取得焦點(diǎn),此時(shí)會(huì)觸發(fā)。系統(tǒng)資源,這個(gè)動(dòng)作並不會(huì)觸發(fā)任何事件。Closed、Deactivate、Disposed、HandleDestroyed、VisibleChanged. 文字方塊的外觀屬性

  

【正文】 t(object sender, e) { Graphics MyGraphics = ()。 //接下來(lái)可以撰寫(xiě)進(jìn)行繪圖的程式碼 } 1111 Windows Forms 的 GDI+ 繪圖 69 11112 建立色彩、畫(huà)筆與筆刷 ? 建立色彩 Dim MyColor as Color : MyColor = (0, 255, 0) ? 建立筆刷,類(lèi)型如下: ? SolidBrush ? HatchBrush ? TextureBrush ? LinearGradientBrush ? PathGradientBrush 70 11113 繪製線(xiàn)條與形狀 ? Point 結(jié)構(gòu)和 Rectangle 結(jié)構(gòu) Point[] MyPoint = {new Point(x1, y1), new Point(x2, y2), new Point(x3, y3)...}。 Rectangle MyRec = new Rectangle(x1, y1, x2, y2)。 ? 方法 ? DrawBezier(pen, point1, point2, point3, point4) ? DrawCurve(pen, point()) ? DrawClosedCurve(pen, point()) ? DrawEllipse(pen, x, y, width, height) ? DrawLine(pen, x1, y1, x2, y2) ? DrawPolygon(pen, point()) ? DrawRectangle(pen, x1, y1, x2, y2) ? DrawArc(pen, x, y, width, height, startAngle, sweepAngle) 71 ? DrawPie(pen, x, y, width, height, startAngle, sweepAngle) ? FillClosedCurve(brush, point()) ? FillEllipse(brush, x, y, width, height) ? FillPie(brush, x, y, width, height, startAngle, sweepAngle) ? FillPolygon(brush, point()) ? FillRectangle(brush, x1, y1, x2, y2) ? ResetTransform() ? RotateTransform(angle) ? ScaleTransform(sw, sh) ? TranslateTransform (dx, dy) ? Clear(color) ? Dispose() ? Save() 72 請(qǐng)依照指示在表單上繪製如下的線(xiàn)條或形狀,裡面定義了三種畫(huà)筆,色彩分別為 Red、 Blue、 Green,寬度分別為 5 個(gè)像素點(diǎn): 73 請(qǐng)依照指示將前一個(gè)隨堂練習(xí)的封閉圖形填滿(mǎn)色彩: 74 請(qǐng)依照指示在表單上繪製如下圖形,前者是繪製 10 個(gè)圓形,每個(gè)圓形之間位移 10 像素點(diǎn),後者是繪製 36 個(gè)矩形,每個(gè)矩形之間旋轉(zhuǎn) 10 度: 75 11114 繪製文字 1. 首先,建立 Graphices 物件。 2. 接著,建立用來(lái)繪製文字的筆刷。 3. 繼續(xù),建立用來(lái)繪製文字的字型,例如: Font MyFont = new Font(“標(biāo)楷體” , 24, )。 4. 呼叫 Graphics 物件提供的 DrawString() 方法 繪製文字,例如 : (VC.NET程式設(shè)計(jì) , MyFont, MyBrush, 10, 10)。 76 將前面的四個(gè)步驟整合在一起,可以得到如下結(jié)果: private void Form1_Paint (object sender, e) { Graphics MyGraphics = 。 LinearGradientBrush MyBrush = new LinearGradientBrush(ClientRectangle, , , )。 Font MyFont = new Font(標(biāo)楷體 , 20, )。 (VC.NET程式設(shè)計(jì) , MyFont, MyBrush, 10, 10)。 } 77 11115 顯示圖形影像 1. 首先,建立 Graphices 物件。 2. 接著,建立用來(lái)表示所要顯示之圖形影像的物件,如: Bitmap MyBitmap = new Bitmap(@..\..\)。 3. 呼叫 Graphics物件提供的 DrawImage() 方法繪製文字,例如 : (MyBitmap, 10, 10)。 78 將前面的三個(gè)步驟整合在一起,可以得到如下結(jié)果: private void Form1_Paint(object sender, e) { Graphics MyGraphics = 。 Bitmap MyBitmap = new Bitmap(@..\..\)。 (MyBitmap, 10, 10)。 } 79 1112 Windows Forms的列印支援 80 1. 2. 3. 將 PrintPreviewDialog PrintDialog1 的 Document 屬性設(shè)定為 PrintDocument1 ,表示要進(jìn)行預(yù)覽及列印的文件為 PrintDocument1。 81 4. 撰寫(xiě) PrintDocument1 的 PrintPage 事件處理程序 private void printDocument1_PrintPage(object sender, e) { Graphics MyGraphics = 。 SolidBrush MyBrush = new SolidBrush()。 Font MyFont = new Font(新細(xì)明體 , 12)。 (, MyFont, MyBrush, 10, 10)。 } 5. 撰寫(xiě) [預(yù)覽列印 ] 按鈕的 Click 事件處理程序 private void button1_Click(object sender, e) { ()。 } 82 6. 在程式碼視窗中撰寫(xiě) [列印 ] 按鈕 (Button2) 的 Click 事件處理程序 private void button2_Click(object sender, e) { DialogResult Result = ()。 if (Result == ) ()。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1