How to implement a teleprompter?
-
Hi I'm working on a teleprompter software (that flips a given text and lets the user to scroll it pixel by pixel) I tried GDI+ using C# .Each time the user wants to scroll the text an image of the current lines is made.Then the image is rotated and loaded into a pciture box. Unfortunately this procedure is very slow. I like to ask if there is anyway that I can do the same thing using DirectX or OpenGL (I've already searched the ineternet but I couldn't find any answer) Is there any other way that I can show the text upside down and let the user to scorll it? Thanks a lot
Use a RotateTransform before drawing the text onto your Graphics object. You will need to do a TranslateTransform as well to get things where you expect them to be.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Use a RotateTransform before drawing the text onto your Graphics object. You will need to do a TranslateTransform as well to get things where you expect them to be.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Hi Thank you. Actually I have tried it but the text blinks(The picture is painted every 10 milliseconds) Here's what I did: 1.Get the graphics object. 2.Clear 3.RotateTransform 4.TranslateTransform 5.DrawText 6.Flush 7.Dispose It seems that every time the clear method is called casues the text to blink Is there anyway that I can make the movement of the text smoother ? Thanks again.
-
Hi Thank you. Actually I have tried it but the text blinks(The picture is painted every 10 milliseconds) Here's what I did: 1.Get the graphics object. 2.Clear 3.RotateTransform 4.TranslateTransform 5.DrawText 6.Flush 7.Dispose It seems that every time the clear method is called casues the text to blink Is there anyway that I can make the movement of the text smoother ? Thanks again.
You might need to apply double buffering to the form. That way it won't flicker.
-
You might need to apply double buffering to the form. That way it won't flicker.
Hi How can I apply double buffering to the form ? Thnaks
-
Hi How can I apply double buffering to the form ? Thnaks
-
Hi How can I apply double buffering to the form ? Thnaks
Hello, If you are using .Net 1.x, you have to use the SetStyle method of the Form class.
this.SetStyle(
ControlStyles.DoubleBuffer |
ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint |
ControlStyles.ResizeRedraw,
true);In .Net 2.0 there is a new member of the ControlStyles enum which optimizes the perfomance of DoubleBuffering.
this.SetStyle(
ControlStyles.OptimizedDoubleBuffer |
ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint |
ControlStyles.ResizeRedraw,
true);All the best, Martin
-
Hello, If you are using .Net 1.x, you have to use the SetStyle method of the Form class.
this.SetStyle(
ControlStyles.DoubleBuffer |
ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint |
ControlStyles.ResizeRedraw,
true);In .Net 2.0 there is a new member of the ControlStyles enum which optimizes the perfomance of DoubleBuffering.
this.SetStyle(
ControlStyles.OptimizedDoubleBuffer |
ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint |
ControlStyles.ResizeRedraw,
true);All the best, Martin
Hi Thank you very much indeed. Best regards
-
Hi Thank you very much indeed. Best regards
-
Can anyone pls give me a smaple application of this code usage in double buffering and preview of teleprompter window of same form on two monitors. this.SetStyle( ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.ResizeRedraw, true); Thank you.
-
Hi I'm working on a teleprompter software (that flips a given text and lets the user to scroll it pixel by pixel) I tried GDI+ using C# .Each time the user wants to scroll the text an image of the current lines is made.Then the image is rotated and loaded into a pciture box. Unfortunately this procedure is very slow. I like to ask if there is anyway that I can do the same thing using DirectX or OpenGL (I've already searched the ineternet but I couldn't find any answer) Is there any other way that I can show the text upside down and let the user to scorll it? Thanks a lot
hello, I also want achieve the same task, but unfortunately i am not able to succeed, I used grid for developing prompter but my issue is grid scrolling is row by row not pixel by pixel. Kindly give me some idea to develop prompter app. Thanks