bluering.nl contact mail a message

Methods

Image24 scale(int newx, int newy)

returns a scaled version of the current image. newx is the new width newy is the new height.

void transform(Image24 src,double x1,double x2, double tx, double y1, double y2,double ty,int background)

rotate/translate src nto this image (previous content is overwritten) according to the matrix
x   x1 x2 tx   srcx
y = y1 y2 ty * srcy
1   0 0 1   1
it sets every pixel of this Image with the rotated contents of src, or with the value background

rotate(Image24 src,double x,double y,double cxt,double cyt,double deg,double scale)

rotate src into this Image24. This Image24 is completely overwritten. x is the horiz. coordinate of the center of rotation of src. y is the vertical coordinate of the center of rotation of src. cxt is the horiz. coordinate of the new position of the center of rotation in this Image24. cyt is the vertical coordinate of the new position of the center of rotation in this Image24. deg is the rotation angle in degrees. positive means counterclockwise. scale is the magnification factor of the image. set it to 1 for no scaling.

Image24 newrotatedcopy(double deg,double scale)

return a rotated copy of this Image24. deg is the rotation angle in degrees. positive means counterclockwise scale is the magnification factor of the image
out=im.newrotatedcopy(45,0.7);

void translate(int dx,int dy)

slide/shift/translate the image. The image in wrapped around: anything shifted out will shift in at a different position.
out.translate(out.sx/2,out.sy/2);

void rot180()

Rotate an image 180 degrees.
out.rot180();

[click here if you see no menu]