Johan Van den Brande > GSM-SMS > GSM::SMS::OTA::Bitmap

Download:
GSM-SMS-0.163.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  0
View/Report Bugs
Module Version: 0.161   Source  

NAME ^

GSM::SMS::OTA::Bitmap

DESCRIPTION ^

Used to create a ota bitmap to use in CLI and OPERATOR logo's, also the double height format as in a PictureMessage is supported. We use the perlinterface to ImageMagick instead of the 'convert' command from the same package.

METHODS ^

OTABitmap_fromb64

        $ref_bitmaparray = OTABitmap_fromb64($bitmap_image_b64, $format_of_image);

Expects a bitmap in base64 format and the format of the image (e.g. 'gif', 'png'). The base64 method is here to be able to use the function in a webcentric way. This way you can e.g. use xmlrpc calls to exchange images for sending via SMS.

OTABitmap_fromfile

        $ref_bitmaparray = OTABitmap_fromfile($image_file);

Create a bitmap array from a file.

OTABitmap_makestream

        $stream = OTABitmap_makestream( $width, $height, $depth, $ref_bitmaparray );

Create an OTA Bitmap. Width is 72 and height is 14 or 28 pixels, you can find those back in the constants BITMAP_WIDTH, BITMAP_HEIGHT and BITMAP_HEIGHT_DOUBLE.

AUTHOR ^

Johan Van den Brande <johan@vandenbrande.com>

syntax highlighting: