版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、中文 中文 2696 字出處: 出處:Computer Science and Information Technology, 2009. ICCSIT 2009. 2nd IEEE International Conference on. IEEE, 2009: 405-407翻譯部分 翻譯部分英文原文Study on method of picture files processing in PowerBuilderJia Yinj
2、iang Zhang Tiejun Zhao JunyingAbstract—Pictures are one of the important elements of which the application is composed. A programmer is able to choose suitable treatment according to the system requirement. In PowerBuild
3、er picture control and ole control are the most commonly-used methods; blob data type field is used to access picture files in database and function of data window is used to display pictures dynamically. Each method has
4、 its own characteristics and application conditions. This article discusses and explores the methods of storage and display of picture files in PowerBuilder.Keywords: Blob Data Type; Picture Control; PictureProcessingI.
5、INTRODUCTIONPictures are composed of an important element in the application. Flexibility in the use of the picture will make the procedure more attractive. Method of picture files processing mainly includes picture stor
6、age, display and update, etc. PowerBuilder in access the database and data processing has a very strong function but weak in picture storage and display. As long as we master some commonly-used development skills, we wil
7、l be able to solve picture processing problem well in the practical application. Pictures stored in the form of file can be displayed with picture control or ole control; pictures stored in the database,a blob data type
8、field needed to be defined and picture data isoperated with binary large object command. In addition to the above two methods, pictures also can be displayeddynamically by using of the modify function of data window.Each
9、 method has its own characteristics and applicationconditions. This article discusses and explores the methods of storage and dw_1.settransobject(sqlca)dw_1.retrieve()Script code in clicked event of the command button is
10、 as following:string ls_string,ls_fnstring ls_filepath,ls_filenamegetfileopenname(“please choose the picture files“,ls_filepath,ls_filename,“bmp“,“bmp files(*.bmp),*.bmp,jpg files(*.jpg),*.jpg,all files (*.*),*.*“ )ls
11、_fn=ls_filepathls_string='create bitmap(band=detail x=“800“ y=“10“ width=“500“ height=“470“ ls_filename=“'+ls_fn+' “ border=“2“ name=ls_pn)' dw_1.modify(ls_string) Run window and click the command button,
12、 choose a picture in the pop-up dialog box, the selected picture will be displayed in detail band of data window, position is x=800 and y=10, picture size is 500 multiplied 470 pixels, border style is 2, that is “stylebo
13、x” type.This method has the following characteristics in comparison with ole control and picture control style: First, data window functions can support more file type and display a variety of file type formats, includin
14、g BMP, JPG,GIF, WMF Image file format, etc. Second, data window functions have the characteristics of flexibility, freedom, and can be set up in function of picture position, size, border, display area, and other propert
15、y. Third, faster images and less memory, pictures display are not placed to set a control, but dynamically generated in the process of program running.III. PICTURE FILES ACCESS IN DATABASEA. Access Pictures through the F
16、ile PathIn order to illustrate the operation of picture files, here two tables and their structure defined are given below: TABLE I. TABLE TPBColumn Name Data Type Width Null RemarkTpbh varchar 20
17、 No Primary Keytplj varchar 50 YesTABLE II. TABLE STUDENTColumn Name Data Type Width Null Remarkxh varchar 10 No Primary Keyxm varchar 8 Noxb
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 外文翻譯---在powerbuilder中處理圖片文件的方法研究
- 外文翻譯---在powerbuilder中處理圖片文件的方法研究
- 外文翻譯---在PowerBuilder中處理圖片文件的方法研究.docx
- 外文翻譯---在PowerBuilder中處理圖片文件的方法研究.docx
- 《在word中插入文件圖片》教案
- 外文翻譯----數(shù)字圖像處理方法的研究
- 外文翻譯--對于hadoop處理小文件的性能優(yōu)化
- 外文翻譯--對于hadoop處理小文件的性能優(yōu)化
- 外文翻譯--數(shù)字圖像處理方法的研究
- 外文翻譯--數(shù)字圖像處理方法的研究
- 外文翻譯原文--粒子圖像測速法在水波研究中的應(yīng)用(內(nèi)容是圖片)
- 數(shù)據(jù)和處理方法[外文翻譯]
- (節(jié)選)外文翻譯--利用數(shù)據(jù)處理群方法構(gòu)建財(cái)務(wù)預(yù)警模型(英文為圖片)
- 外文翻譯(中文)--對于hadoop處理小文件的性能優(yōu)化
- autocad文件轉(zhuǎn)存成清晰圖片的方法
- 外文翻譯--數(shù)字圖像處理方法的研究.doc
- 外文翻譯--數(shù)字圖像處理方法的研究.doc
- PowerBuilder在兗礦集團(tuán)醫(yī)院系統(tǒng)中的應(yīng)用.pdf
- 外文翻譯(中文)--對于Hadoop處理小文件的性能優(yōu)化.docx
- 圖片壓縮技術(shù)【外文翻譯】
評論
0/150
提交評論