bluering.nl contact mail a message

Methods

void colorreplace(int oldv,int newv)

replace the oldv pixelvalue with the newv pixelvalue

void colorreplace(int rmin,int rmax,int gmin, int gmax,int bmin, int bmax, int amin, int amax,int newv)

give all pixels that fall in the given boundaries the newv value Pixels are replaced if rmin<=red<rmax, gmin<=green<gmax,etc.

void colorreplace(int oldv,Image24 im2)

replace a color by the given image. The image is repeated if it is too small

void replacegradient(int oldv,int x1,int y1,int x2,int y2, int c1,int c2)

replace oldv with a gradient color: x1,y1 will have color c1, * x2,y2 will have color c2, inbetween pixels will get a color inbetween.
fade.fill(0);
fade.replacegradient(0,0,0,im.sx-1,im.sy-1,
im.color(255,220,240,255),im.color(0,30,0,255));

[click here if you see no menu]