Chapter 10 Programming with Images

This chapter shows what you can do with bitmapped images. Images are great for introducing “design values” into your application, and they can be used with controls such as toolbars, tree controls, notebooks, buttons, HTML windows, or in custom drawing code. Sometimes they can be used invisibly in an application, for example to achieve flicker-free drawing. In this chapter, we cover the different image classes and how to override standard icons and bitmaps used with wxWidgets.

Image Classes in wxWidgets

wxWidgets supports four kinds of bitmap images: wxBitmap, wxIcon, wxCursor, and wxImage.

wxBitmap represents a platform-dependent bitmap, with an optional wxMask to support drawing with transparency. ...

Get Cross-Platform GUI Programming with wxWidgets now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.