资源简介
用Silverlight截取摄像头视频截图并不是什么难事。本文的范例代码详细介绍了视频截取和两种保存截图的方式: 1.使用开源的FJCore.dll 把视频流转换成Jpeg 格式,保存到本地 2.选择使用把图片转换成Base64String,使用WCF,保存在Sqlserver数据库中。使用Base64String的方法,在数据库表里建一个varchar的字段就可以保存图片数据了。 3. 通过把图片流转换成Base64String保存到服务器数据库:
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace Dengfengsoft_SilverlightWebCamExample
{
public partial class App : Application
{
public App()
{
this.Startup += this.Application_Startup;
this.Exit += this.Application_Exit;
this.UnhandledException += this.Application_UnhandledException;
InitializeComponent();
}
private void Application_Startup(object sender StartupEventArgs e)
{
this.RootVisual = new MainPage();
}
private void Application_Exit(object sender EventArgs e)
{
}
private void Application_UnhandledException(object sender ApplicationUnhan
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-01-12 22:36 Dengfengsoft_SilverlightWebCamExample\
目录 0 2012-01-12 22:58 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\
文件 1001 2012-01-12 22:36 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample.sln
文件 27136 2012-01-12 23:07 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample.suo
目录 0 2012-01-12 22:36 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample.Web\
文件 320 2012-01-12 22:36 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\App.xaml
文件 2377 2012-01-12 22:36 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\App.xaml.cs
文件 911 2012-01-12 22:59 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\ba
目录 0 2012-01-12 22:36 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Bin\
目录 0 2012-01-12 23:07 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Bin\Debug\
文件 517 2012-01-12 23:07 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Bin\Debug\AppManifest.xaml
文件 16384 2012-01-12 23:06 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Bin\Debug\Dengfengsoft_SilverlightWebCamExample.dll
文件 30208 2012-01-12 23:06 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Bin\Debug\Dengfengsoft_SilverlightWebCamExample.pdb
文件 31610 2012-01-12 23:07 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Bin\Debug\Dengfengsoft_SilverlightWebCamExample.xap
文件 2898 2012-01-12 23:07 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Bin\Debug\Dengfengsoft_SilverlightWebCamExampleTestPage.html
文件 50688 2009-11-21 20:56 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Bin\Debug\FJ.Core.dll
文件 130560 2009-11-21 20:56 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Bin\Debug\FJ.Core.pdb
文件 5070 2012-01-12 22:59 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample.csproj
文件 1142 2012-01-12 22:59 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample.csproj.user
目录 0 2012-01-12 22:41 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\JpegEncoder\
文件 50688 2009-11-21 20:56 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\JpegEncoder\FJ.Core.dll
文件 130560 2009-11-21 20:56 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\JpegEncoder\FJ.Core.pdb
文件 3059 2012-01-12 22:55 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\MainPage.xaml
文件 6565 2012-01-12 23:06 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\MainPage.xaml.cs
目录 0 2012-01-12 22:36 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\obj\
目录 0 2012-01-12 23:07 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\obj\Debug\
文件 1961 2012-01-12 22:36 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\obj\Debug\App.g.cs
文件 1961 2012-01-12 22:36 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\obj\Debug\App.g.i.cs
文件 2723 2012-01-12 23:07 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\obj\Debug\Dengfengsoft_SilverlightWebCamExample.csproj.FileListAbsolute.txt
文件 16384 2012-01-12 23:06 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\obj\Debug\Dengfengsoft_SilverlightWebCamExample.dll
文件 3637 2012-01-12 23:06 Dengfengsoft_SilverlightWebCamExample\Dengfengsoft_SilverlightWebCamExample\obj\Debug\Dengfengsoft_SilverlightWebCamExample.g.resources
............此处省略10个文件信息
- 上一篇:音频切分工具
- 下一篇:Protues软件中仿真的串口扩展芯片8250A
相关资源
- 《多粒度知识获取与不确定性度量》
- 华成英模电课件.zip
- 70d0cd041f738f12db575d3b46e97582.pdf
- OfficeTabEnterprise13.1.zip
- wxu998.rar
- PowerDesigner16.5汉化文件.rar
- jsgis.zip
- PinyinIME(关键代码写了注释).zip
- 锁相环设计、仿真与应用第5版中.pd
- novelOnLine.zip
- SingleSensorImagingMethodsandApplicationsforDi
- ControlSystemsEngineering7th(NormanS.Nise)
- ModernControlSystems13th(RichardC.Dorf).ra
- VectorMagic_1.15pojie.rar
- complexityoflattice__problems.pdf
- xnby_883749.zip
- TOGAF培训讲义-周金根.pdf
- OS12.2驱动,手机虚拟定位软件,Loca
- 大话系列-大话数据结构(pdf高清版)
- 梁宁产品经理思维30讲.pdf
- CHI760E辰华电化学工作站软件最新版
- SAPERPHCM葵花宝典系列之配置指南(电
- TangZhuoLin.rar
- Day3_NOI.zip
- 图解HTTP.pdf
- VisionProStandardv7.2(2Day).zip
- ElevatorSimulation.zip
- 14002454IPC-A-610DChinese(L).pdf
- SoftwareEngineering.pdf
- linfanrong_10164999.rar
评论
共有 条评论