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
- Computer Graphics | Antialiasing
- Applications of Computer Graphics
- Segments in Computer Graphics
- Introduction to Computer Graphics
- Translation of objects in computer graphics
- Display Processor in Computer Graphics
- Painter's Algorithm in Computer Graphics
- Computer Graphics | The RGB color model
- DDA Line generation Algorithm in Computer Graphics
- 2D Transformation in Computer Graphics | Set 1 (Scaling of Objects)
- Draw a moving car using computer graphics programming in C
- Window to Viewport Transformation in Computer Graphics with Implementation
- Difference between Parallel and Perspective Projection in Computer Graphics
- Refresh type output devices in Computer Graphics
- Computer Graphics | Cathode ray tube (video display device)
- Line Clipping | Set 1 (Cohen–Sutherland Algorithm)
- Polygon Clipping | Sutherland–Hodgman Algorithm
- Line Clipping | Set 2 (Cyrus Beck Algorithm)