03-07-2012, 05:13 AM | #1 |
Avid reader
Posts: 825
Karma: 6377682
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy Z Flip 4 / Kindle Paperwhite
|
jetBook Color scribble file format
Here's a Python script to create a very simple scribble file with a diagonal line from top right to bottom left. The coordinate origin on the page is at the top left - x increases across the page from left to right and y increases down the page from top to bottom. I've put a few comments in which should show what's going on.
Code:
from io import FileIO from array import array of=FileIO('1', 'w') # Header of.write(array('B', [0x0c, 0x04, 0x40, 0x06])) # New linestring - each new linestring starts with this of.write(array('B', [0xff, 0xff, 0xff, 0xff, 0x00])) # 1st coord pair - loX, hiX, loY, hiY, 0x00 of.write(array('B', [0xae, 0x04, 0x00, 0x00, 0x00])) # 2nd coord pair - loX, hiX, loY, hiY, 0x00 of.write(array('B', [0x00, 0x00, 0x32, 0x06, 0x00])) # You can have as many coordinate pairs as you like in a linestring (>=2) # Next linestring would start with [0xff, 0xff, 0xff, 0xff, 0x00] again of.close() |
03-07-2012, 06:45 AM | #2 |
Addict
Posts: 233
Karma: 256666
Join Date: May 2008
Location: Italy
Device: iLiad, PRS-T3, Kobo GLO HD, Paperwhite 2, PB Ultra, Ony Boox Max
|
I reached the same conclutions.
Next I could try to reopen jCrossSketch project and bulid an ad-hoc plugin. |
03-07-2012, 06:51 AM | #3 |
Guru
Posts: 694
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
|
Perhaps 'B' means "black" and we have some kind of color support in the future...
|
03-07-2012, 06:56 AM | #4 |
Addict
Posts: 233
Karma: 256666
Join Date: May 2008
Location: Italy
Device: iLiad, PRS-T3, Kobo GLO HD, Paperwhite 2, PB Ultra, Ony Boox Max
|
the pen's ink is red not black
|
03-07-2012, 08:04 AM | #5 | |
Avid reader
Posts: 825
Karma: 6377682
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy Z Flip 4 / Kindle Paperwhite
|
Quote:
I wonder if the 0x00* at the end of each coordinate pair is a separater or whether it might indicate line colour or width, but I haven't tried changing it yet. Or maybe the four 0xFF bytes before each linestring are a header that might change with pen properties. I suspect Ectaco have gone with the simplest implementation of scribbling they can get away with to begin with. Hopefully it will be improved in the future. Andrew Last edited by andyh2000; 03-07-2012 at 08:09 AM. Reason: *Correction from 0xFF to 0x00 as per mod186k1's msg below |
|
03-07-2012, 08:07 AM | #6 |
Addict
Posts: 233
Karma: 256666
Join Date: May 2008
Location: Italy
Device: iLiad, PRS-T3, Kobo GLO HD, Paperwhite 2, PB Ultra, Ony Boox Max
|
not 0xff, probably you mean 0x00
|
03-07-2012, 08:10 AM | #7 |
Avid reader
Posts: 825
Karma: 6377682
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy Z Flip 4 / Kindle Paperwhite
|
|
03-07-2012, 09:08 AM | #8 |
Guru
Posts: 694
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
|
|
03-07-2012, 10:09 AM | #9 |
Karmaniac
Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
Usually color would be written like this (FF,00,00). You need at least 3 or 4 indicators for color (4 in case of a 4 pixels screen).
The way I see it, [0x0c, 0x04, 0x40, 0x06] would never be pure red, with all other pixels black. At best it would darken other pixels to a near black and 40 is red half open. But more likely those indicators are indicating another thing than color. It would be logical if they where R,G,B,W, in which case the line would be blue. Illogical to start from blue; in which case black would be 0x00 for all 4 'variables' (if that's what they are), or it's nearest possible outcome (0x02 or 0x04). That'd be my estimation. I see no other possible indication of color. It'd be nice if you could also create a horizontal and a vertical line, and show the outcome. |
03-07-2012, 11:15 AM | #10 |
Avid reader
Posts: 825
Karma: 6377682
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy Z Flip 4 / Kindle Paperwhite
|
I've just noticed [0x40, 0x06] is 1600 in decimal (least significant byte first) which is the vertical resolution of the screen. Might be coincidence though as [0x0c, 0x04] is definitely not 1200 (it's 1036).
Andrew |
03-07-2012, 02:41 PM | #11 |
Groupie
Posts: 154
Karma: 1310
Join Date: Dec 2009
Device: kindle DX Graphite
|
I haven't had the time to play with my color, let alone update the firmware ( will prolly do during Spring break)
how are scribbles saved when you write on a PDf? a file per page? might be possible to find an open source PDF editor, add code to insert scribbles inside PDF itself |
03-07-2012, 02:47 PM | #12 | |
Avid reader
Posts: 825
Karma: 6377682
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy Z Flip 4 / Kindle Paperwhite
|
Quote:
Andrew |
|
03-07-2012, 05:31 PM | #13 |
Karmaniac
Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
I'm wondering if the color for the vectors isn't adjustable in some configuration / ini file?
Have you been able to access the operating system via your computer connecting to the USB port? If you can access the Jetbook's OS files, you might be able to find some setting or config files. I think there's the place to start looking for changing the color! |
03-07-2012, 05:38 PM | #14 | |
Avid reader
Posts: 825
Karma: 6377682
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy Z Flip 4 / Kindle Paperwhite
|
Quote:
Andrew |
|
03-07-2012, 06:05 PM | #15 | ||
Groupie
Posts: 154
Karma: 1310
Join Date: Dec 2009
Device: kindle DX Graphite
|
Quote:
firmwares / os-update *.bin isn't the default WinCE 6.0 .bin system... trying to force autorun executibles via 2577 folder on the SD card doesn't work... only few things left is to open the device up and use JTAG, or find a way to decrypt the firmware updates Quote:
Last edited by paperwastage; 03-07-2012 at 06:07 PM. |
||
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Color New to the JetBook world..intrested in buying JetBook Color | PF4Mobile | Ectaco jetBook | 95 | 02-24-2012 05:09 PM |
Color eInk. Jetbook Color Available for Pre Order | X read X | News | 37 | 12-09-2011 01:57 PM |
Nook Color file format questions... | sagiquarion | Nook Color & Nook Tablet | 0 | 03-19-2011 03:43 PM |
DR100OS Scribble Format? | thomega | iRex | 35 | 01-22-2009 05:39 PM |