Lib_effects -       .

function effect(img : Image; mode : integer) : Image;
public static Image effect(Image img, int mode) -    

img -  ;
mode -    :
   0  -  ;
   1  -  ;
   2  -   -       20;
   3  -   -        20;
   4  -  ;
   5  -  ;
   6  -  ;

function change(img : Image; ch : integer; val : integer) : Image;
public static Image change (Image img, int ch, int val) -      val.

img -  ;
ch - :
   0  -  alpha;
   1  -  red;
   2  -  green;
   3  -  blue;
val -  (   )   .


function get(img : Image; x, y, ch : integer) : integer;
public static int get (Image img, int x, int y, int ch) -        .

img -  ;
ch - :
   0  -  alpha;
   1  -  red;
   2  -  green;
   3  -  blue;
int x  int y -   .


function saturation(img : Imagel val : integer) : Imaage;
public static Image saturation(Image img, int val) -  .

img -  ;
val -   0  255   ,    .


function changecolor(img : Image; r1, g1, b1, a2, r2, g2, b2 : integer): Image;
public static Image changecolor(Image img, int r1, int g1, int b1, int a2, int r2, int g2, int b2) -   r1g1b1  r2g2b2   a2

img -  ;
r1,g1,b1,r2,g2,b2 - 
a2 - 


30.01.09
: aNNiMON