圖形顯示技巧,這是其中一段代碼 procedure TForm1.Button1Click(Sender: TObject) var newbmp:TBitmap i,bmpheight,bmpwidth:integer //推拉 begin newbmp:=TBitmap.Create newbmp.Width:=image1.Width newbmp.height:=image1.height bmpheight:=image1.height bmpwidth:=image1.Width for i:=0 to bmpheight do begin newbmp.Canvas.CopyRect(Rect(0,bmpheight-i,bmpwidth,bmpheight),image1.Canvas,Rect(0,0,bmpwidth,i)) form1.Canvas.Draw(120,100,newbmp) end newbmp.free end
標簽: procedure TBitmap TObject Button
上傳時間: 2016-01-18
上傳用戶:comua
Make a graph from database record and either send it to a printer directly selecting many print options or copy it in any file on disc. This project also gives you print preview option for A4 size paper and you can set your graph anywhere on the page.Also if you want to change graph s height or width you can change.Zooming effect is also given using hsrollbar.
標簽: selecting database directly printer
上傳時間: 2016-02-06
上傳用戶:s363994250
DBSCAN是一個基于密度的聚類算法。改算法將具有足夠高度的區域劃分為簇,并可以在帶有“噪聲”的空間數據庫中發現任意形狀的聚類。-DBSCAN is a density-based clustering algorithm. Algorithm change will have enough height to the regional cluster. and to be with the "noise" of the spatial database found clusters of arbitrary shape.
上傳時間: 2013-12-28
上傳用戶:q123321
取得瀏覽絕對大小的JS類,兼容多種瀏覽器 width 寬度 height 高度 scrollWidth 帶滾動條的寬度 scrollheight 帶滾動條的高度 scrollTop 內容高度
標簽:
上傳時間: 2016-05-10
上傳用戶:star_in_rain
(1) 編寫一個代表圓柱體的Cylinder類,該類是Circle類的子類。Cylinder類包括圓柱體的高度變量height以及計算圓柱體的體積方法volume()和計算表面積的方法surfaceArea()。 (2) 編寫測試Cylinder類的CylinderTest類,并在該類得main方法中調用Cylinder類的相關方法。 (3) 重寫Point和Circle類的equals()、toString()方法,并測試這些方法的正確性。
上傳時間: 2016-08-19
上傳用戶:moerwang
These routines model tropospheric radiowave propagation over variable terrain and calculates propagation loss vs. height and range. Propagation loss is displayed in dB contours on a height vs. range plot. TPEM is based on the split-step Fourier PE method and was originally developed from an early PE model called PEPC, written by Fred Tappert. Propagation loss over variable terrain is modeled by shifting the field an appropriate number of bin widths correspondc ing to the height of the ground. The field is determined using the smooth earth PE method.
標簽: tropospheric propagation calculates radiowave
上傳時間: 2017-01-01
上傳用戶:225588
The combinatorial core of the OVSF code assignment problem that arises in UMTS is to assign some nodes of a complete binary tree of height h (the code tree) to n simultaneous connections, such that no two assigned nodes (codes) are on the same root-to-leaf path. Each connection requires a code on a specified level. The code can change over time as long as it is still on the same level. We consider the one-step code assignment problem: Given an assignment, move the minimum number of codes to serve a new request. Minn and Siu proposed the so-called DCAalgorithm to solve the problem optimally. We show that DCA does not always return an optimal solution, and that the problem is NP-hard. We give an exact nO(h)-time algorithm, and a polynomial time greedy algorithm that achieves approximation ratio Θ(h). Finally, we consider the online code assignment problem for which we derive several results
標簽: combinatorial assignment problem arises
上傳時間: 2014-01-19
上傳用戶:BIBI
創建一個包裝學生信息的java類:包括name,number, age,height,創建該對象的數組用于表示n個學生的信息,并具備顯示所有學生信息,查找某個學生的功能。(有輸入流,輸入數據,使用hash表存儲數據) 包含相關代碼和運行結果
上傳時間: 2013-12-16
上傳用戶:ddddddos
A heap is a binary tree satisfying the following conditions: This tree is completely balanced. If the height of this binary tree is h, then leaves can be at level h or level h-1. All leaves at level h are as far to the left as possible. The data associated with all descendants of a node are smaller than the datum associated with this node.
標簽: tree conditions completely satisfying
上傳時間: 2014-01-01
上傳用戶:gundan
//獲得當前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判斷是否支持該模式 if[vga_hasmode[mode]] vga_setmode[mode] else { printf["No such mode\n"] exit[1] } //取得信息 width = vga_getxdim[] height = vga_getydim[] colors = vga_getcolors[] //繪圖 for[i=0 i<colors i++]{ vga_setcolor[i] vga_drawline[0, i, width-1, i] }
標簽: vga_getcurrentmode vga_init oldmode vga_ha
上傳時間: 2014-12-19
上傳用戶:maizezhen