TEXT CLIPPING

CLIPPING

                                  Generally, any procedure that identifies those portions of a picture that are either inside or outside of a specified region of space is mentioned as a clipping algorithm, or simply clipping. The region against which an object is to clip is termed a clip window.

TEXT CLIPPING

                                  There are several techniques which will be wont to provide text clipping in an exceedingly graphics package. The clipping technique used will rely upon the methods wont to generate characters and therefore the requirements of a selected application. the best method for processing character strings relative to a window boundary is to use the all or none string-clipping strategy shown. If all of the string is inside a clip window, we keep it. Otherwise, the string is discarded. This procedure is implemented by considering a bounding rectangle round the text pattern. The boundary positions of the rectangle are then compared to the window boundaries, and therefore the string is rejected if there's any overlap. This method produces the fastest text clipping. an alternate to rejecting a whole character string that overlaps a window boundary is to use the all or none character-clipping strategy.





Here we discard only those characters that don't seem to be completely inside the window. during this case, the boundary limits of individual characters are compared to the window. Any character that either overlaps or is outside a window boundary is clipped. A final method for handling text clipping is to clip the components of individual characters. We now treat characters in much the identical way that we treated lines. If a private character overlaps a clip window boundary, we clip off the parts of the character that are outside the window. Outline character fonts formed with line segments is processed during this way employing a line clipping algorithm. Characters defined with bit maps would be clipped by comparing the relative position of the individual pixels within the character grid patterns to the clipping boundaries.

Comments

POPULAR POSTS

POPULAR POSTS