0% found this document useful (0 votes)
102 views

9/10/2013 Seminar Material 1: Author: Nirmal Kumar - A Reviewer:Rohini

The document discusses graphics concepts in .NET, including pixels, bitmaps, brushes, pens, fonts, and the Graphics class. Pixels are the smallest addressable elements in a display, defined by coordinates and bits per pixel. Bitmaps store pixel data for images and can be constructed and manipulated. Brushes fill shapes, pens draw lines and curves, and fonts define text formatting. The Graphics class provides methods for drawing to a surface using objects like brushes, pens, fonts and bitmaps.

Uploaded by

Vaibhav Kaushal
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views

9/10/2013 Seminar Material 1: Author: Nirmal Kumar - A Reviewer:Rohini

The document discusses graphics concepts in .NET, including pixels, bitmaps, brushes, pens, fonts, and the Graphics class. Pixels are the smallest addressable elements in a display, defined by coordinates and bits per pixel. Bitmaps store pixel data for images and can be constructed and manipulated. Brushes fill shapes, pens draw lines and curves, and fonts define text formatting. The Graphics class provides methods for drawing to a surface using objects like brushes, pens, fonts and bitmaps.

Uploaded by

Vaibhav Kaushal
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 19

GRAPHICS.

NET

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

PIXEL:
It is a smallest addressable element in a display device Address of the pixel depends on the co-ordinates PPI BPP

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

8 bits per pixel

24 bits per pixel

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

Graphics.net
The Graphics class provides methods for drawing to the display device Graphics in .NET achieved by using some Namespace ** System.Drawing ** System.Drawing.Drawing2D ** System.Drawing.Printing ** System.Drawing.Text
Author: Nirmal Kumar . A Reviewer:Rohini

9/10/2013

Seminar Material

System.Drawing
The System.Drawing namespace provides access to GDI and basic graphics functionality Some of the most important classes are Bitmap Brush Font Graphics Pen
Author: Nirmal Kumar . A Reviewer:Rohini

9/10/2013

Seminar Material

BITMAP
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes

A Bitmap is an object used to work with images defined by pixel data

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

Constructors
BitMap(image) BitMap(image, size) BitMap(int32, int32) BitMap(image, int32, int32)

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

Properties
Height Width Size

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

Methods
Clone() Clone(rectangle, pixelFormat) GetPixel() Save(string) Save(string, imageFormat)
Author: Nirmal Kumar . A Reviewer:Rohini

9/10/2013

Seminar Material

BRUSHES
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, polygons, and paths

Properties
All Colors
Author: Nirmal Kumar . A Reviewer:Rohini

9/10/2013

Seminar Material

10

PEN
Defines an object used to draw lines and curves, this class cannot be inherited

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

11

Constructors
Pen(Brush) Pen(Color) Pen(Brush, Single)

Properties
Brush Thickness
Author: Nirmal Kumar . A Reviewer:Rohini

9/10/2013

Seminar Material

12

Constructors
Pen(Brush) Pen(Color) Pen(Brush, Single)

Properties
Brush Thickness
Author: Nirmal Kumar . A Reviewer:Rohini

9/10/2013

Seminar Material

13

FONT
Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

14

Constructors
Font(Font, FontStyle) Font(FontFamily, Single) Font(FontFamily, Single, FontStyle)

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

15

Properties
Bold Italic FontFamily Size Underline
Author: Nirmal Kumar . A Reviewer:Rohini

9/10/2013

Seminar Material

16

GRAPHICS
Encapsulates a GDI + drawing surface. This class cannot be inherited

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

17

Methods
DrawLine(), DrawRectangle(), DrawEllipse(), DrawArc(), DrawPolygon(), DrawCurve() DrawIcon(), DrawImage()
Reviewer:Rohini

Author: Nirmal Kumar . A

9/10/2013

Seminar Material

18

THANK YOU

Author: Nirmal Kumar . A

Reviewer:Rohini

9/10/2013

Seminar Material

19

You might also like