ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 overlay on video

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
firemen Posted - Nov 17 2011 : 13:28:16
tell me how to implement transparent bitmap rendering when playing video files?
looked at all the examples of playing video files, but did not find as much as possible over the video display transparent bitmap...

3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Nov 19 2011 : 23:56:48
That example copies the acquired frame in the background layer in Tfmain.ImageEnView1DShowNewFrame event. Inside it you can also change the layer 1 (semitransparent layer).
The same example shows also how display a text over the acquired frame, maybe it could be useful (look at the code remarked as "// display datatime").

procedure Tfmain.ImageEnView1DShowNewFrame(Sender: TObject);
var
  ss: string;
begin
  ImageEnView1.LayersCurrent:=0;
  ImageEnView1.IO.DShowParams.GetSample(ImageEnView1.IEBitmap);

  // display datatime
  ss := FormatDateTime('c', date + time);
  with ImageEnView1.IEBitmap.Canvas do
  begin
    Brush.Style := bsClear;
    Font.Color := clWhite;
    TextOut(0, 0, ss);
  end;

  // uncomment if you want merge image also in the saved AVI
  //ImageEnView1.LayersMerge(0,1,false);

  ImageEnView1.IO.SaveToAVI;

  ImageEnView1.Update;

  ImageEnView1.Paint;
end;
firemen Posted - Nov 18 2011 : 10:35:16
Thank you very much! I looked at this example ..
but in this example creates a layer with a static picture.
I would like to be able to draw on every frame changing its bitmap.
such as to output the karaoke text on the background of videophone.
I can not find similar examples of what would be the quick drawing of a dynamically changing.
for example in an event drawing TVideoGrabber video frame where I can continue to draw on top your bitmap.
sorry for bad english (:
fab Posted - Nov 18 2011 : 00:31:39
Please look at "VideoCapture\VideoEffects" example. It puts the video frames in the background layer, and add a new layer with the transparent image.