C#notes From Bookmarks

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View C#notes From Bookmarks as PDF for free.

More details

  • Words: 208
  • Pages: 1
Console.writeLine ("Hello C#"); } } //end of the main

Line Number wise Analysis Line - 1: - It is called as the namespace. Simply speaking, a namespace is a collection of .NET Classes similar to packages in Java. Line - 2: - It is the class declaration similar to Java & C++ Line - 3: - This is the main method which is required in all C# applications. Line - 4: - This code will print Hello C# onto the Console. Here Console is the class belonging to System namespace and writeLine is the static method belonging to Console Class. Line - 5:- The Opening and Closing curly races are similar to that of C++/Java. this.Paint+=new PaintEventHandler(Text_bru); } public void Text_bru(object sender,PaintEventArgs e) { Graphics g = e.Graphics; g.FillEllipse(bgbrush,50,50,500,300); } public static void Main() { Application.Run(new Texturedbru()); } // End of class } Working with Images You can easily insert images by following the procedure given below 1) Create an object of Bitmap class as shown below: Image img = new Bitmap("image1.bmp"); 2) Apply the above object in DrawImage() method g.DrawImage(img,20,20,100,90); Conclusion In this article, I've examined two core namespaces System.Drawing and System.Drawing.Drawing2D by showing the usage of various methods and properties with the help of numerous listings.

Related Documents

C#notes From Bookmarks
November 2019 17
Bookmarks
October 2019 36
Bookmarks
October 2019 33
Bookmarks
December 2019 31
Coraline Bookmarks
December 2019 17
Bookmarks 2009
April 2020 13