I will also show the internal data structure of these two different techniques using C language. As a result, both teachers and students can understand the actual use of these techniques in an application software. Vector Graphics Vector Graphics is an image created using a series of lines which has the start position and direction. There are two major reasons for using this technique - flexibility and memory saving. Computer programmers always consider those two things whenever they apply this technique.
Flexibility means that people can interact easily with created objects using peripheral device.
Once the objects are created by user, they can be selected, resized, moved, reordered at any times. It is widely used in word processor, graphics editor, publishing and presentation software. This is the pseudo code how mouse works with the object on the screen. Otherwise change the previously selected object with newly selected one. We can easily get both starting and ending position using mouse.