标签: scatterview

MPI_Scatterv中的displs参数是什么?

displs从参数MPI_Scatterv()函数被认为是一个“整数阵列(的长度组大小)。加入指定位移(相对于sendbuf从中取传出数据处理I”。比方说,然后我有sendcounts争论

int sendcounts[7] = {3, 3, 3, 3, 4, 4, 4};
Run Code Online (Sandbox Code Playgroud)

我对此进行推理的方式是,displs数组应始终以0开头,因为第一个条目的位移相对于sendbuf,所以在上面的示例中displs应类似于:

int displs[7] = {0, 3, 6, 9, 13, 17, 21};
Run Code Online (Sandbox Code Playgroud)

那是对的吗?我知道这是一个微不足道的问题,但是由于某种原因,网络根本没有帮助。那里没有很好的例子,因此是我的问题。

c c++ mpi scatterview

7
推荐指数
1
解决办法
1499
查看次数

包含曲面交互元素的ScatterViewItems

这是交互元素中交互元素的古老问题,但我希望ScatterViewItem包含其他表面交互元素,如SurfaceButton或SurfaceCheckBox.我已经拥有了所有元素,他们对点击等做出反应.问题是,一旦我点击了一个不包含控件的区域,我只能得到正常的ScatterView行为.

即使联系人位于SurfaceButton或SurfaceCheckbox上,是否有优雅的解决方案允许拖动?

例如

<s:ScatterView >    
    <Grid Width="200" Height="200">
        <s:SurfaceButton />
    </Grid>
</s:ScatterView>
Run Code Online (Sandbox Code Playgroud)

wpf scatterview pixelsense

5
推荐指数
1
解决办法
698
查看次数

如何在WPF中制作UIElement的屏幕截图

我在创建散点图的屏幕截图时遇到问题.我的屏幕截图始终包含黑框.

这是我的XAML代码:

<s:SurfaceWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="MakeScreenshots.SurfaceWindow1"
    Title="MakeScreenshots" Width="1000" Height="700"
    >
  <s:SurfaceWindow.Resources>
    <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
  </s:SurfaceWindow.Resources>

  <Grid x:Name="GlobalGrid" Background="{StaticResource WindowBackground}" Width="1000" Height="700" >

    <s:ScatterView x:Name="ScatterViewScreenShot" Margin="108,89,176,73" Width="700" Height="500">
        <s:ScatterView.Background>
            <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ActiveCaptionColorKey}}"/>
        </s:ScatterView.Background>
        <s:ScatterViewItem Margin="0,-26.953,-130.946,-23.047" Content="ScatterViewItem 3" HorizontalAlignment="Right" Width="125.826"/>
        <s:ScatterViewItem Margin="0,0,-490.513,-151.256" HorizontalAlignment="Right" Width="125.77" Height="60.427" VerticalAlignment="Bottom" Content="ScatterViewItem 2"/>
        <s:ScatterViewItem Content="ScatterViewItem 1" Margin="-331.43,0,0,-129.589" HorizontalAlignment="Left" Width="177.949" Height="67.905" VerticalAlignment="Bottom"/>
    </s:ScatterView>
    <Button x:Name="MakeScreenShotButton" Click="MakeScreenShotButton_Click" Content="MakeScreenShot" Margin="267,17,343,0" VerticalAlignment="Top" Height="38.96"/>
        <Button Content="MakeScreenShotButton2" Height="39" HorizontalAlignment="Left" Margin="116,614,0,0" Name="button1" VerticalAlignment="Top" Width="301" Click="MakeScreenShotButton2_Click" />
        <Button …
Run Code Online (Sandbox Code Playgroud)

wpf screenshot scatterview uielement

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

scatterview ×3

wpf ×2

c ×1

c++ ×1

mpi ×1

pixelsense ×1

screenshot ×1

uielement ×1