Forums
Text scaling in TVLDSImageDisplay - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: VCL Components (/forum-6.html)
+--- Forum: VideoLab (/forum-19.html)
+--- Thread: Text scaling in TVLDSImageDisplay (/thread-333.html)



Text scaling in TVLDSImageDisplay - rodneyb - 05-10-2012 07:25 AM

Hi,
As far as I can tell, there are two standard methods of writing text to a TVLDSImageDisplay; via the TVLDrawTextLayer and by the TVLGenericFilter OnProcessData event.
However, the size of the text that I put onto the video seems to depend on the resolution of the video that I play. eg. If I put text with a font size of 20 then it will show as small when playing a high res video and large when the video is low res. Is there a way of putting fixed size text onto the video? I want the text to be the same size regardless of the resolution of the video.
Maybe I missed something?
Thanks


RE: Text scaling in TVLDSImageDisplay - Dave - 05-10-2012 08:27 PM

Hi! Maybe you can use the Canvas->TextWidth() and similar functions.

Regards,
Dave