將抓到的影格兩兩比較差異 |
尚未結案
|
macross7tzeng
一般會員 發表:4 回覆:0 積分:0 註冊:2004-09-05 發送簡訊給我 |
我的程式是要做我所抓到影格之間做相減 取得相減的值可以SHOW在CHART上面
可是執行之後就會停住 不知道是發生什麼問題 可以請高手們解答一下嗎
謝謝 Graphics::TBitmap *MyBmp;
TCanvas *MyCanvas;
HDC dc;
TRect rect;
String name;
AnsiString tempIndex,temp;
Graphics::TBitmap *TheBitmap;
Graphics::TBitmap *OneBitmap;
Byte *ptr1,*ptr2,*ptr3;
int Width, Height,x;
int aa=MediaPlayer1->TrackLength[1];
temp=IntToStr(aa).Length();
tempIndex=pow(10,StrToInt(temp));
if(StrToInt(EndPos->Text)<=aa)
{
for(int i=StrToInt(StartPos->Text);i<=StrToInt(EndPos->Text);i=i+StrToInt(CRatio->Text))
{
MediaPlayer1->Position=i;
MyBmp=new Graphics::TBitmap ;
MyCanvas=new TCanvas ;
rect=MediaPlayer1->DisplayRect ;
dc=GetDC(Panel1->Handle);
MyCanvas->Handle=dc;
MyBmp->Width=rect.Right-rect.Left ;
MyBmp->Height=rect.Bottom-rect.Top ;
MyBmp->Canvas->CopyRect(rect,MyCanvas,rect);
{
if (i=StrToInt(StartPos->Text))
OneBitmap=MyBmp;
else
{
for(int y=0;y
|
taishyang
站務副站長 發表:377 回覆:5490 積分:4563 註冊:2002-10-08 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |