if (do_name() != 'Home') : ?>
endif ?>
Posted by Tom De Smedt on Dec 27, 2007
include("util/comment.php"); ?>
Hi Duane,
The image() command is for putting an image from file on the screen. The Core Image layer_bytes() command is for creating an image layer from the byte data in an image file.
There is currently no support to set individual image pixels, unless you know how to transform a pixel array to a byte string (if someone does know, please share).
However, I have a solution (slow set_pixel() command) ready and will update the Core Image library asap.
Simple bitmap?
Posted by Duane Bailey on Dec 24, 2007Hey NodeBox people!
I found about this wonderful program today, and I wanted to try it out with a simple mandelbrot generator.
However, I'm stuck on a simple issue: bitmaps. Apparently they aren't supported with the default image() command... strange in itself.
So then I found Core Image, and a function called layer_bytes caught my attention; I attempted to pass it a two-dimensional array of ints. No avail. Same with a one array with w and h set, a data string of my data, and an NSData (TIFFRepresentation.)
However, on the last one, I did get a mangled black/color speckled square, so I suspect it's the closest.
The documentation just said it takes a data string, but what does that mean?
best code: