Jpeg and png loading is now working, too.  You'll need all the
liballegro*-3_xburst.ipk packages plus alpy*-2_xburst.ipk from
http://downloads.qi-hardware.com/people/dvdkhlng/openwrt/ .

Loading and drawing images is as easy as:

--8<--
#! /usr/bin/python
From alpy import *

allegro_init()
install_keyboard()

set_color_depth(32)
set_gfx_mode(GFX_SAFE, 320, 240)
b, pal = load_bitmap('IMGP2962.JPG', 'jpg')
b.blit(dest=screen, dest_x=0, dest_y=0)
readkey()
--8<--

cheers,

David
-- 
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40

Attachment: pgpvJDqPksd3e.pgp
Description: PGP signature

_______________________________________________
Qi Hardware Discussion List
Mail to list (members only): [email protected]
Subscribe or Unsubscribe: 
http://lists.en.qi-hardware.com/mailman/listinfo/discussion

Reply via email to