SlideShare a Scribd company logo
1 of 10
GDI
• GDI provides a layer of abstraction, hiding the
differences between the different video cards.
You simply call the Windows API function to
do the specific task, and internally the GDI
figures out how to get your particular video
card to do whatever it is you want.
• the device-context object (DC) is a very
powerful object and you won’t be surprised to
learn that under GDI all drawing had to be
done through a device context.
• GDI+ to a large extent sits as a layer between
GDI and your application, providing a more
intuitive, inheritance-based object model.
• Although GDI+ is basically a wrapper around
GDI, Microsoft has been able through GDI+ to
provide new features and claims to have
made some performance improvements.
• System.Drawing namespace that encapsulates .NET’s
basic graphics functionality, which is known as GDI+.
• The name GDI+ comes from the original Windows graphics
library, which was called the Graphical Device Interface.
• It is a library of simple 2D graphics designed to draw lines
and shapes, draw text, and display bitmaps. There is no
3D functionality in any of GDI+.
• If you need 3D graphics, you are going to have to consider
using Direct3D.
GDI+ namespaces
• System.Drawing :-Contains most of the
classes, structs, enums, and delegates concerned with the basic functionality of drawing
• System.Drawing.Drawing2D:- Provides most
of the support for advanced 2D and vector
drawing, including anti-aliasing, geometric
transformations, and graphics paths
• System.Drawing.Imaging:- Contains various
classes that assist in the manipulation of
images (bitmaps, GIF files, and so on)
classes

• the .NET base class System.Drawing.Graphics .
Most drawing is done by calling methods on an
instance of Graphics .
• In fact, since the Graphics class is the class that
is responsible for handling most drawing
operations,
• Form1, derived from System.Windows.Form,
which represents the application’s main
window.
• System.Drawing.Pen : A Pen is one of a number
of supporting objects to help with drawing
• PaintEventArgs is a class that is derived from
the EventArgs class normally used to pass in
informa-tion about events.
• Region is a class that represents an area of the
screen that has some complex shape. the
process of initializing a Region instance is itself
quite complex.
• the Control class, from which both Form and
all the various Windows Forms controls
derive, that maintains the information needed
to carry out the conversion.
blending and alpha blending
• Alpha blending is the process of creating a Pen,
Brush, or Image that has attributes that
determine its transparency.
• Blending is the process of drawing a line or filling
a shape with a color that starts out at one end of
the spectrum (range) and ends at the other.
• An example of alpha blending would be creating
an image on the screen.
• An example of blending would be drawing an
ellipse that is filled starting with blue and ending
with red
The top one is the gamma correction for the top image
and the bottom one is the alpha blend for the line.
GDI+
• Alpha blending allows two objects to be visually
blended(merge) together. This is primarily used
for 3D atmospheric and environmental effects.
• It allows such things as "fogging", where an
image is rendered behind another translucent
(clear) image, which creates the effect of looking
though fog or looking down through a pool and
seeing the bottom. It also allows Depth Cueing,
which is the lowering of the intensity of lighting
to make an object appear farther away.

More Related Content

Similar to Gdi

Graphics software
Graphics softwareGraphics software
Graphics software
Mohd Arif
 
Auto cad 2007-tutorial
Auto cad 2007-tutorialAuto cad 2007-tutorial
Auto cad 2007-tutorial
Syed Javeed
 
How to Make a Great Screenshot
How to Make a Great ScreenshotHow to Make a Great Screenshot
How to Make a Great Screenshot
Esri
 
P1 powerpoint presentation
P1 powerpoint presentationP1 powerpoint presentation
P1 powerpoint presentation
AishahBegum
 

Similar to Gdi (20)

AUTO CADD PPT
AUTO CADD PPTAUTO CADD PPT
AUTO CADD PPT
 
Windows programming ppt
Windows programming pptWindows programming ppt
Windows programming ppt
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
Windows programming
Windows programmingWindows programming
Windows programming
 
Rapid2d C++ Windows8
Rapid2d C++ Windows8Rapid2d C++ Windows8
Rapid2d C++ Windows8
 
Firefox OS Graphics inside
Firefox OS Graphics insideFirefox OS Graphics inside
Firefox OS Graphics inside
 
CS 354 Introduction
CS 354 IntroductionCS 354 Introduction
CS 354 Introduction
 
Unit 2
Unit 2Unit 2
Unit 2
 
autocad.pptx
autocad.pptxautocad.pptx
autocad.pptx
 
(2) gui drawing
(2) gui drawing(2) gui drawing
(2) gui drawing
 
W1.pptx
W1.pptxW1.pptx
W1.pptx
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Graphics software
Graphics softwareGraphics software
Graphics software
 
Graphics Standards and Algorithm
Graphics Standards and AlgorithmGraphics Standards and Algorithm
Graphics Standards and Algorithm
 
Auto cad 2007-tutorial
Auto cad 2007-tutorialAuto cad 2007-tutorial
Auto cad 2007-tutorial
 
How to Make a Great Screenshot
How to Make a Great ScreenshotHow to Make a Great Screenshot
How to Make a Great Screenshot
 
Java Graphics
Java GraphicsJava Graphics
Java Graphics
 
Project
ProjectProject
Project
 
C# everywhere: Xamarin and cross platform development
C# everywhere: Xamarin and cross platform developmentC# everywhere: Xamarin and cross platform development
C# everywhere: Xamarin and cross platform development
 
P1 powerpoint presentation
P1 powerpoint presentationP1 powerpoint presentation
P1 powerpoint presentation
 

More from abhay singh (15)

Iso 27001
Iso 27001Iso 27001
Iso 27001
 
Web service
Web serviceWeb service
Web service
 
Unsafe
UnsafeUnsafe
Unsafe
 
Threading
ThreadingThreading
Threading
 
Preprocessor
PreprocessorPreprocessor
Preprocessor
 
Networking and socket
Networking and socketNetworking and socket
Networking and socket
 
Namespace
NamespaceNamespace
Namespace
 
Inheritance
InheritanceInheritance
Inheritance
 
Generic
GenericGeneric
Generic
 
Exception
ExceptionException
Exception
 
Delegate
DelegateDelegate
Delegate
 
Constructor
ConstructorConstructor
Constructor
 
Collection
CollectionCollection
Collection
 
Ado
AdoAdo
Ado
 
Operator overloading
Operator overloadingOperator overloading
Operator overloading
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 

Gdi

  • 1. GDI
  • 2. • GDI provides a layer of abstraction, hiding the differences between the different video cards. You simply call the Windows API function to do the specific task, and internally the GDI figures out how to get your particular video card to do whatever it is you want. • the device-context object (DC) is a very powerful object and you won’t be surprised to learn that under GDI all drawing had to be done through a device context.
  • 3. • GDI+ to a large extent sits as a layer between GDI and your application, providing a more intuitive, inheritance-based object model. • Although GDI+ is basically a wrapper around GDI, Microsoft has been able through GDI+ to provide new features and claims to have made some performance improvements.
  • 4. • System.Drawing namespace that encapsulates .NET’s basic graphics functionality, which is known as GDI+. • The name GDI+ comes from the original Windows graphics library, which was called the Graphical Device Interface. • It is a library of simple 2D graphics designed to draw lines and shapes, draw text, and display bitmaps. There is no 3D functionality in any of GDI+. • If you need 3D graphics, you are going to have to consider using Direct3D.
  • 5. GDI+ namespaces • System.Drawing :-Contains most of the classes, structs, enums, and delegates concerned with the basic functionality of drawing • System.Drawing.Drawing2D:- Provides most of the support for advanced 2D and vector drawing, including anti-aliasing, geometric transformations, and graphics paths • System.Drawing.Imaging:- Contains various classes that assist in the manipulation of images (bitmaps, GIF files, and so on)
  • 6. classes • the .NET base class System.Drawing.Graphics . Most drawing is done by calling methods on an instance of Graphics . • In fact, since the Graphics class is the class that is responsible for handling most drawing operations, • Form1, derived from System.Windows.Form, which represents the application’s main window. • System.Drawing.Pen : A Pen is one of a number of supporting objects to help with drawing
  • 7. • PaintEventArgs is a class that is derived from the EventArgs class normally used to pass in informa-tion about events. • Region is a class that represents an area of the screen that has some complex shape. the process of initializing a Region instance is itself quite complex. • the Control class, from which both Form and all the various Windows Forms controls derive, that maintains the information needed to carry out the conversion.
  • 8. blending and alpha blending • Alpha blending is the process of creating a Pen, Brush, or Image that has attributes that determine its transparency. • Blending is the process of drawing a line or filling a shape with a color that starts out at one end of the spectrum (range) and ends at the other. • An example of alpha blending would be creating an image on the screen. • An example of blending would be drawing an ellipse that is filled starting with blue and ending with red
  • 9. The top one is the gamma correction for the top image and the bottom one is the alpha blend for the line.
  • 10. GDI+ • Alpha blending allows two objects to be visually blended(merge) together. This is primarily used for 3D atmospheric and environmental effects. • It allows such things as "fogging", where an image is rendered behind another translucent (clear) image, which creates the effect of looking though fog or looking down through a pool and seeing the bottom. It also allows Depth Cueing, which is the lowering of the intensity of lighting to make an object appear farther away.