--- a/phonebookui/Phonebook2/inc/Pbk2PresentationUtils.h Tue Feb 02 10:12:17 2010 +0200
+++ b/phonebookui/Phonebook2/inc/Pbk2PresentationUtils.h Fri Feb 19 22:40:27 2010 +0200
@@ -21,6 +21,8 @@
#include <e32std.h>
+class CFbsBitmap;
+
/**
* Util class with static text formatting functions
*/
@@ -119,6 +121,30 @@
Pbk2PresentationUtils();
};
+class Pbk2PresentationImageUtils
+ {
+public:
+ enum TCroppingMode
+ {
+ /// Landscape image is cropped to square, target size is not used
+ ELandscapeCropping = 0x0,
+ /**
+ * Landscape image is cropped to square and optimized to target size.
+ * Cropped bitmap minimum width is aTargetSize width.
+ */
+ ELandscapeOptimizedCropping
+ };
+
+ IMPORT_C static void CropImageL(
+ CFbsBitmap& aBitmap,
+ TCroppingMode aCroppingMode,
+ const TSize& aTargetSize );
+
+private: // Disabled functions
+ Pbk2PresentationImageUtils();
+ };
+
+
#endif // PBK2PRESENTATIONUTILS_H
// End of File