B
bwucke
I need a way to create a picture with Javascript. I know the default
answer is "impossible", but I also know there are hacks and
workarounds, and I'm interested in these.
The particular situation is very specific:
an embedded device is to export screenshots of its own screen:
240x128px in 1-bit "color depth".
The device communicates using AJAX with JSON, it's up to me to choose
what content the JSON is to contain.
The client is to receive the data and display it (then send a click
event to the device, but I can do that)
It doesn't have to be extremely cross-platform (we can get the
operator to use a specific browser and specify minimum system
requirements, though we'd prefer not to).
Due to the number and variety of information that may appear on the
screen, implementing it as HTML replacement to the original
touchscreen interface is not entirely plausible.
I think there was some way to create XBMs on the fly, and there's
always the data: URIs, and if everything else fails, I can create a
240x128 HTML table with 1px cells and change background colors or
place absolute-positioned DIVs.
What are your suggestions? BTW, could you recommend some documentation
of that XBM trick?
answer is "impossible", but I also know there are hacks and
workarounds, and I'm interested in these.
The particular situation is very specific:
an embedded device is to export screenshots of its own screen:
240x128px in 1-bit "color depth".
The device communicates using AJAX with JSON, it's up to me to choose
what content the JSON is to contain.
The client is to receive the data and display it (then send a click
event to the device, but I can do that)
It doesn't have to be extremely cross-platform (we can get the
operator to use a specific browser and specify minimum system
requirements, though we'd prefer not to).
Due to the number and variety of information that may appear on the
screen, implementing it as HTML replacement to the original
touchscreen interface is not entirely plausible.
I think there was some way to create XBMs on the fly, and there's
always the data: URIs, and if everything else fails, I can create a
240x128 HTML table with 1px cells and change background colors or
place absolute-positioned DIVs.
What are your suggestions? BTW, could you recommend some documentation
of that XBM trick?