Text Clipping is a process of clipping the string. In this process, we clip the whole character or only some part of it depending upon the requirement of the application.
Text clipping Methods :
- All or None String Clipping method –
In this method, if the whole string is inside the clip window then we consider it. Otherwise, the string is completely removed. Text pattern is considered under a bounding rectangle. The boundary positions of the rectangle are then compared to the window boundaries. String is rejected if there is any overlapping between the string and the window. This method produces the fastest text clipping.
- All or None Character Clipping method –
In this method, we keep the characters of the string which lies inside clip window and remove all the characters which lie outside the clip window. The boundary limits of individual characters are compared to the window. In case of overlapping of character with the clip window, we remove the character.
- Text Clipping method –
In this method, we keep the characters of the string which lies inside the clip window and remove all the characters which lie outside the clip window. If a character overlaps the window boundary then we keep that part of the character which lies inside the window and discard that part which lies outside the clip window.
- Point Clipping Algorithm in Computer Graphics
- Interpolation Methods in Computer Graphics
- Line Clipping | Set 1 (Cohen–Sutherland Algorithm)
- Polygon Clipping | Sutherland–Hodgman Algorithm
- Line Clipping | Set 2 (Cyrus Beck Algorithm)
- DDA Line generation Algorithm in Computer Graphics
- 2D Transformation in Computer Graphics | Set 1 (Scaling of Objects)
- Translation of objects in computer graphics
- Segments in Computer Graphics
- Computer Graphics | Cathode ray tube (video display device)
- Computer Graphics | Antialiasing
- Draw a moving car using computer graphics programming in C
- Computer Graphics | The RGB color model
- Refresh type output devices in Computer Graphics
- Applications of Computer Graphics
- Window to Viewport Transformation in Computer Graphics with Implementation
- Display Processor in Computer Graphics
- Introduction to Computer Graphics
- Difference between Parallel and Perspective Projection in Computer Graphics
- Interactive Graphical Techniques in Computer Graphics
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.