
以下為PAPAYA電腦教室的投影片教學,有興趣的人可以去訂閱學習。目前列出幾個還蠻厲害的特效功能,剩下等之後有機會再去研究,學完幾個招式就感覺功力大增。
如何設計一個簡單且質感指數破表的時間軸?
如何製作一個讓老闆跪著看的沉浸式簡報?


1: this.Invoke((MethodInvoker)delegate
2: {3: int width, height, channel, step;
4: unsafe
5: {6: byte* srcBmpData = cVideo.GetSourceImage(&width, &height, &channel, &step);
7: Result_lbl.Text = $"{width},{height},{channel},{step}";
8: Bitmap bmp = new Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
9: var data = bmp.LockBits(new Rectangle(0, 0, width, height),
10: System.Drawing.Imaging.ImageLockMode.WriteOnly, 11: System.Drawing.Imaging.PixelFormat.Format32bppRgb);12: byte* dstBmpData = (byte*)data.Scan0.ToPointer();
13: int hei = height;
14: int wid = width;
15: int stepsize = step;
16: 17: 18: for (int y = 0; y < height; y++)
19: {20: for (int x = 0; x < width; x++)
21: { 22: dstBmpData[y * width * 4 + 4 * x] = srcBmpData[y * step + channel * x]; 23: dstBmpData[y * width * 4 + 4 * x + 1] = srcBmpData[y * step + channel * x + 1]; 24: dstBmpData[y * width * 4 + 4 * x + 2] = srcBmpData[y * step + channel * x + 2]; 25: } 26: } 27: bmp.UnlockBits(data); 28: pictureBox1.Image = bmp; 29: }30: });

1: <Window x:Class="WpfDispatcherApp.MainWindow"
2: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4: xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5: xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6: xmlns:local="clr-namespace:WpfDispatcherApp"
7: mc:Ignorable="d"
8: Title="MainWindow" Height="137" Width="554">
9: <UniformGrid Rows="3" Columns="2">
10: <Label Content="Input a number:" Height="28" HorizontalAlignment="Center" Name="label1" VerticalAlignment="Center" />
11: <TextBox Height="23" HorizontalAlignment="Center" Name="textBox1" VerticalAlignment="Center" Width="100" Text="1000000000"/>
12: 13: <Label Content="Result:" Height="28" HorizontalAlignment="Center" Name="label2" VerticalAlignment="Center" />
14: <TextBox Height="23" HorizontalAlignment="Center" Name="textBox2" VerticalAlignment="Center" Width="100"/>
15: <Button Content="synchronization" Height="23" HorizontalAlignment="Center" Name="button1" VerticalAlignment="Center" Width="100" Click="button1_Click" />
16: <Button Content="asynchronization" Height="23" HorizontalAlignment="Center" Name="button2" VerticalAlignment="Center" Width="100" Click="button2_Click" />
17: </UniformGrid> 18: </Window>
1: <ComboBox Background="Yellow">
2: <ComboBox.Resources> 3: <!-- color of ComboBoxItem -->4: <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="Yellow" />
5: <!-- Mouse over color of ComboBoxItem -->6: <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Red" />
7: </ComboBox.Resources> 8: <ComboBoxItem>One</ComboBoxItem> 9: <ComboBoxItem>Two</ComboBoxItem> 10: <ComboBoxItem>Three</ComboBoxItem> 11: </ComboBox>
1: <Grid> 2: <Grid.RowDefinitions >3: <RowDefinition Height="100" />
4: <RowDefinition /> 5: </Grid.RowDefinitions> 6: <Grid.ColumnDefinitions >7: <ColumnDefinition Width="200" />
8: <ColumnDefinition /> 9: </Grid.ColumnDefinitions> 10: 11: <!--Panel-->12: <Border Grid.Row="0" Grid.Column="0" Background="Blue" Grid.ColumnSpan="2" />
13: <!--<Border Grid.Row="0" Grid.Column="1" Background="LightSalmon" />-->
14: <Border Grid.Row="1" Grid.Column="0" Background="Green" />
15: <Border Grid.Row="1" Grid.Column="1" Background="Red" />
16: </Grid>
1: namespace WpfApp7
2: {3: public class SaySomething
4: {5: public static string English
6: {7: get { return "Hello, how are you today?"; }
8: }9: public static string Chinese
10: {11: get { return "哈囉!今天好嗎?"; }
12: } 13: } 14: }