Click here to Skip to main content
15,905,323 members
Home / Discussions / WPF
   

WPF

 
GeneralLearning WPF Pin
ColinM12316-Nov-08 11:11
ColinM12316-Nov-08 11:11 
GeneralRe: Learning WPF Pin
Pete O'Hanlon16-Nov-08 11:18
mvePete O'Hanlon16-Nov-08 11:18 
QuestionDataGrid Pin
VisualLive16-Nov-08 5:33
VisualLive16-Nov-08 5:33 
QuestionAdvanced masking - Interlacing 3 video inputs into a single image [modified] Pin
Graeme_Grant16-Nov-08 2:14
mvaGraeme_Grant16-Nov-08 2:14 
AnswerRe: Advanced masking - Interlacing 3 video inputs into a single image Pin
Insincere Dave16-Nov-08 8:57
Insincere Dave16-Nov-08 8:57 
GeneralRe: Advanced masking - Interlacing 3 video inputs into a single image Pin
Graeme_Grant16-Nov-08 9:39
mvaGraeme_Grant16-Nov-08 9:39 
GeneralRe: Advanced masking - Interlacing 3 video inputs into a single image Pin
Insincere Dave18-Nov-08 5:56
Insincere Dave18-Nov-08 5:56 
GeneralRe: Advanced masking - Interlacing 3 video inputs into a single image [modified] Pin
Graeme_Grant19-Nov-08 1:35
mvaGraeme_Grant19-Nov-08 1:35 
Insincere Dave wrote:
If you replace the coloured rectangles with mediaelements you should be able to do it. I don't know about the performance though.


I've changed your initial sample code to mediaelemets and added video. When run in 1200 x 600 (due to my Notebook PC screen resolution limitation) with a LayoutTransform applied to rotate the video from landscape to portrait, the CPU load when run in the IDE in Debug Mode is 42~47%... I'll load up FHD (1920 x 1080) video in the office tomorrow and will measure the load again... Somehow I don't think it will be a problem.

Revised test XAML used:

<Window x:Class="TestWPF___TripleView.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Width="1200" Height="600" 
    WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Background="Black">
    <Canvas SnapsToDevicePixels="True" Loaded="WindowLoaded">
        <MediaElement Width="600" Height="1200" 
                      Source=".\Video\1.mpg" 
                      x:Name="r" 
                      Stretch="Fill">
            <MediaElement.LayoutTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <RotateTransform Angle="-90"/>
                </TransformGroup>
            </MediaElement.LayoutTransform>
        </MediaElement>
        <MediaElement Width="600" Height="1200" 
                      Source=".\Video\2.wmv" 
                      x:Name="g" 
                      Stretch="Fill">
            <MediaElement.LayoutTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <RotateTransform Angle="-90"/>
                </TransformGroup>
            </MediaElement.LayoutTransform>
        </MediaElement>
        <MediaElement Width="600" Height="1200" 
                      Source=".\Video\3.mpg" 
                      x:Name="b" 
                      Stretch="Fill">
            <MediaElement.LayoutTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <RotateTransform Angle="-90"/>
                </TransformGroup>
            </MediaElement.LayoutTransform>
        </MediaElement>
    </Canvas>
</Window>


Mate... You are an absolute legend! Big Grin | :-D

Graeme

modified on Wednesday, November 19, 2008 7:47 AM

QuestionWPF Binding to an attached property from a DataTemplate [modified] Pin
Mark Salsbery14-Nov-08 13:13
Mark Salsbery14-Nov-08 13:13 
AnswerRe: WPF Binding to an attached property from a DataTemplate Pin
Timmy Kokke14-Nov-08 13:46
Timmy Kokke14-Nov-08 13:46 
GeneralRe: WPF Binding to an attached property from a DataTemplate Pin
Mark Salsbery14-Nov-08 14:20
Mark Salsbery14-Nov-08 14:20 
GeneralRe: WPF Binding to an attached property from a DataTemplate Pin
Timmy Kokke14-Nov-08 22:10
Timmy Kokke14-Nov-08 22:10 
GeneralRe: WPF Binding to an attached property from a DataTemplate [modified] Pin
Mark Salsbery15-Nov-08 5:36
Mark Salsbery15-Nov-08 5:36 
AnswerRe: WPF Binding to an attached property from a DataTemplate Pin
Gideon Engelberth14-Nov-08 16:48
Gideon Engelberth14-Nov-08 16:48 
GeneralRe: WPF Binding to an attached property from a DataTemplate Pin
Mark Salsbery15-Nov-08 6:40
Mark Salsbery15-Nov-08 6:40 
QuestionSWF Player in WPF Pin
ctrlnick14-Nov-08 10:25
ctrlnick14-Nov-08 10:25 
AnswerRe: SWF Player in WPF Pin
Pete O'Hanlon14-Nov-08 10:32
mvePete O'Hanlon14-Nov-08 10:32 
GeneralRe: SWF Player in WPF Pin
ctrlnick14-Nov-08 10:54
ctrlnick14-Nov-08 10:54 
QuestionDo we have a something like MASK effect (in SwishMax or Flash) in WPF? Pin
Mohammad Dayyan14-Nov-08 10:14
Mohammad Dayyan14-Nov-08 10:14 
AnswerRe: Do we have sth like MASK effect (in SwishMax or Flash) in WPF? Pin
Pete O'Hanlon14-Nov-08 10:43
mvePete O'Hanlon14-Nov-08 10:43 
GeneralRe: Do we have sth like MASK effect (in SwishMax or Flash) in WPF? Pin
Mohammad Dayyan14-Nov-08 10:48
Mohammad Dayyan14-Nov-08 10:48 
GeneralRe: Do we have sth like MASK effect (in SwishMax or Flash) in WPF? Pin
Pete O'Hanlon14-Nov-08 11:04
mvePete O'Hanlon14-Nov-08 11:04 
GeneralRe: Do we have sth like MASK effect (in SwishMax or Flash) in WPF? Pin
Mohammad Dayyan14-Nov-08 11:08
Mohammad Dayyan14-Nov-08 11:08 
GeneralRe: Do we have sth like MASK effect (in SwishMax or Flash) in WPF? Pin
Pete O'Hanlon14-Nov-08 11:10
mvePete O'Hanlon14-Nov-08 11:10 
JokeRe: Do we have sth like MASK effect (in SwishMax or Flash) in WPF? Pin
Mark Salsbery15-Nov-08 7:02
Mark Salsbery15-Nov-08 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.