Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, October 20, 2017 2:08:12 PM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 366

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

This Visual Studio 2017 project leverages the LEADTOOLS Imaging SDK with the LEADTOOLS Multimedia SDK to playback a render a media file and write a string into the video data. This is accomplished using LEADTOOLS Video Callback filter with the LEADTOOLS PlayCtrl to access the raw frame data.

Adding text to video can also be done easily using the LEADTOOLS Video Text Overlay filter, and the LEADTOOLS controls can use multiple text overlays at the same time. If you need more than a couple text overlays or if you want more control over how the text is rendered, using the callback may be a better solution since it provides complete control. It would allow for writing text in multiple different locations at the same time as well.

This demo uses the Leadtools.RasterImage class to wrap the raw data provided by the video callback filter. This can also be accomplished using the .NET Bitmap, but you will need to copy the data back into the pData parameter for the changes to show in the LEADTOOLS control. Using the RasterImage class, this copying is not necessary.

To run this demo, please extract it into the following directory:
C:\LEADTOOLS 19\Examples\posts\t12331\

If you have the LEADTOOLS Still Imaging and Multimedia SDKs installed separately, you will need to update the references.
File Attachment(s):
CS_LMVCallback_RasterImageDrawString_v19.zip (13kb) downloaded 542 time(s).
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.050 seconds.