1. Shlomi Fish
  2. GIMP Test Suite

Commits

shl...@b2b4ac75-4df0-0310-84b2-a54a85d66599  committed 3401eeb

Valid-Output:

Added the perspective-1 scripts.

  • Participants
  • Parent commits 250c199
  • Branches default

Comments (0)

Files changed (2)

File gimp-tests/valid-output/gen-scripts/perspective-1.pl

View file
  • Ignore whitespace
+#!/usr/bin/perl -w
+
+use strict;
+use warnings;
+
+use constant TRANSFORM_FORWARD => 0;
+use constant INTERPOLATION_CUBIC => 2;
+# This is done to execute the test wrapper.
+require GimpTest::Run;
+
+# This function will be modified from script to script.
+sub gen_image
+{
+    my $img = load_input_file("tiger_sitting.png");
+
+    gimp_rect_select($img, 20, 30, 70, 50, CHANNEL_OP_REPLACE(), 0, 0);
+
+    gimp_drawable_transform_perspective (get_layer($img), 
+        10, 10, 100, 20, 
+        50, 80, 130, 60,
+        TRANSFORM_FORWARD(),
+        INTERPOLATION_CUBIC(),
+        1,
+        3,
+        0);
+
+    return { 'image_id' => $img };
+}
+

File gimp-tests/valid-output/output-sigs/perspective-1.yml

View file
  • Ignore whitespace
+--- #YAML:1.0
+hash_functions:
+  - md5
+hash_values:
+  md5: bbc5074bc90cdc4cdef7cdd33bdc2823
+length: 220278