bluering.nl contact mail a message

This page describes operations on multiple images.

Methods

void addimage(Image24 src2,int w1,int w2,int div)

add src2 channelwise to this image. w1/div is the relative weight of this image, w2/div the relative weight of w2. Choose div=w1+w2 if you want to take an average. This operation is completely channelwise. Alpha has no special meaning
fade=new Image24(im);
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));
out=new Image24(im);
out.addimage(fade,1,1,2);

void pasteover(Image24 im1,int fx,int fy)

place im1 over this picture (using transparency)

void pasteinto(Image24 im1,int fx,int fy)

place im1 in this picture ignoring the previous values

void comparemax(Image24 cp1,Image24 cp2,Image24 src1,Image24 src2)

This function fills this with pixelvalues from src1 and src2. All 4 parameters and this must be equalsized. It is allowed that the parameters equal each other or this. A pixel gets the value from src1 if cp1>=cp2, src2 otherwise.
out=new Image24(im);
out2=new Image24(im);
out2.rot180();
out2.storejpg(new java.io.File("rot180.jpg"));
out.comparemax(out2,out,out,out2);

[click here if you see no menu]