GSM::SMS::OTA::Bitmap
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.
$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.
$ref_bitmaparray = OTABitmap_fromfile($image_file);
Create a bitmap array from a file.
$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.
Johan Van den Brande <johan@vandenbrande.com>
To install GSM::SMS::NBS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GSM::SMS::NBS
CPAN shell
perl -MCPAN -e shell install GSM::SMS::NBS
For more information on module installation, please visit the detailed CPAN module installation guide.