全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1506
推到 Plurk!
推到 Facebook!

BCB 6.0 想要用GIF

尚未結案
luckfox
一般會員


發表:34
回覆:40
積分:24
註冊:2002-10-15

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-03-06 20:28:04 IP:218.32.xxx.xxx 未訂閱
目前想要一個gif的VCL,可是板上的文章提供的GIF VCL都無法安裝在6.0上 請問一下哪裡找的到這個VCL呢?
taishyang
站務副站長


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

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-03-07 15:54:19 IP:140.135.xxx.xxx 未訂閱
luckfox您好: 您可以參可考下面連結 http://delphi.ktop.com.tw/topic.php?TOPIC_ID=31622 順心 <>~我也是在學習的階段,回答的不好請您多多見諒與指教~
luckfox
一般會員


發表:34
回覆:40
積分:24
註冊:2002-10-15

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-03-08 16:04:46 IP:218.32.xxx.xxx 未訂閱
1.我測試了一下,發現會有如下的錯誤 unknow picture file extension(.gif) 2. 另外BCB中,當我們用TImage讀入GIF File,但是如何確定那是一個正確的GIF File呢        //---------------------------------------------------------------------------    #ifndef Unit1H #define Unit1H //--------------------------------------------------------------------------- #include  #include #include #include <Forms.hpp> #include #include #include #include #include #include #include "JPEG.hpp" #include "GIFimage.hpp" //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TImage *Image1; TIdHTTP *IdHTTP1; TButton *Button1; void __fastcall Button1Click(TObject *Sender); private: // User declarations public: // User declarations __fastcall TForm1(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif #include #pragma hdrstop #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; //--------------------------------------------------------------------------- __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TForm1::Button1Click(TObject *Sender) { TMemoryStream *ms; ms=new TMemoryStream(); IdHTTP1->Get("http://tw.yimg.com/i/tw/hp/yk_masthead_15.gif", ms); if(IdHTTP1->ResponseCode==200) { ms->SaveToFile("C:\\banner.gif"); } if(FileExists("C:\\banner.gif")) Image1->Picture->LoadFromFile("C:\\banner.gif"); delete ms; }
系統時間:2024-06-28 19:15:41
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!