Page 1 of 1

BitmapDirectExpression

Posted: Wed Sep 12, 2012 12:29 pm
by darkhog
I'd like to have variant of BitmapExpression where I can access pixels directly and change their value, instead of having access to only current processed pixel's RGBA value.

So I can do it like this:

this.Pixel(0.2,0.5).R=0.5*this.Pixel(0.6,0.11).B+this.Pixel(0.2,0.5).G;

This way we could do much more with knowing each pixel RGBA values (fractals, anyone?) than we can do with knowing only current x/y and current pixel's RGBA values.

Of course BitmapExpression should remain, for compatibility reasons (old projects would break if it would be replaced by BitmapDirectExpression) and for things where BDE isn't needed.