Graphics and File Handling

| Posted in | Posted on

Graphics handling and file handling both of which have changed since VB6. In VB6 and before, for example, graphics support was spread throughout, and you could use the graphics methods of forms and picture boxes as needed. Now, as with java, the graphics capability has been lumped together into huge classes.
GRAPHICS HANDLING

The graphics handling in Visual Basic.NET is based on GDI+ (GDI stands for Graphics Device Interface). A graphics device interface such as GDI+ allows you to display graphics on a screen –or a printer without having to handle the details of a specific display device.
GDI+ Support these categories:
2D vector graphics
Imaging
Typography
2D VECTOR GARAPHICS
Vector graphics are all about drawing “primitives” shapes such as lines, curves, and other similar figures. According to the physics classes, vectors are line segments that have a both length and direction, and in graphics, we can build more complicated figures, such as rectangles, using these line segments.
GDI+ also supports a pen class that specifies just how we draw figures. We can customize pens, by specifying line color, line width, and line style.
Similarly, GDI+ supports a Brush class that you can use to fill the figures you’ve drawn in, as when you want to fill a rectangle or polygon with color. The Brush class is an abstract class, instead of using directly, you use one of the classes derived from it.
· Hutch Brush
· Linear Gradient Brush
· Path Gradient Brush
· Solid Brush
· Texture Brush
IMAGING
Some kind of figures for example we see in digital photographs or even icons with vector graphics-we can do it, but assembling such images form lines and curves is not be possible, that why we can store those kinds of images as bitmaps, which are simple arrays of points corresponding pixels on the screen.
Handling and working with such bitmaps is actually more complex than simply working vector graphics, so GDI+ supports the Bitmap class, with all kinds of built-in methods to display and handle images.

click here to download more information

Comments (0)

Post a Comment