New year – new blog or how to migrate Community Server to any other engine, supports XML-RPC

יום חמישי, ינואר 1, 2009

Please update your bookmarks, because the new url of this blog is http://khason.net/ (you have not update RSS feeds, it will be done automatically). Why I did it? Why I decided to go to “stand-alone”… Well. there are some reasons. Generally, I do not want to explain all those here, but trust me, there are some. The main reason is, that there is no responsible person in charge for this blog platform in Microsoft Israel. This why, if your blog is popular and you have a respect to your blog visitors, you cannot host it here… Take a look...

Capturing and streaming sound by using DirectSound with C#

יום חמישי, דצמבר 25, 2008

I already wrote a little about managed way to use DirectX DirectSound. Today we’ll speak about how to get sound from your microphone or any other DirectSound capturing device (such as FM receiver) and stream it out to your PC speakers and any other DirectSound Output device. So, let’s start creating our first echo service by using managed DirectX. First of all we should decide what Wave format we want to use for capturing and recording. So,...

Programming for Windows 7

יום ראשון, נובמבר 9, 2008

Well, Windows 7 is going to be released by the end of next year. This is great news, because it seemed, that Microsoft finally understand how to get the best of Windows Vista and make it to work not only on monster machines. It even works on new brandy my wife's pinky machine. And if it works there and my wife is happy with it, this OS going to be very impressive. But from the other...

HLSL (Pixel shader) effects tutorial

יום שלישי, יוני 17, 2008

Recently, I already wrote about PixelShader effects, introduced in .NET framework 3.5 SP1 (WPF). However it looks like for most people this syntax is still hard to understand. Today we’ll try to lean it more. In order to do this, I wrote small program, that helps you to write and debug pixel shader effects quickly. This how it looks like Hit Open to load image, Write your code and hit Execute to compile and apply bitmap dx...
13 תגובות

Brightness and contrast manipulation in WPF 3.5 SP1

יום שישי, מאי 23, 2008

While being in flight, I had to learn new features, introduced in .NET 3.5 SP1. So, let’s start from image manipulation. I want to perform contrast and brightness manipulation in GPU over displayed image. In order to begin, you should download and install .NET 3.5 SP1 and Visual Studio 2008 SP1. Meanwhile (it’s about 500 MB of download) we’ll learn how to write custom shader effect. In order to build custom Shader Effer, we have to use...
11 תגובות

Webcam control with WPF or how to create high framerate player with DirectShow by using InteropBitmap in WPF application

יום רביעי, אפריל 23, 2008

Did you ever see, that MediaElement “eats” about 30% of CPU while playing movie in WPF? Did you thought, that you  can display live camera capture in WPF with 60 fps full screen (I have really high resolution 1920x1200) and 2% of  CPU? You did not? Let’s see how it can be done. Today we’ll create simple WebCam player control that can show you live video capturing with high frame rate. In order to do it, we’ll use DirectShow, WPF and...
29 תגובות