Pages

8/07/2012

Browse images from directory and Convert Colored Images to Gray Scale c#

Recently i have to convert colored bitmap/jpeg images to gray scale in my project. I found many solutions on Google but found one useful. This tutorial will help you browse images from directory and convert them to gray scale one by one. First of all create a solution and windows form project in visual studio. Then drag two picture boxes from toolbox on the left on to the form and two buttons also. Name picture boxes pctColoredImage and pctGrayScale. Also the two buttons btnNext and btnPrevious and show text on them Next and Previous respectively. Double click on each picture boxes and buttons to create their events. Now create List<string> FilesFromFolder = null; a global variable and in constructor initialize it like this FilesFromFolder = new List<string>(); Now...


6/01/2012

HP g6 weak wireless issue resolved

I recently bought HP g6 i5 and very first day got issue of weak wireless signals. First i thought its  just the router issue but it kept as it is for week or so.  Got frustrated with it and started googling it. Read some different posts so gonna conclude them. One post said remove the back cover and check if wireless antennas are not connected to the wireless card. This may be one of the issue. It resolved the issue of the person who posted it. Another said that just update the wlan broadcomm drivers. It can be done by going into the device manager and clicking expand on the network adapters. Find wireless there and right click on it and update drivers. It works on windows 7. You can also download the drivers from hp site.  Both are the solutions. I followed the second...


4/10/2012

Use Morse Code to write text in Desktop Apps

First of all create a windows form project in visual studio and drag three buttons on the form and a textbox(you can add further controls but these are minimum controls needed). Declare following global variables.\ private string inputString = "";        private int count = 0;        private static readonly Dictionary<string, string> mapping = new Dictionary<string, string>() {        {  ".-","a" },        {  "-...","b" },        {  "-.-.", "c"},        {  "-..","d" },        {  "." ,"e"},       ...


Pages 81234 »
Twitter Delicious Facebook Digg Favorites More