### ----------------------------------------------------
### -- Imlib2
### -- Licenses: Artistic-2.0
### -- Authors: Naoum Hankache, Henrique Dias
### -- File: t/08-image_modification.t
### ----------------------------------------------------
use v6;
use Test;

plan 11;

use Imlib2;

my $im = Imlib2.new();
my $raw_image = $im.create_image(200, 200);
$raw_image.context_set();

lives-ok { $im.image_flip(IMLIB_FLIP_HORIZONTAL); }, 'imlib_image_flip_horizontal';
lives-ok { $im.image_flip(IMLIB_FLIP_VERTICAL); }, 'imlib_image_flip_vertical';
lives-ok { $im.image_flip(IMLIB_FLIP_DIAGONAL); }, 'imlib_image_flip_diagonal';

lives-ok { $im.image_orientate(IMLIB_ROTATE_90_DEGREES); }, 'image_orientate - rotate 90 degrees';
lives-ok { $im.image_orientate(IMLIB_ROTATE_180_DEGREES); }, 'image_orientate - rotate 180 degrees';
lives-ok { $im.image_orientate(IMLIB_ROTATE_270_DEGREES); }, 'image_orientate - rotate 270 degrees';

lives-ok { $im.image_blur(12); }, 'image_blur is set to 12';

lives-ok { $im.image_sharpen(20); }, 'image_sharpen is set to 20';

lives-ok { $im.image_tile(); }, 'image_tile';
lives-ok { $im.image_tile(IMLIB_TILE_HORIZONTAL); }, 'imlib_image_tile_horizontal';
lives-ok { $im.image_tile(IMLIB_TILE_VERTICAL); }, 'imlib_image_tile_vertical';

$im.free_image();


