class CImageDisplay : public CBase |
The public API for clients to call the Image Display library. This class provides functions to convert images stored in descriptors or files to bitmaps ready for display.
Public Member Functions | |
---|---|
~CImageDisplay() | |
IMPORT_C TInt | ExtensionInterface(TUid, TAny *&) |
IMPORT_C void | GetBitmap(const CFbsBitmap *&, const CFbsBitmap *&) |
IMPORT_C TUint | ImageStatus() |
IMPORT_C CImageDisplay * | NewL(MIclImageDisplayObserver &, RFs &) |
IMPORT_C TInt | NumFrames(TInt &) |
IMPORT_C void | Pause() |
IMPORT_C void | Play() |
IMPORT_C const RImageSizeArray & | RecommendedImageSizes() |
IMPORT_C void | Reset() |
IMPORT_C void | ResetSourceRect() |
IMPORT_C void | SetDisplayMode(TDisplayMode) |
IMPORT_C TInt | SetImageSource(const TMMSource &) |
IMPORT_C TInt | SetOptions(TUint) |
IMPORT_C void | SetPluginUid(TUid) |
IMPORT_C void | SetSizeInPixels(const TSize &, TBool) |
IMPORT_C void | SetSourceImageType(TUid, TUid) |
IMPORT_C void | SetSourceMimeType(const TDesC8 &) |
IMPORT_C void | SetSourceRect(const TRect &) |
IMPORT_C void | SetupL() |
IMPORT_C void | StopPlay() |
IMPORT_C TBool | ValidBitmap() |
Private Member Functions | |
---|---|
CImageDisplay() | |
void | ConstructL(MIclImageDisplayObserver &, RFs &) |
Public Member Enumerations | |
---|---|
enum | TImageOptions { EOptionsUndefined = 0x00000000, EOptionThumbnail = 0x00000001, EOptionMainImage = 0x00000002, EOptionRotateCw90 = 0x00000004, EOptionRotateCw180 = 0x00000008, EOptionRotateCw270 = 0x00000010, EOptionMirrorHorizontal = 0x00000020, EOptionMirrorVertical = 0x00000040, EOptionAutoRotate = 0x00000080 } |
enum | TImageStatus { EImageTypeUnknown = 0x00000000, EImageSingleFrame = 0x00000001, EImageMultiFrame = 0x00000002, EImageAnimated = 0x00000004, EImageMasked = 0x00000008, EImageHasThumbnail = 0x00000010, EImageIsFullyScalable = 0x00000020 } |
Public Member Type Definitions | |
---|---|
typedef | RArray< TSize > RImageSizeArray |
Private Attributes | |
---|---|
CImageDisplayFramework * | iBody |
void | ConstructL | ( | MIclImageDisplayObserver & | aCallback, |
RFs & | aFs | |||
) | [private] |
MIclImageDisplayObserver & aCallback | |
RFs & aFs |
IMPORT_C void | GetBitmap | ( | const CFbsBitmap *& | aBitmap, |
const CFbsBitmap *& | aMask | |||
) | const |
const CFbsBitmap *& aBitmap | |
const CFbsBitmap *& aMask |
IMPORT_C CImageDisplay * | NewL | ( | MIclImageDisplayObserver & | aCallback, |
RFs & | aFs | |||
) | [static] |
MIclImageDisplayObserver & aCallback | |
RFs & aFs |
IMPORT_C void | SetDisplayMode | ( | TDisplayMode | aDisplayMode | ) |
TDisplayMode aDisplayMode |
IMPORT_C TInt | SetImageSource | ( | const TMMSource & | aSource | ) |
const TMMSource & aSource |
IMPORT_C void | SetSizeInPixels | ( | const TSize & | aSize, |
TBool | aMaintainAspectRatio = ETrue | |||
) |
IMPORT_C void | SetSourceImageType | ( | TUid | aImageType, |
TUid | aImageSubType = KNullUid | |||
) |
IMPORT_C void | SetSourceMimeType | ( | const TDesC8 & | aMIMEType | ) |
const TDesC8 & aMIMEType |
IMPORT_C void | SetSourceRect | ( | const TRect & | aRect | ) |
const TRect & aRect |
Flags to control how the image is handled These can be combined using an OR operation. Note that the rotate and mirror options have to be set together with EOptionThumbnail or EOptionMainImage.
EOptionsUndefined = 0x00000000 |
No options defined |
EOptionThumbnail = 0x00000001 |
Use the thumbnail image as source |
EOptionMainImage = 0x00000002 |
Use the main image as source |
EOptionRotateCw90 = 0x00000004 |
Rotate the image by 90 degrees clockwise |
EOptionRotateCw180 = 0x00000008 |
Rotate the image by 180 degrees clockwise |
EOptionRotateCw270 = 0x00000010 |
Rotate the image by 270 degrees clockwise |
EOptionMirrorHorizontal = 0x00000020 |
Mirror an image about the horizontal axis |
EOptionMirrorVertical = 0x00000040 |
Mirror an image about the vertical axis |
EOptionAutoRotate = 0x00000080 |
Rotate the image automatically (if necessary) |
Return flags from ImageStatus()
EImageTypeUnknown = 0x00000000 |
ImageStatus is unknown |
EImageSingleFrame = 0x00000001 |
Image is single frame |
EImageMultiFrame = 0x00000002 |
Image is multiframe |
EImageAnimated = 0x00000004 |
Image is animated |
EImageMasked = 0x00000008 |
Image has got a mask/alpha channel |
EImageHasThumbnail = 0x00000010 |
Image has got a thumbnail |
EImageIsFullyScalable = 0x00000020 |
Image is fully scalable i.e. arbitrary scaling can be perofmed quite quickly |
typedef RArray< TSize > | RImageSizeArray |
An array containing the sizes of images.