- Image is an abstract class.
- Image class uses static methods to create objects to/from image files.
- Bitmap class inherits from Image class and is used for still images.
- MetaFile class also inherits from Image class and is used for Animated images.
- Graphics class is still more complex than Bitmap class. We can always use Graphics.FromImage( ) method to represent a Bitmap as a Graphics object and use Graphics methods over it.
- To save images to a file, use Bitmap.Save( ) method.
- ImageFormat enum specifies supported image formats (BMP, GIF, JPEG, TIFF, etc) for saving images.
- SystemIcons class exposes standard windows icons (of size 40 x 40) as properties.
Showing posts with label Graphics. Show all posts
Showing posts with label Graphics. Show all posts
Thursday, July 9, 2009
Chapter 6-Lesson 2
Sunday, July 5, 2009
Chapter 6-Lesson 1
- Brush is an abstract class. Brushes is a sealed class.
- ColorConverter and ColorTranslator are used to convert colour value from one format to another.
- Graphics is a sealed class.
- Pen (and related) classes are used to draw shapes and Brush (and related classes) are used to fill regions with colours.
- All classes suffixed with Converter are accessed through TypeDescriptor.
- Color, Rectangle, Point and Size are structures and not classes.
- Color names in Color structure are actually properties inside the structure.
- DrawString( ) method of the Graphics class may be used to draw a string using a specified Brush and Font objects.
- By default Pen class draws solid lines
- Usually System.Drawing.Drawing2D namespace is required for Graphics programming.
- LineCap enumeration defines possible values to set edges of a line.
- Draw methods usuallu require a Pen type object and Fill methods usually require a Brush type object.
- Brush is an abstract class. Use one the childrens instead.
Subscribe to:
Posts (Atom)