Method: Vips::Image#copy
- Defined in:
- lib/vips8/methods.rb
permalink #copy(opts = {}) ⇒ Vips::Image
Copy an image.
Parameters:
-
opts
(Hash)
(defaults to: {})
—
Set of options
Options Hash (opts):
-
:width
(Integer)
—
Image width in pixels
-
:height
(Integer)
—
Image height in pixels
-
:bands
(Integer)
—
Number of bands in image
-
:format
(Vips::BandFormat)
—
Pixel format in image
-
:coding
(Vips::Coding)
—
Pixel coding
-
:interpretation
(Vips::Interpretation)
—
Pixel interpretation
-
:xres
(Float)
—
Horizontal resolution in pixels/mm
-
:yres
(Float)
—
Vertical resolution in pixels/mm
-
:xoffset
(Integer)
—
Horizontal offset of origin
-
:yoffset
(Integer)
—
Vertical offset of origin
Returns:
-
(Vips::Image)
—
Output image
|
# File 'lib/vips8/methods.rb', line 257
|