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

正文內(nèi)容

圖形圖像處理基礎(chǔ)-文庫(kù)吧在線文庫(kù)

  

【正文】 ?使用 Graphics對(duì)象的 DrawEllipse方法可使用指定的畫(huà)筆繪制一空心橢圓: DrawEllipse(Pen p, int x, int y, int width, int height)。 LinearGradientBrush b = new LinearGradientBrush( new Point(0,0), new Point(300, 200), , )。 Vertical 垂直線的圖案。 – public HatchBrush(HatchStyle, Color, Color)。 Color pencolor = (0, 255, 0, 0)。 –此外, Color還預(yù)定義了一些 Color常量,我們可以直接使用,如: ? 圖形程序的設(shè)計(jì)的一般方法 –一般而言,圖形程序的設(shè)計(jì)可分為以下步驟: ? 創(chuàng)建或者獲取 Graphics對(duì)象; ? 創(chuàng)建畫(huà)圖工具對(duì)象(如畫(huà)筆、畫(huà)刷對(duì)象); ? 調(diào)用 Graphics對(duì)象的方法進(jìn)行圖形繪制。 SolidBrush bh1 = new SolidBrush()。 Cross 指定交叉的水平線和垂直線。 (b, 10, 10, 200, 100)。 public void DrawLine(Pen, Point, Point)。 FillEllipse(Brush b, Rectangle rect)。 (p, 10, 10, 200, 100, 0, 90)。 Point[] points = new Point[3]。 圖像處理概述 ? 圖像文件類型 –使用 GDI+可以顯示和處理多種格式的圖像文件,其中主要包括: ?位圖( *.bmp) ? Icon( *.ico) ? GIF( *.gif) ? JPEG( *.jpg) ? 圖像對(duì)象 –在 .NET中,進(jìn)行圖像處理一般是通過(guò) Image類及其派生類來(lái)實(shí)現(xiàn); – Image類是一個(gè)抽象類,不能直接使用,實(shí)踐中主要使用它的派生類 Bitmap類; – Bitmap類封裝了 GDI+位圖,可以處理由像素?cái)?shù)據(jù)定義的圖像,該類屬于 空間; – Bitmap類的構(gòu)造函數(shù): Bitmap(string filename)。 圖像的顯示和保存 ? 在程序中,用于顯示圖片常用 pictureBox控件,要在該控件上顯示圖片,需設(shè)置其 Image屬性,通過(guò)屬性框或者程序運(yùn)行時(shí)的OpenFileDialog對(duì)話框,可以指定 Image屬性; Bitmap image = new Bitmap(filename)。 if(()) Image im = ()。 Bitmap bm = new Bitmap(“”)。 – Bitmap類的 GetPixel和 SetPixel方法: ? GetPixel方法用于獲取圖像中指定像素的顏色; ? SetPixel方法用于設(shè)定圖像中指定像素的顏色; Bitmap bm = new Bitmap(“”)。 (p, points)。 ? 繪制多邊形
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1