TMetaFileCanvas->Draw() 似乎有 BUG |
缺席
|
herbert2
尊榮會員 發表:58 回覆:640 積分:894 註冊:2004-04-16 發送簡訊給我 |
// Borland C++ Build 5
// TMetafileCanvas->Methods // TMetafileCanvas::TMetafileCanvas->Example /* This example shows how to create or augment a metafile using a metafile canvas object. This metafile can then be used to draw on the canvas of another object such as a paintbox or a printer.} */ TMetafile *pMetafile = new TMetafile; TMetafileCanvas *pCanvas = new TMetafileCanvas(pMetafile, 0); pCanvas->Brush->Color = clRed; pCanvas->Ellipse(0,0,100,100); // ... delete pCanvas; Form1->Canvas->Draw(0,0,pMetafile); //1 red circle /* To add to an existing metafile image, create a metafile canvas and play the source metafile into the metafile canvas: */ // 若不執行以下程式, pMetafile 的內容不會遺失. TMetafileCanvas *pCanvas = new TMetafileCanvas(pMetafile, 0); pCanvas->Draw(0,0,pMetafile); /* 當 pMetafile 有百多個線條、文字、框線等時, 部分非最後執行也非位在靠近邊緣的 四方形框線, 竟會遺失底部線條 (上方其他框線正常, 其下方的其他線條也未遺失) , 暨使不執行下面任一加畫其他線條或文字之指令, 結果仍有同樣的問題. */ /* pCanvas->Brush->Color = clBlue; pCanvas->Ellipse(100,100,200,200); // ... */ delete pCanvas; Form1->Canvas->Draw(0,0,pMetafile); // 1 red circle and 1 blue circle // ... delete pMetafile; 請問有那位高手, 能幫忙告知應如何解決此 BUG 嗎 ? |
herbert2
尊榮會員 發表:58 回覆:640 積分:894 註冊:2004-04-16 發送簡訊給我 |
|
herbert2
尊榮會員 發表:58 回覆:640 積分:894 註冊:2004-04-16 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |