On Sun, Mar 6, 2011 at 8:40 AM, Steeve Descarpentries
<[email protected]> wrote:
> Hi,
>
> I started to test the pango producer, in C#.
>
> I managed to display a text, changed the foreground colour, the align.
>
> The text is always displayed in the middle, Y axis. I would like to know
> how to move the text, on the consumer, where i want ? I looked in the
> pango producer c source files, but I didn't find properties to locate
> the text.
>
> Other question, when I used a multitrack, I managed to display a picture
> and a text, but the background of the pango producer is always
> displayed, how to make it transparent ?

You have to add a composite or affine transition to make it overlay.
When you do so the geometry property controls the position and size.
You probably want to use 100% for the size most of the time. You can
also compose SVG and use that for more control. See the demo
subdirectory for examples.

> Regards
>
> Steeve
>
> code exemple :
>
> private void SimplePlayWithPangoText(string textToDisplay)
> {
>        Factory.init();
>        Profile profile = new Profile("atsc_720p_30");
>        Producer p = new Producer( profile,"pango",null);
>        p.set_in_and_out(0,500);
>        if (p.is_valid())
>        {
>                p.set("text",textToDisplay);
>                p.set("fgcolour","0xff0000ff"); // red colour
>                p.set("align","1"); // align center
>
>                Consumer c = new Consumer(profile, "sdl", null);
>                c.set("rescale", "none");
>                c.connect(p);
>                c.start();
>
>                while (!c.is_stopped())
>                {
>                        Thread.Sleep(300);
>                        if (p.position() >= p.get_out())
>                                break;
>                }
>                c.stop();
>        }
> }
>

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to