05 2011 档案
摘要:代码如下: public static Image BytesToImage(this byte[] bytes) { Image image = null; if (bytes != null) { using (MemoryStream sm=new MemoryStream(bytes)) { image = Image.FromStream(sm); } } return image; }...
阅读全文
摘要:用.NET 自带的 ImageAnimator类来播放GIF图像 1. 注册动画事件ImageAnimator.Animate(animatedImage, new EventHandler(this.OnFrameChanged)); 2. 在OnFrameChanged事件中调用this.Invalidate(); 3. 在OnPaint中绘当前帧ImageAnimator.UpdateFra...
阅读全文
摘要:sapi.dll: %windir%\System32\Speech\Common using SpeechLib;SpVoice voice = new SpVoiceClass(); voice.Speak(text, SpeechVoiceSpeakFlags.SVSFDefault);
阅读全文

浙公网安备 33010602011771号