Gammu API
1.38.0
|
Data Structures | |
struct | GSM_BinaryPicture |
struct | GSM_Bitmap |
struct | GSM_MultiBitmap |
Functions | |
GSM_Error | GSM_GetBitmap (GSM_StateMachine *s, GSM_Bitmap *Bitmap) |
GSM_Error | GSM_SetBitmap (GSM_StateMachine *s, GSM_Bitmap *Bitmap) |
void | GSM_PrintBitmap (FILE *file, GSM_Bitmap *bitmap) |
GSM_Error | GSM_SaveBitmapFile (char *FileName, GSM_MultiBitmap *bitmap) |
GSM_Error | GSM_ReadBitmapFile (char *FileName, GSM_MultiBitmap *bitmap) |
gboolean | GSM_IsPointBitmap (GSM_Bitmap *bmp, int x, int y) |
void | GSM_SetPointBitmap (GSM_Bitmap *bmp, int x, int y) |
void | GSM_ClearPointBitmap (GSM_Bitmap *bmp, int x, int y) |
void | GSM_ClearBitmap (GSM_Bitmap *bmp) |
GSM_Error | GSM_GetScreenshot (GSM_StateMachine *s, GSM_BinaryPicture *picture) |
Bitmaps manipulations.
Binary picture types.
Enumerator | |
---|---|
PICTURE_BMP | |
PICTURE_GIF | |
PICTURE_JPG | |
PICTURE_ICN | |
PICTURE_PNG |
Definition at line 30 of file gammu-bitmap.h.
enum GSM_Bitmap_Types |
Enum to handle all possible bitmaps, which are not saved in various filesystems.
Definition at line 54 of file gammu-bitmap.h.
void GSM_ClearBitmap | ( | GSM_Bitmap * | bmp | ) |
Clears bitmap.
bmp | Bitmap |
void GSM_ClearPointBitmap | ( | GSM_Bitmap * | bmp, |
int | x, | ||
int | y | ||
) |
Clears point in bitmap.
bmp | Bitmap |
x | Horizontal coordinate. |
y | Vertical coordinate. |
GSM_Error GSM_GetBitmap | ( | GSM_StateMachine * | s, |
GSM_Bitmap * | Bitmap | ||
) |
Gets bitmap from phone.
GSM_Error GSM_GetScreenshot | ( | GSM_StateMachine * | s, |
GSM_BinaryPicture * | picture | ||
) |
Gets phone screenshot.
s | State machine pointer. |
picture | Structure which will hold data. |
gboolean GSM_IsPointBitmap | ( | GSM_Bitmap * | bmp, |
int | x, | ||
int | y | ||
) |
Checks whether point is set in bitmap.
bmp | Bitmap |
x | Horizontal coordinate. |
y | Vertical coordinate. |
void GSM_PrintBitmap | ( | FILE * | file, |
GSM_Bitmap * | bitmap | ||
) |
Prints bitmap to file descriptor.
file | Where to print. |
bitmap | Bitmap to print. |
GSM_Error GSM_ReadBitmapFile | ( | char * | FileName, |
GSM_MultiBitmap * | bitmap | ||
) |
Reads bitmap from file.
FileName | Where to load from. |
bitmap | Pointer where to load bitmap. |
GSM_Error GSM_SaveBitmapFile | ( | char * | FileName, |
GSM_MultiBitmap * | bitmap | ||
) |
Saves bitmap to file.
FileName | Where to save. |
bitmap | Bitmap to save. |
GSM_Error GSM_SetBitmap | ( | GSM_StateMachine * | s, |
GSM_Bitmap * | Bitmap | ||
) |
Sets bitmap in phone.
void GSM_SetPointBitmap | ( | GSM_Bitmap * | bmp, |
int | x, | ||
int | y | ||
) |
Sets point in bitmap.
bmp | Bitmap |
x | Horizontal coordinate. |
y | Vertical coordinate. |