This file is indexed.

/usr/share/doc/ruby-gdk-pixbuf2/examples/composite.rb is in ruby-gdk-pixbuf2 3.1.0-1+deb9u1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env ruby
=begin
  composite.rb - Ruby/GdkPixbuf sample script.

  Copyright (c) 2002-2016 Ruby-GNOME2 Project Team
  This program is licenced under the same licence as Ruby-GNOME2.

  $Id: composite.rb,v 1.6 2006/06/17 14:38:08 mutoh Exp $
=end

require 'gtk2'

filename = ARGV[0]
unless filename
  puts "ruby #{$0} filename"
  exit(1)
end

src =  GdkPixbuf::Pixbuf.new(:file => filename)

vbox = Gtk::VBox.new

dst = src.composite(:dest_width  => 100,
                    :dest_height => 100,
                    :interp_type => :hyper,
                    :overall_alpha => 255,
                    :check_size => 32,
                    :color1 => 0xFF0000,
                    :color2 => 0x00FF00)
vbox.pack_start(Gtk::Image.new(dst))

dst = GdkPixbuf::Pixbuf.new(:colorspace => :rgb,
                            :has_alpha => true,
                            :bits_per_sample => 8,
                            :width =>200,
                            :height => 200)
dst.composite!(src,
               :dest_width => 200,
               :dest_height => 200,
               :scale_x => 1.8,
               :scale_y => 1.8,
               :interp_type => :hyper,
               :overall_alpha => 200)
vbox.pack_start(Gtk::Image.new(dst))

dst = GdkPixbuf::Pixbuf.new(:colorspace => :rgb,
                            :has_alpha => true,
                            :bits_per_sample => 8,
                            :width =>200,
                            :height => 200)
dst.composite!(src,
               :dest_x => 10,
               :dest_y => 10,
               :dest_width => 180,
               :dest_height => 180,
               :offset_x => 15,
               :offset_y => 15,
               :scale_x => 3,
               :scale_y => 2,
               :overall_alpha => 200,
               :check_x => 100,
               :check_y => 100,
               :check_size => 16,
               :color1 => 0x999999,
               :color2 => 0xdddddd)
vbox.pack_start(Gtk::Image.new(dst))

window = Gtk::Window.new.add(vbox)
window.signal_connect('delete-event') do
  Gtk.main_quit
end

window.show_all

Gtk.main