Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4428

K5 imlib2 on the kindles

$
0
0
/usr/bin/imlib2_view appears to be a built in picture viewer.
with touchscreen support.

Spoiler:

Here's one way to make an interesting picture (using xplanet)

[root@kindle root]# xplanet -num_times 1 -geometry 600x800 -background /opt/amazon/low_level_screens/600x800/splash.png -output /mnt/us/
system/screensaver.png


to display it/them (Run Xephyr)
Xephyr :1 -title "L:A_N:application_ID:xephyr_O:U_PC:N" -screen 600x800 -fp /mnt/us/usr/share/fonts/X11/75dpi -dpi 96

[root@kindle root]# DISPLAY=:1 /usr/bin/imlib2_view /mnt/us/system/screensaver.png [more image paths]

pictured. pure White is treated as transparent.

helpful. I may use this.

Spoiler:
EDIT: possibly helpful docs http://docs.enlightenment.org/api/imlib2/html/

Doesn't appear to support a title attribute. so is backgrounded by regular Awesome. but does actually render. although seemingly in 2 bits. and without transparency

using some onboard images so it works OOTB for people having a play:

/usr/bin/imlib2_view /var/local/blanket/low_level_screens/images/shipping_mode.png /var/local/blanket/low_level_screens/images/reboot.png /usr/share/blanket/ad_screensaver/screensaver-unregistered.png

touching the screen will make the images advance. much like a picture viewer.

haven't figured out a switch to make it close at the end yet... anyone ? : )

Attached Thumbnails
Click image for larger version

Name:	screensaver.png
Views:	N/A
Size:	432.9 KB
ID:	97940   Click image for larger version

Name:	TightVNC: kindle:0.0_069.png
Views:	N/A
Size:	98.2 KB
ID:	97941   Click image for larger version

Name:	TightVNC: kindle:0.0_071.png
Views:	N/A
Size:	15.4 KB
ID:	97943  

Viewing all articles
Browse latest Browse all 4428

Trending Articles