As per the requirement from one of my client, an image should be generated dynamically by taking the necessary information from the user. When I went on a search, I came to know that, my crazy DotNet framework provided my two namespaces System.Drawing and System.Drawing.Imaging. It’s enough to learn three classes from these namespaces - Bitmap and Graphics for generating an image dynamically related to System.Drawing Namespace and FileFormat class is for saving the created image in different file formats and is related to System.Drawing.Imaging Namespace. Bitmap class is useful to generate a new image and to save it different file formats. Graphics class is useful to design the image using lines, curves, rectangles, text etc., with colors and everything. FileFormat class is useful to save the file in a particular or in different formats like Jpeg, Png, Bmp etc. The default format is png. Now lets jump into code. After
Popular posts from this blog
INTRODUCTION :- One of my clients required a desk top application that maintains contacts in a database and sends emails to the contacts in the database. They have not provided the credentials and the details of mail server. So I created an application that uses outlook for sending mails by using the credentials preconfigured by the outlook account. This application can send email for multiple email accounts and with or without attachments. FEATURES :- · Sending mails to multiple email accounts at a time. · Using configured outlook credentials. · No need of configuring credentials every time. · Sending mails with attachments. CODE EXPLANATION :- Create new project and add references as follows. These files can be downloaded or can be achieved by the sample project which is attached with this article. Interop.Microsoft.Office.Core.dll Interop.Outlook.dll Let’s go to code part. Import the fo
Data tables are the best data source for many controls in .net environment. But manipulating data with data tables i.e., when considering large amount of data its a wind up process. The process will be very slow when we compare the same manipulation with List. For an analysis I iterated 1500 records with some login with data tables and list. The analysis report is as below With Data Table 1500 Rows Data Table - Processing Time - 2 minutes 44 seconds With List 1500 Items List - Processing Time - 32 seconds Conclusion: For manipulating large amount of data, its better to choose List rather than Data Table.