equal
deleted
inserted
replaced
80 |
80 |
81 The logicalDpiX() and logicalDpiY() functions return the |
81 The logicalDpiX() and logicalDpiY() functions return the |
82 horizontal and vertical resolution of the device in dots per |
82 horizontal and vertical resolution of the device in dots per |
83 inch. The physicalDpiX() and physicalDpiY() functions also return |
83 inch. The physicalDpiX() and physicalDpiY() functions also return |
84 the resolution of the device in dots per inch, but note that if |
84 the resolution of the device in dots per inch, but note that if |
85 the logical and vertical resolution differ, the corresponding |
85 the logical and physical resolution differ, the corresponding |
86 QPaintEngine must handle the mapping. Finally, the numColors() |
86 QPaintEngine must handle the mapping. Finally, the colorCount() |
87 function returns the number of different colors available for the |
87 function returns the number of different colors available for the |
88 paint device. |
88 paint device. |
89 |
89 |
90 \sa QPaintEngine, QPainter, {The Coordinate System}, {The Paint |
90 \sa QPaintEngine, QPainter, {The Coordinate System}, {The Paint |
91 System} |
91 System} |
109 |
109 |
110 \value PdmHeightMM The height of the paint device in millimeters. See |
110 \value PdmHeightMM The height of the paint device in millimeters. See |
111 also heightMM(). |
111 also heightMM(). |
112 |
112 |
113 \value PdmNumColors The number of different colors available for |
113 \value PdmNumColors The number of different colors available for |
114 the paint device. See also numColors(). |
114 the paint device. See also colorCount(). |
115 |
115 |
116 \value PdmDepth The bit depth (number of bit planes) of the paint |
116 \value PdmDepth The bit depth (number of bit planes) of the paint |
117 device. See also depth(). |
117 device. See also depth(). |
118 |
118 |
119 \value PdmDpiX The horizontal resolution of the device in dots per |
119 \value PdmDpiX The horizontal resolution of the device in dots per |
219 \sa height() |
219 \sa height() |
220 */ |
220 */ |
221 |
221 |
222 /*! |
222 /*! |
223 \fn int QPaintDevice::numColors() const |
223 \fn int QPaintDevice::numColors() const |
|
224 \deprecated |
|
225 |
|
226 Use colorCount() instead. |
224 |
227 |
225 Returns the number of different colors available for the paint |
228 Returns the number of different colors available for the paint |
226 device. Since this value is an int, it will not be sufficient to represent |
229 device. Since this value is an int, it will not be sufficient to |
227 the number of colors on 32 bit displays, in this case INT_MAX is |
230 represent the number of colors on 32 bit displays, in this case |
228 returned instead. |
231 INT_MAX is returned instead. |
|
232 */ |
|
233 |
|
234 /*! |
|
235 \fn int QPaintDevice::colorCount() const |
|
236 |
|
237 Returns the number of different colors available for the paint |
|
238 device. Since this value is an int, it will not be sufficient to |
|
239 represent the number of colors on 32 bit displays, in this case |
|
240 INT_MAX is returned instead. |
229 */ |
241 */ |
230 |
242 |
231 /*! |
243 /*! |
232 \fn int QPaintDevice::depth() const |
244 \fn int QPaintDevice::depth() const |
233 |
245 |