Skip to content

Commit 859b274

Browse files
committed
The script has been updated.
1 parent 95acb34 commit 859b274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/create_transparent_image.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ sub create_transparent_image($source_image, $new_alpha) {
5252
my $dest_image = $im.create_image($width, $height);
5353
exit() unless $dest_image;
5454
$dest_image.context_set();
55-
55+
$im.image_clear();
5656
$im.image_set_has_alpha(True);
5757

5858
my ($red, $green, $blue, $alpha) = (0, 0, 0, 0);

0 commit comments

Comments
 (0)