#1
Posted
:
Friday, October 20, 2017 2:08:12 PM(UTC)
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.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
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.