
Lib_canvas -     

---------------------------------------------------------------------------------------------------------------

copyarea(integer xs, integer ys, integer width, integer height, integer xd, integer yd, integer anchor)
    -     width   height,    (xs, ys)
        (xd, yd)
    
setgrayscale(integer s) -    ,     (0..255)

translate(integer x, integer y) -      (x, y).
          .

integer gettranslatex -  X   

integer gettranslatey -  Y   

image rotate_image_from_image(image im, integer x, integer y, integer width, integer height, integer trans)
    -          
    x, y -   
    width, height -     
    trans -  ,   :
    0 -   
    5 -   90 
    3 -   180 
    6 -   270 
    2 -  
    7 -      90 
    1 -      180 
    4 -      270 
    
image resize_image(image im, integer width, integer height)
    -    im.       .
    width, height -     
