class CCamera::CCameraDirectSnapshot::TDirectSnapshotParameters |
Specifes the parameters necessary for direct snapshots. The screen co-ordinates used for direct snapshot will be the same as used for the parent direct viewfinder screen co-ordinates. This screen co-ordinate for direct snapshot may be changed by the implementation in certain cases for alignment.
Public Member Functions | |
---|---|
TDirectSnapshotParameters () | |
IMPORT_C TBool | IsAspectRatioMaintained () |
IMPORT_C void | SetAspectRatioState ( TBool ) |
IMPORT_C TUint | Size () |
IMPORT_C TUint | Version () |
Public Attributes | |
---|---|
TRgb | iBgColor |
TTimeIntervalMicroSeconds32 | iDisplayTime |
TUint | iDriveModes |
Private Attributes | |
---|---|
TUint | iIsAspectRatioMaintained |
TInt | iReserved1 |
TInt | iReserved2 |
TInt | iReserved3 |
TUint | iReserved4 |
TUint | iSize |
TUint | iVersion |
IMPORT_C | TDirectSnapshotParameters | ( | ) |
Constructor for the TDirectSnapshotParameters class. Sets the size and version of this class.
IMPORT_C TBool | IsAspectRatioMaintained | ( | ) | const |
Indicates whether the aspect ratio of the direct snapshot image has to maintained (if ETrue) or not (if EFalse) while scaling down.
CCamera::CCameraDirectSnapshot::TDirectSnapshotParameters::iIsAspectRatioMaintained
IMPORT_C void | SetAspectRatioState | ( | TBool | aIsAspectRatioMaintained | ) |
Sets the state to inform whether the aspect ratio of the direct snapshot image has to be maintained or not while scaling down.
CCamera::CCameraDirectSnapshot::TDirectSnapshotParameters::iIsAspectRatioMaintained
TBool aIsAspectRatioMaintained | ETrue implies must be maintained, EFalse otherwise. |
IMPORT_C TUint | Size | ( | ) | const |
Returns the size of the class. Used for extensibility by deriving from this base class and adding new member variables. Intended to be used for implementation of methods where this class reference is passed as function arguments. Implementation of such methods can find out the whether the actual class passed is base or the derived one. So, if a new application is made to run on an old implementation, an error may occur once the old implementation detects this by getting the size information of the T class passed. Also, if old application is made to run on a new implementation, this can be handled correctly if the derived class variables handling is done in a proper 'if-else' statement.
The size will be modified when the T-class gets updated.
IMPORT_C TUint | Version | ( | ) | const |
Returns the version of the class. Used for extensibility specially when the class members are not added but the Reserved members get used at a later stage.
The version will be modified when the T-class gets updated.
TRgb | iBgColor |
The background colour to be used if the snapshot has been scaled (maintaining its aspect ratio) and does not fully fill the dimension as per the direct view finder screen size. The TRect supposed to be used for direct snapshot may be modified by the implementation in certain cases for alignment.
TTimeIntervalMicroSeconds32 | iDisplayTime |
The time duration during which the snapshot data should appear on the screen. The implementation may internally change this display time if the client sets iDisplayTime to TTimeIntervalMicroSeconds32 (KECamSnapshotDefaultDisplayTime). This may happen when the client doesn't want to specify a specific duration and would rather let the implementation decide.
TUint | iDriveModes |
The bit field representing the drive modes for which the direct snapshot will be displayed if enabled. Refer CCamera::CCameraAdvancedSettings::TDriveMode .
TUint | iIsAspectRatioMaintained | [private] |
Set to ETrue if the aspect ratio of the direct snapshot image must be maintained when scaling down
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.