Bitmap

GSM_Error GSM_GetBitmap(GSM_StateMachine * s, GSM_Bitmap * Bitmap)

Gets bitmap from phone.

GSM_Error GSM_SetBitmap(GSM_StateMachine * s, GSM_Bitmap * Bitmap)

Sets bitmap in phone.

void GSM_PrintBitmap(FILE * file, GSM_Bitmap * bitmap)

Prints bitmap to file descriptor.

Parameters:
  • file -

    Where to print.

  • bitmap -

    Bitmap to print.

GSM_Error GSM_SaveBitmapFile(char * FileName, GSM_MultiBitmap * bitmap)

Saves bitmap to file.

Parameters:
  • FileName -

    Where to save.

  • bitmap -

    Bitmap to save.

Return:

Error code

GSM_Error GSM_ReadBitmapFile(char * FileName, GSM_MultiBitmap * bitmap)

Reads bitmap from file.

Parameters:
  • FileName -

    Where to load from.

  • bitmap -

    Pointer where to load bitmap.

Return:

Error code

gboolean GSM_IsPointBitmap(GSM_Bitmap * bmp, int x, int y)

Checks whether point is set in bitmap.

Parameters:
  • bmp -

    Bitmap

  • x -

    Horizontal coordinate.

  • y -

    Vertical coordinate.

Return:

True if point is set.

void GSM_SetPointBitmap(GSM_Bitmap * bmp, int x, int y)

Sets point in bitmap.

Parameters:
  • bmp -

    Bitmap

  • x -

    Horizontal coordinate.

  • y -

    Vertical coordinate.

void GSM_ClearPointBitmap(GSM_Bitmap * bmp, int x, int y)

Clears point in bitmap.

Parameters:
  • bmp -

    Bitmap

  • x -

    Horizontal coordinate.

  • y -

    Vertical coordinate.

void GSM_ClearBitmap(GSM_Bitmap * bmp)

Clears bitmap.

Parameters:
  • bmp -

    Bitmap

GSM_BinaryPicture_Types enum

Binary picture types.

Values:

  • PICTURE_BMP = 1 -
  • PICTURE_GIF -
  • PICTURE_JPG -
  • PICTURE_ICN -
  • PICTURE_PNG -

struct GSM_BinaryPicture

Binary picture data.

Public Members
GSM_BinaryPicture_Types Type

unsigned char * Buffer

size_t Length

GSM_Bitmap_Types enum

Enum to handle all possible bitmaps, which are not saved in various filesystems.

Values:

  • GSM_None = 1 -
  • GSM_ColourStartupLogo_ID -

    ID of static file in filesystem displayed during startup

  • GSM_StartupLogo -

    Static mono bitmap/ID of animated mono bitmap displayed during startup

  • GSM_ColourOperatorLogo_ID -

    ID of static file in filesystem displayed instead of operator name

  • GSM_OperatorLogo -

    Mono bitmap displayed instead of operator name

  • GSM_ColourWallPaper_ID -

    ID of static file in filesystem displayed as wallpaper

  • GSM_CallerGroupLogo -

    Mono bitmap assigned to caller group

  • GSM_DealerNote_Text -

    Text displayed during startup, which can’t be removed from phone menu

  • GSM_WelcomeNote_Text -

    Text displayed during startup

  • GSM_PictureImage -

    Image defined in Smart Messaging specification

  • GSM_PictureBinary -

    Binary picture (BMP, GIF, etc.)

struct GSM_Bitmap

Structure for all possible bitmaps, which are not saved in various filesystems

Public Members
GSM_Bitmap_Types Type

For all: bitmap type

unsigned char Location

For caller group logos: number of group For startup logos: number of animated bitmap

unsigned char Text[2 *(GSM_BITMAP_TEXT_LENGTH+1)]

For dealer/welcome note text: text For caller group logo: name of group For picture images: text assigned to it

gboolean BitmapEnabled

For caller group logo: TRUE, when logo is enabled in group

gboolean DefaultName

For caller group logo: TRUE, when group has default name

gboolean DefaultBitmap

For caller group logo: TRUE, when group has default bitmap

gboolean DefaultRingtone

For caller group logo: TRUE, when group has default ringtone

unsigned char RingtoneID

For caller group logo: ringtone ID. Phone model specific

gboolean FileSystemRingtone

int PictureID

For caller group logo: picture ID. Phone model specific

gboolean FileSystemPicture

unsigned char BitmapPoints[GSM_BITMAP_SIZE]

For mono bitmaps: body of bitmap

size_t BitmapHeight

For mono bitmaps: height specified in pixels

size_t BitmapWidth

For mono bitmaps: width specified in pixels

char NetworkCode[7]

For operator logos: Network operator code

unsigned char Sender[2 *(GSM_MAX_NUMBER_LENGTH+1)]

For picture images: number of sender

unsigned char ID

For colour bitmaps: ID

GSM_BinaryPicture BinaryPic

For binary pictures (GIF, BMP, etc.): frame and length

unsigned char Name[2 *(GSM_BITMAP_TEXT_LENGTH+1)]

Bitmap name

struct GSM_MultiBitmap

Structure to handle more than one bitmap

Public Members
unsigned char Number

Number of bitmaps

GSM_Bitmap Bitmap[GSM_MAX_MULTI_BITMAP]

All bitmaps

GSM_Error GSM_GetScreenshot(GSM_StateMachine * s, GSM_BinaryPicture * picture)

Gets phone screenshot.

Parameters:
  • s -

    State machine pointer.

  • picture -

    Structure which will hold data.

Previous topic

Backup

Next topic

Calendar

This Page