Miracastを介して外部モニターに画像(コアラ)のみを表示します。ペンギンは、プレゼンテーションアプリのように自分自身のプレビューとしてのみ使用されます。ScrollViewerと内部画像のみがMiracastに表示される可能性はありますか?
ここに私のXAML:
<Page
x:Class="App6.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App6"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" Width="335">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Margin="-410,0,-195,65">
<ScrollViewer x:Name="myScrollViewer" HorizontalAlignment="Left" Height="485" Margin="350,45,0,0" VerticalAlignment="Top" Width="565">
<Image x:Name="myImage" Height="483" Width="570" Source="Assets/Koala.jpg" Stretch="UniformToFill"/>
</ScrollViewer>
<Image x:Name="nextImage" HorizontalAlignment="Left" Height="160" Margin="55,45,0,0" VerticalAlignment="Top" Width="205" Source="Assets/Penguins.jpg"/>
</Grid>
ご協力いただきありがとうございます!
ScrollViewerと内部画像のみがMiracastに表示される可能性はありますか?
はい。BasicMediaCastingサンプルのシナリオ3を確認できます。このサンプルでは、Miracastでビデオをレンダリングします。Miracastで画像をレンダリングすることもできます。次のように、画像のCastingSourceClassオブジェクトをRequestStartCastingAsync
メソッドに渡す必要があります。
await connection.RequestStartCastingAsync(img.GetAsCastingSource());
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加