| class TTranpPicture |
Represents a picture in Unified Picture Format (UPF), a standard for image data transmitted via infrared communication.
An object of this type is used when transmitting pictures using the IrTranP protocol.
A received picture can be saved as a JPEG type for viewing or it can be saved in native UPF format.
| Public Member Functions | |
|---|---|
| TTranpPicture () | |
| ~TTranpPicture () | |
| IMPORT_C const TDesC8 & | Filename () |
| IMPORT_C void | GetLatticeSize ( TLatticeSize &, TInt &, TInt &) |
| IMPORT_C const TDesC8 * | GetThumbNail () |
| IMPORT_C TInt | LoadFromJpeg (const TFileName &) |
| IMPORT_C TInt | LoadFromUPF (const TFileName &) |
| IMPORT_C const TDesC8 & | LongFilename () |
| IMPORT_C const TDesC8 * | Picture () |
| IMPORT_C TInt | SaveAsJpeg (const TFileName &) |
| IMPORT_C TInt | SaveAsUPF (const TFileName &) |
| IMPORT_C void | SetDesiredLatticeSize ( TLatticeSize , TInt , TInt ) |
| IMPORT_C void | SetFilename (const TDesC8 &) |
| IMPORT_C void | SetLongFilename (const TDesC8 &) |
| IMPORT_C void | SetTime (const TDesC8 &) |
| IMPORT_C const TDesC8 & | Time () |
| Private Attributes | |
|---|---|
| TBuf8 < 31 > | iFilename |
| HBufC8 * | iHeapData |
| TInt | iHeight |
| TLatticeSize | iLatticeSize |
| TBuf8 < 256 > | iLongFilename |
| TUint32 | iPadding1 |
| TUint32 | iPadding2 |
| TPtrC8 | iPicture |
| TPtrC8 | iThumbNail |
| TBuf8 < 14 > | iTime |
| TDesC8 * | iUPFPicture |
| TInt | iWidth |
| TInt | iX |
| TInt | iY |
| IMPORT_C void | GetLatticeSize | ( | TLatticeSize & | aSize, |
| TInt & | iWidth, | |||
| TInt & | iHeight | |||
| ) | ||||
| IMPORT_C const TDesC8 * | GetThumbNail | ( | ) |
Returns a pointer to a descriptor containing a thumbnail representation of the image. The thumbnail is in JPEG format.
| IMPORT_C TInt | LoadFromJpeg | ( | const TFileName & | aFileName | ) |
Loads JPEG format image data from the specified file on the host device.
| const TFileName & aFileName | The name of the file containing the JPEG format image data. |
| IMPORT_C TInt | LoadFromUPF | ( | const TFileName & | aFileName | ) |
Loads native UPF format image data from the specified file on the host device.
| const TFileName & aFileName | The name of the file containing the native UPF format image data. |
| IMPORT_C const TDesC8 & | LongFilename | ( | ) |
Returns the file name of the picture in SJIS or as an ISO8859-1 character string.
| IMPORT_C const TDesC8 * | Picture | ( | ) |
Gets a pointer to a non-modifiable descriptor containing the image data. The image is in JPEG format.
| IMPORT_C TInt | SaveAsJpeg | ( | const TFileName & | aFileName | ) |
Saves the image data in JPEG format to the specified file on the host device.
| const TFileName & aFileName | The name of the file to contain the JPEG format image data. |
| IMPORT_C TInt | SaveAsUPF | ( | const TFileName & | aFileName | ) |
Saves the image data in native UPF format to the specified file on the host device.
| const TFileName & aFileName | The name of the file to contain the native UPF format image data. |
| IMPORT_C void | SetDesiredLatticeSize | ( | TLatticeSize | aSize, |
| TInt | iWidth = 0, | |||
| TInt | iHeight = 0 | |||
| ) | ||||
| IMPORT_C void | SetFilename | ( | const TDesC8 & | aName | ) |
Sets the file name of the picture in DOS 8.3 format.
| const TDesC8 & aName | The filename in 8.3 format. |
| IMPORT_C void | SetLongFilename | ( | const TDesC8 & | aName | ) |
Sets the file name of the picture in SJIS or as an ISO8859-1 character string.
| const TDesC8 & aName | The filename in long format. |
| IMPORT_C void | SetTime | ( | const TDesC8 & | aTime | ) |
Sets the time stamp attribute iTime to aTime for the picture.
| const TDesC8 & aTime | The time stamp in YYYYMMDDHHMMSS character format. |
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.