Exemplo n.º 1
0
    void ImportPreviewVideoProperties(XmlElement parent, PreviewVideoProperties props)
    {
        XmlElement elt = parent["Preview"];

        if (null == elt)
        {
            return;
        }
        try { props.RenderQuality = ChildVideoRenderQuality(elt, "RenderQuality"); } catch {}
        try { props.FullSize = ChildBoolean(elt, "FullSize"); } catch {}
    }
Exemplo n.º 2
0
    void ExportPreviewVideoProperties(XmlElement parent, PreviewVideoProperties props)
    {
        XmlElement elt = AddChild(parent, "Preview");

        ChildInt32(elt, "Width", props.Width);
        ChildInt32(elt, "Height", props.Height);
        ChildDouble(elt, "FrameRate", props.FrameRate);
        ChildObject(elt, "FieldOrder", props.FieldOrder);
        ChildDouble(elt, "PixelAspectRatio", props.PixelAspectRatio);
        ChildObject(elt, "RenderQuality", props.RenderQuality);
        ChildBoolean(elt, "FullSize", props.FullSize);
    }