equal
deleted
inserted
replaced
18 |
18 |
19 #ifndef PBK2PRESENTATIONUTILS_H |
19 #ifndef PBK2PRESENTATIONUTILS_H |
20 #define PBK2PRESENTATIONUTILS_H |
20 #define PBK2PRESENTATIONUTILS_H |
21 |
21 |
22 #include <e32std.h> |
22 #include <e32std.h> |
|
23 |
|
24 class CFbsBitmap; |
23 |
25 |
24 /** |
26 /** |
25 * Util class with static text formatting functions |
27 * Util class with static text formatting functions |
26 */ |
28 */ |
27 class Pbk2PresentationUtils |
29 class Pbk2PresentationUtils |
117 |
119 |
118 private: // Disabled functions |
120 private: // Disabled functions |
119 Pbk2PresentationUtils(); |
121 Pbk2PresentationUtils(); |
120 }; |
122 }; |
121 |
123 |
|
124 class Pbk2PresentationImageUtils |
|
125 { |
|
126 public: |
|
127 enum TCroppingMode |
|
128 { |
|
129 /// Landscape image is cropped to square, target size is not used |
|
130 ELandscapeCropping = 0x0, |
|
131 /** |
|
132 * Landscape image is cropped to square and optimized to target size. |
|
133 * Cropped bitmap minimum width is aTargetSize width. |
|
134 */ |
|
135 ELandscapeOptimizedCropping |
|
136 }; |
|
137 |
|
138 IMPORT_C static void CropImageL( |
|
139 CFbsBitmap& aBitmap, |
|
140 TCroppingMode aCroppingMode, |
|
141 const TSize& aTargetSize ); |
|
142 |
|
143 private: // Disabled functions |
|
144 Pbk2PresentationImageUtils(); |
|
145 }; |
|
146 |
|
147 |
122 #endif // PBK2PRESENTATIONUTILS_H |
148 #endif // PBK2PRESENTATIONUTILS_H |
123 |
149 |
124 // End of File |
150 // End of File |