Abstract
Various additional aspects of 2D graphics are the topic of this Chapter. Techniques for filling areas with colours and textures are explained. Double buffering is a method that is needed for animations. Adding text to graphics needs is a topic of its own and the basic concepts are introduced. The transition from black-and-white to grey scale and to colour images requires the definition of colour models. Models like RGB, CMY(K), YIQ, HSV and HLS are introduced. Interpolators for colours provide an example for the use and application of a colour model. Java 2D example programs elucidate the implementation of the concepts introduced in this Chapter.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 1.
The last parameter of this method is set to null here. It is an ImageObserver, which would be needed if the BufferedImage bi to be drawn is not completely available when the method drawImage is called. This could, for instance, happen when bi is a larger image that is downloaded from the Internet. Such cases will not be considered here.
- 2.
Compare the word “Van”—“V an” with and without kerning.
- 3.
Compare the following words printed with and without ligature: coffee—cof fee, first—f irst.
- 4.
The lowest intensity level is 0.
- 5.
Since the letter B is already used for blue in the RGB model, K is used for black, standing for key colour.
References
Bungartz, H.-J., Griebel, M., Zenger, C.: Einführung in die Computergraphik, 2 Aufl. (in German). Vieweg, Wiesbaden (2002)
Foley, J.D., van Dam, A., Feiner, S.K., Hughes, J.F.: Computer Graphics: Principles and Practice in C, 2nd edn. Addison-Wesley, Boston (1996)
Kopka, H., Daly, P.W.: A Guide to : Document Preparation for Beginners and Advanced Users, 3rd edn. Addison-Wesley, Reading, MA (1999)
Larson, K.: The Technology of Text. IEEE Spectrum (INT) 5/2007, pp. 20–25
Umbaugh, S.E.: Computer Imaging: Digital Image Analysis and Processing. CRC Press, Boca Raton (2005)
Wyszecki, G., Stiles, W.: Color Science: Concepts and Methods, Quantitative Data and Formulae, 2nd edn. Wiley, New York (1982)
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2012 Springer-Verlag London Limited
About this chapter
Cite this chapter
Klawonn, F. (2012). Areas, Text and Colours. In: Introduction to Computer Graphics. Undergraduate Topics in Computer Science. Springer, London. https://doi.org/10.1007/978-1-4471-2733-8_4
Download citation
DOI: https://doi.org/10.1007/978-1-4471-2733-8_4
Publisher Name: Springer, London
Print ISBN: 978-1-4471-2732-1
Online ISBN: 978-1-4471-2733-8
eBook Packages: Computer ScienceComputer Science (R0)