image 元件的透明背景問題 |
尚未結案
|
wasisrk
一般會員 發表:6 回覆:9 積分:3 註冊:2005-03-12 發送簡訊給我 |
|
liangnet
中階會員 發表:19 回覆:148 積分:83 註冊:2004-01-03 發送簡訊給我 |
在程式中一開始先對Image2做初始設定
Image2->Picture->Bitmap->Transparent = true;
Image2->Picture->Bitmap->TransparentColor = <指定一個透明色>;
Image2->Canvas->Brush->Color = <指定一個透明色>;
Image2->Canvas->Brush->Style = bsSolid;
Image2->Canvas->FillRect(Image2->BoundsRect);
|
fusung
中階會員 發表:26 回覆:169 積分:99 註冊:2003-11-25 發送簡訊給我 |
哈囉,wasisrk: 提供你另一個方法,只使用Image1,但是在Image1載入圖片的同時,偷偷複製一份到暫時變數, 所以Image1還是可以直接畫線,如果後悔可以將暫時變數填回Image1。 寫了一個範例提供你參考http://delphi.ktop.com.tw/topic.php?TOPIC_ID=82217
The first step toward proving things for yourself is to understand how others have done it before!
------
The first step toward proving things for yourself is to understand how others have done it before! |
richtop
資深會員 發表:122 回覆:646 積分:468 註冊:2003-06-10 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |