Esempio n. 1
0
 public void prepare(PlayObj pobj)
 {
     this.LoadedBehavior = MediaState.Manual;
     this.Source         = new Uri(pobj.getPath());
     Width  = pobj.getDisplayParamReal("width");
     Height = pobj.getDisplayParamReal("height");
 }
Esempio n. 2
0
        public void prepare(PlayObj pobj)
        {
            Height   = pobj.getDisplayParamReal("height");
            Width    = pobj.getDisplayParamReal("width");
            FontSize = pobj.getDisplayParamReal("font_size");

            Text = pobj.getStringParam("content");

            TextAlignment = System.Windows.TextAlignment.Center;
        }
Esempio n. 3
0
 public void prepare(PlayObj pobj)
 {
     Stretch          = Stretch.Fill;
     StretchDirection = StretchDirection.Both;
     Height           = pobj.getDisplayParamReal("height");
     Width            = pobj.getDisplayParamReal("width");
     try
     {
         Source = new BitmapImage(new Uri(pobj.getPath()));
     } catch (System.NotSupportedException e)
     {
         Console.Out.WriteLine("error path" + pobj.getPath());
     }
 }