Use the outline method to plot font boundaries, Computer Graphics

Assignment Help:

1. Use the outline method to plot the following font boundaries (style should remain the same). Implement your method in C language. 

 

124_Use the outline method to plot font boundaries.png

ANswer: Here letter G is produced using linear segments for outline method.  You may also use Bezier curves of higher degree to approximate the outline of the character. The outline will be drawn using the code given here. For filling the interior, you need to employ one of the fill area methods.   Vertices of the line segments are given as follows. 

GLint vt[][2]={{315,245}, { 315,195}, {316,190},{333,183},

{ 251,183}, {263,186}, { 270, 190},{272,195}, {272,225}, {

253, 238}, {242,236}, {235,229}, {231,219}, {227,198}, {

227,169}, { 228,152}, {233,133}, {242,124}, {248,120}, {

253,120}, {269,119}, { 273,121}, { 280,126}, {292,134}, {

299,141}, {305,149}, {312,162}, {312,111}, {307,110}, {307,

120}, {304, 130}, {301, 133}, {298, 131}, { 289, 125},

{279, 120}, {266, 113}, {251, 109}, {239, 110},{229,110},

{219,114}, {208,120}, {196,129}, {190,138}, {185,148},

{181, 158}, {180,172},{180,184}, {180,196}, {184, 203},

{189, 214}, {198, 226}, {211, 235}, {220,242}, {230,245},

{245,247}, {260, 247}, {271, 241}, {284, 236}, {293, 231},

{299, 231}, {306, 235}, {315,245}}; 

The code uses simple line loop to produce the character.   

void lineG(void)

{glBegin(GL_LINE_LOOP);

for(int i = 0;i<62;i++) {

 vt[i][1]=480-vt[i][1];

 glVertex2iv(vt[i]);}

 glEnd();

}  

Call the function lineG in your display function. Similar is the code for letter ' t'.


Related Discussions:- Use the outline method to plot font boundaries

Design the poster taking, Question : (a) With the help of illustrations...

Question : (a) With the help of illustrations, briefly describe the influence of the following style on layout and typographic design: (i) Bauhaus (ii) Avant Garde (iii)

Positive accelerations - computer animation, Positive Accelerations - Compu...

Positive Accelerations - Computer Animation So as to incorporate increasing speed in an animation the time spacing among the frames should increase, hence greater change in th

Images - systems research group, The image you have been given for contour ...

The image you have been given for contour extraction is shown in Figure 1. The method for constructing the search space is shown in Figure 2. It is generated from two initial discr

Key frame systems, Ask questionkms eey frame syst #Minimum 100 words accept...

Ask questionkms eey frame syst #Minimum 100 words accepted#

Character generation - output primitives, Character Generation You know...

Character Generation You know that graphics displays often contain components which are text based.  For example graph labels, annotations, descriptions on data flow diagrams,

Arguments made in favor of digital sound, Arguments made in favor of Digita...

Arguments made in favor of Digital Sound Dynamic range. Lower noise floor. Immunity to wow and flutter. Absence of generation loss. Capability to apply redu

Interpolation of surface - polygon rendering, Interpolation of surface - Po...

Interpolation of surface - Polygon Rendering Interpolation of surface normals beside the polygonedge between two vertices is demonstrated above in the figure 15. Here the norm

#title., WHAT IS PAINTERS ALGORITHM?

WHAT IS PAINTERS ALGORITHM?

Production of animation , Historical and traditional methods for productio...

Historical and traditional methods for production of animation                                              Definition: Computer animation is a time depends phenome

Define clipping, Define clipping and covering (exterior clipping)? Clip...

Define clipping and covering (exterior clipping)? Clipping is the process of cutting a graphics display to neatly fit a predefined graphics region or the view port.  This is

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd