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

Image.Canvas.Lock; 請問一下~

答題得分者是:pedro
pnshxix
一般會員


發表:21
回覆:9
積分:6
註冊:2007-06-26

發送簡訊給我
#1 引用回覆 回覆 發表時間:2007-07-10 12:59:30 IP:125.231.xxx.xxx 訂閱
image 底下的 canvas  

canvas 主要的作用是什麼??

為什麼canvas 要用 lock 的屬性??
pedro
尊榮會員


發表:152
回覆:1187
積分:892
註冊:2002-06-12

發送簡訊給我
#2 引用回覆 回覆 發表時間:2007-07-11 10:19:37 IP:60.248.xxx.xxx 未訂閱
看Help


Call Lock in a multithreaded application to prevent other threads from drawing on the canvas. Lock prevents other cooperating threads in the application from executing until the Unlock method is called. Nested calls to Lock increment the LockCount property so that the canvas is not unlocked until the last lock is released.
In multi-threaded applications that use Lock to protect a canvas, all calls that use the canvas must be protected by a call to Lock. Any thread that does not lock the canvas before using it will introduce potential bugs.
Because Lock prevents other threads from executing, it can adversely affect performance. Do not call Lock unless there is a danger that another thread might interfere with drawing on the canvas.
系統時間:2024-03-29 17:54:50
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!