2010-04-27 51 views

回答

0

你不說,但我會假設你在談論德爾福。

您可以檢查是否有通過測試是在TImage中控制位圖:

if Image.Picture.Bitmap.Width > 0 then 
    // do whatever 
1

如果Image.Picture.Bitmap.Empty然後DoStuff

+1

'如果不是Image.Picture.Empty然後DoStuff'作爲OP要求運行'DoStuff'only時,有一個畫面。 – 2011-07-13 21:11:11

1

優於從不遲到!
正確的做法是:

if Assigned(Image1.Picture.Graphic) then ...

相關問題