OnGraphBuilt
TVideoGrabber.OnGraphBuilt |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Occurs when the video graph is built.
Declaration
property OnGraphBuilt: TNotifyEvent read FOnGraphBuilt write FOnGraphBuilt;
__property Classes::TNotifyEvent OnGraphBuilt=read=FOnGraphBuilt, write=FOnGraphBuilt
Event OnGraphBuilt()
Description
Occurs when a preview, recording or playback video graph is built.
Used mainly to retrieve properties that are available only after the video graph is built, like GetVMR9ImageAdjustmentBounds.
E.g.:
procedure TForm1.VideoGrabberGraphBuilt(Sender: TObject);
var
MinValue, MaxValue, StepSize, DefaultValue, CurrentValue: LongInt;
begin
BrightnessTrackbar.Enabled := VideoGrabber.GetVMR9ImageAdjustmentBounds (True, vmr9_Brightness, MinValue, MaxValue, StepSize, DefaultValue, CurrentValue);
if Brightness.Enabled then begin
Brightness.Min := MinValue;
Brightness.Max := MaxValue;
Brightness.Frequency := StepSize;
Brightness.Position := CurrentValue;
end;
end;
procedure TForm1.BrightnessTrackbarChange(Sender: TObject);
begin
VideoGrabber.SetVMR9ImageAdjustmentValue (True, vmr9_Brightness, tbrVMR9Brightness.Position, false);
end;
See the MainDemo project for sample code.