This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, January 31, 2006 11:50:06 PM(UTC)
Groups: Registered
Posts: 2
Hi,
i try to use the rotation filter, but when i use GetAttributs or SetAttribute function i have exeption or happen nothing.
Something other, when i try to read the settings, i see that in my structure not have a changes after GetAtr... function, but if i put the GetAtr... function after the structure inicialization, again i have exeption.
long nIndex;
ILMVRotate* LMVRotate;
ROTATION_ATTRIBUTES rot_atrr;
BSTR bstr;
//The string below is retrieved from the Filters List utility
bstr = SysAllocString(L"@device:sw:{E526D606-22E7-494C-B81E-AC0A94BFE603}\\{E2B7DCDB-38C5-11D5-91F6-00104BDB8FF9}");
nIndex = ltmmPlayCtrl1->VideoProcessors->Find(bstr);
ltmmPlayCtrl1->SelectedVideoProcessors->Add(ltmmPlayCtrl1->VideoProcessors->Item (nIndex),0);
// Getting the the Emboss object
LMVRotate = (ILMVRotate*)ltmmPlayCtrl1->GetSubObject((ltmmPlay_Object_SelVideoProcessor)+0);
// Fill our options
LMVRotate->GetRotationAttributes(&rot_atrr);
rot_atrr.lRotationAngle=90;
rot_atrr.bReverse=0;
rot_atrr.bFlip=0;
rot_atrr.bAutoStop=0;
rot_atrr.lDRotationAngle=0;
rot_atrr.bDReverse=0;
rot_atrr.bDFlip=0;
// Set our options
LMVRotate->SetRotationAttributes(rot_atrr);
}
this is the events on filter button click. Somebody can help me? I am not sure that all is correct, i am a embedded engineer but now must made soft for PC, and want to buy component like this but first i want to test it .. but can't do this :(
p.s. i use the BCB6.0
#2
Posted
:
Monday, February 6, 2006 3:58:10 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Here's modified code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
long nIndex;
ILMVRotate* LMVRotate;
ROTATION_ATTRIBUTES rot_atrr;
BSTR bstr;
//The string below is retrieved from the Filters List utility
bstr =
SysAllocString(L"@device:sw:{E526D606-22E7-494C-B81E-AC0A94BFE603}\\{E2B7DCDB-38C5-11D5-91F6-00104BDB8FF9}");
nIndex = ltmmPlayCtrl1->VideoProcessors->Find(bstr);
ltmmPlayCtrl1->SelectedVideoProcessors->Add(ltmmPlayCtrl1->VideoProcessors->Item (nIndex),0);
// Getting the the Rotate object
LPUNKNOWN pRotate = ltmmPlayCtrl1->GetSubObject((ltmmPlay_Object_SelVideoProcessor)+0);
pRotate->QueryInterface(IID_ILMVRotate, (void **)&LMVRotate);
pRotate->Release();
// Fill our options
LMVRotate->GetRotationAttributes(&rot_atrr);
rot_atrr.lRotationAngle=90;
rot_atrr.bReverse=0;
rot_atrr.bFlip=0;
rot_atrr.bAutoStop=0;
rot_atrr.lDRotationAngle=0;
rot_atrr.bDReverse=0;
rot_atrr.bDFlip=0;
// Set our options
LMVRotate->SetRotationAttributes(rot_atrr);
LMVRotate->Release();
}
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Friday, February 10, 2006 8:39:59 AM(UTC)
Groups: Registered
Posts: 2
Thanks, i solved the problem with my component, but this will be very usefully for me, thanks again.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.