All about Programming and Sourcecode

All posts in Foundation

Below is a sample code snippet that demonstrates how to resize an Bitmap Image in C#. How to Resize an Bitmap Image in C# ? void ACBtn_Click(object sender, EventArgs e) { Image InputImage = Image.FromFile(@”D:\Abundantcode\Rajnikanth.bmp”); using(var resizedBmp = new Bitmap(InputImage, new Size(100, 100))) { resizedBmp.Save(@”D:\Abundantcode\Rajnikanth_New.bmp”, InputImage.RawFormat); } }

In one of the previous article , we demonstrated on how to download Web Content asynchronously in C# . This article will demonstrate how to do it asynchronously. How to Download Web Content asynchronously in C# ? using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Net; namespace Read more

Below is a sample code snippet that demonstrates how to delete a file in C# . How to Delete a File in C# ? using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.IO; namespace AbundantcodeConsoleApp { internal class Program { private static void Main(string[] args) { string Read more

Below is a sample code snippet that demonstrates how to read from a text file in C# . How to Read from a Text File in C# ? using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.IO; namespace AbundantcodeConsoleApp { internal class Program { private static void Read more

Below is a sample code snippet that demonstrates how to write a string to a text file in C# . How to Write a string to a Text File in C# ? using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.IO; namespace AbundantcodeConsoleApp { internal class Program Read more