線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:2129
推到 Plurk!
推到 Facebook!

Bmp 和 Pcx 图形互相转化。

尚未結案
guoqz
一般會員


發表:4
回覆:10
積分:2
註冊:2004-06-28

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-07-16 11:10:46 IP:61.51.xxx.xxx 未訂閱
我想把Bmp图片和Pcx图片互相转化。 不知道如何实现。 不知道那位先进曾经作过,请指教一下。
taishyang
站務副站長


發表:377
回覆:5490
積分:4563
註冊:2002-10-08

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-07-26 16:17:11 IP:140.135.xxx.xxx 未訂閱
您好: 您可以使用下面連結所提供的元件,其使用方式就如同TImage一樣 此元件提供更多圖檔格式之間的轉換 http://delphi.ktop.com.tw/topic.php?TOPIC_ID=26565 使用方式的範例 http://delphi.ktop.com.tw/topic.php?topic_id=42325 順心 <>~我也是在學習的階段,回答的不好請您多多見諒與指教~
guoqz
一般會員


發表:4
回覆:10
積分:2
註冊:2004-06-28

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-07-28 10:08:54 IP:61.49.xxx.xxx 未訂閱
多谢taishyang了,我试试看如何。
TheMoon
中階會員


發表:17
回覆:95
積分:67
註冊:2002-06-05

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-07-30 11:48:55 IP:202.39.xxx.xxx 未訂閱
之前有寫過將PCX->BMP,但沒寫過BMP->PCX。 或許下列網頁有你可以參考的資料: http://homepages.borland.com/efg2lab/Library/Delphi/Graphics/FileFormatsAndConversion.htm
sugar
一般會員


發表:6
回覆:15
積分:9
註冊:2003-05-27

發送簡訊給我
#5 引用回覆 回覆 發表時間:2008-06-04 10:47:26 IP:59.125.xxx.xxx 訂閱
正在苦惱,不知道如何讀取PCX的圖檔
看到您推薦的網站..就有可以使用的範例

解決了我的問題.

真感謝^^~~
kpp0928
一般會員


發表:0
回覆:2
積分:0
註冊:2008-06-05

發送簡訊給我
#6 引用回覆 回覆 發表時間:2008-06-05 16:13:13 IP:211.74.xxx.xxx 訂閱
有一個問題 想請教 TheMoon 大大

感謝提供的網址 之前有寫過將PCX->BMP
下載 pcx.pas 後 利用此範例程式可以用 Delphi 7.0 compile 也可以 run
但是
我把 pcx.pas 加入我的專案後 程式直接 USE pcx.pas
卻連 compile 也不過( Delphi 7.0)
出現 pcx.pas 的錯誤訊息 如下
錯誤的意思是說 常數不能再指定給值
[Error] PCX.pas(105): Left side cannot be assigned to
[Error] PCX.pas(106): Left side cannot be assigned to
[Error] PCX.pas(126): Left side cannot be assigned to
[Error] PCX.pas(127): Left side cannot be assigned to
[Error] PCX.pas(138): Left side cannot be assigned to
[Error] PCX.pas(139): Left side cannot be assigned to
[Error] PCX.pas(150): Left side cannot be assigned to
[Error] PCX.pas(151): Left side cannot be assigned to
[Error] PCX.pas(161): Left side cannot be assigned to
[Error] PCX.pas(162): Left side cannot be assigned to
[Warning] PCX.pas(934): Comparing signed and unsigned types - widened both operands
[Fatal Error] DtnPunchPrice.pas(163): Could not compile used unit 'PCX.pas'

在程式'PCX.pas' 中 上面有宣告 常數如下
Const
Index1:Word=0;
Index2:Word=0;
Const4096=8*1024;
然後在程式裡 又有給值
Index1:=Const4096;
Index2:=0;
就是上面這兩行 編譯不過


sugar
一般會員


發表:6
回覆:15
積分:9
註冊:2003-05-27

發送簡訊給我
#7 引用回覆 回覆 發表時間:2008-06-11 09:49:41 IP:59.125.xxx.xxx 訂閱
您只要將 index1,index2由 const移到 var 就可以了

Const 底下
Index1:Word=0;
Index2:Word=0;
你把他們原封不動的,移到上面
Var 底下
Index1:Word=0;
Index2:Word=0;

kpp0928
一般會員


發表:0
回覆:2
積分:0
註冊:2008-06-05

發送簡訊給我
#8 引用回覆 回覆 發表時間:2008-06-11 11:14:15 IP:211.74.xxx.xxx 訂閱
感謝 sugar 的回覆
馬上去試試 這樣會改到 pcx.pas 不知道有沒有問題
謝謝

===================引 用 sugar 文 章===================
您只要將 index1,index2由 const移到 var 就可以了

Const 底下
Index1:Word=0;
Index2:Word=0;
你把他們原封不動的,移到上面
Var 底下
Index1:Word=0;
Index2:Word=0;

系統時間:2024-05-05 17:14:01
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!