View Single Post
Old 04-14-2013, 02:44 AM   #153
NuPogodi
Connoisseur
NuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the end
 
Posts: 58
Karma: 31942
Join Date: Feb 2012
Device: Kindle 3, Tolino Shine, Kobo Glo
Quote:
Originally Posted by dimasic View Post
I tried to modify screen.lua to use function fb2pgm instead of fb2bmp, because it can work with 8bpp framebuffer of K4. It's OK, but picture is inverted.

So, it's necessary to add condition for K4 to screen.lua and probably modify fb2bmp and/or fb2pgm functions.
The functions to store framebuffer content into common graphic formats were written to work properly with K2, K3 & KDX(G). I had neither newer kindle models (or their framebuffer dumps), nor intention to make this function universal.
Try to download the attached zip, unpack its content to ../screenshots/ and to replace the function in screen.lua
Code:
Screen:screenshot()
local format = "bmp" -- or tiff or pgm
os.execute("./screenshots/screen2"..format)
end
PS The attached binaries were also not tested with K4
Attached Files
File Type: zip screenshots.zip (13.7 KB, 185 views)

Last edited by NuPogodi; 04-14-2013 at 03:29 AM.
NuPogodi is offline   Reply With Quote