|
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This is the implementation of the BitmapTransforms Library |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __BitmapRotationBody_inl |
|
19 #define __BitmapRotationBody_inl |
|
20 |
|
21 #include "BitmapTransformsMain.h" |
|
22 #include <bitmtrans/bitmtransplugin.h> |
|
23 |
|
24 /** |
|
25 The function Rotate schedules a rotate/mirror operation on a bitmap supplied in the |
|
26 aSrcBitmap whose output overwrites aSrcBitmap. |
|
27 Preconditions: |
|
28 aRequestStatus is not a NULL pointer |
|
29 aSrcBitmap is a fully constructed bitmap of unknown size including zero dimension |
|
30 aAngle is a member of the enumeration TRotationAngle |
|
31 |
|
32 @param "aRequestStatus" |
|
33 is a pointer to the completion status of the asynchronous operation. |
|
34 @param "CFbsBitmap& aBitmap" |
|
35 is a reference to a CFbsBitmap. This bitmap should have been created |
|
36 and is also an output |
|
37 @param "TRotationAngle aAngle" |
|
38 aAngle is a member of the enumeration TRotationAngle and specifies the rotation mirror operation |
|
39 |
|
40 @panic This function panics with TBitmapTransformsMain::ENoSourceBitmap when the aSrcBitmap has not been constructed |
|
41 ie its handle is 0 |
|
42 |
|
43 Sucess Guarantee |
|
44 aSrcBitmap contains the rotated bitmap |
|
45 aRequestStatus points to the value KErrorNone |
|
46 |
|
47 */ |
|
48 |
|
49 inline void CBitmapRotatorBody::Rotate(TRequestStatus* aRequestStatus, CFbsBitmap& aBitmap, TRotationAngle aAngle) |
|
50 { |
|
51 iPlugin->Rotate(aRequestStatus, aBitmap, aAngle); |
|
52 } |
|
53 |
|
54 // Pass Cancel to plugin |
|
55 inline void CBitmapRotatorBody::Cancel() |
|
56 { |
|
57 iPlugin->Cancel(); |
|
58 } |
|
59 |
|
60 #endif // __BitmapRotationBody_inl |