File: extend.rb

package info (click to toggle)
ruby-vips 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,164 kB
  • sloc: ruby: 3,530; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Vips
  # When the edges of an image are extended, you can specify
  # how you want the extension done.
  # See {Image#embed}, {Image#conv}, {Image#affine} and
  # so on.
  #
  # * `:black` new pixels are black, ie. all bits are zero.
  # * `:copy` each new pixel takes the value of the nearest edge pixel
  # * `:repeat` the image is tiled to fill the new area
  # * `:mirror` the image is reflected and tiled to reduce hash edges
  # * `:white` new pixels are white, ie. all bits are set
  # * `:background` colour set from the @background property

  class Extend < Symbol
  end
end