Difference between revisions of "Images (for developers)"
Jump to navigation
Jump to search
(Started writing) |
(No difference)
|
Revision as of 20:28, 25 November 2023
Work in progress
This page has been marked as undergoing heavy editing by user Blu256. Please be patient.Working with images is an important part of a graphical application, whether it's a simple application or a complex graphical suite. In TQt/TDE, this can be as simple as learning to use a few classes. This guide aims to be a good guide for developers who want to work with TQt/TDE.
Image classes
- TQPixmap API is one of the two basic image classes provided by TQt.
- It is, essentially, a paint device, so it is optimized for drawing. You'll see this class used a lot (more than TQImage) because of this quality.
- TQImage API is the other basic image class.
- According to the API docs, it is "a hardware-independent pixmap representation" and it is optimized for I/O operations and direct pixel access and manipulation.
- TQIconSet API is a helper class for icons.
- Compared to the basic image classes, this class does not represent a single image, but a set of images which correspond to an icon. A folder icon can come in different sizes (a different image file corresponds to each size), but it is still considered to be the same icon.