To view an entire image or a part of image with various attributes, we need to organize image information in a particular manner since existing structure of display f...

Share

Before we begin with what vector graphics and raster graphics are, we must understand a few basic terms:
Pixel : In Computer graphics a pixel, dots, or picture eleme...

Share

In any 2-Dimensional plane if we connect two points (x0, y0) and (x1, y1), we get a line segment. But in the case of computer graphics we can not directly join any t...

Share

Program to draw ellipse in C using graphics.h header file.
graphics.h library is used to include and facilitate graphical operations in program. C graphics using gra...

Share

Given a rectangle, your task to fill this rectangle using flood fill algorithm.
Examples:
Input : rectangle(left = 50, top = 50, right= 100, bottom = 100)
flo...

Share

graphics.h library is used to include and facilitate graphical operations in program. graphics.h functions can be used to draw different shapes, display text in diffe...

Share

rectangle() is used to draw a rectangle. Coordinates of left top and right bottom corner are required to draw the rectangle. left specifies the X-coordinate of top le...

Share

The header file graphics.h contains circle() function which draws a circle with center at (x, y) and given radius.
Syntax :
circle(x, y, radius);
where,
(x, y) is c...

Share

A scaling transformation alters size of an object. In the scaling process, we either compress or expand the dimension of the object.
Scaling operation can be achieved...

Share

Clipping: In computer graphics our screen act as a 2-D coordinate system. it is not necessary that each and every point can be viewed on our viewing pane(i.e. our com...

Share