Grayscale image: Difference between revisions
m
→{{header|Sidef}}: minor code simplifications
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace to the task's preamble, used a "times" (x) glyph instead of dot multiply glyph.) |
m (→{{header|Sidef}}: minor code simplifications) |
||
Line 1,517:
var (width, height) = (img.width, img.height)
var gimg = %s'Image::Imlib2'.new(width, height)
var gray =
gimg.set_color(gray,
}
return gimg
}
var (input='input.png', output='output.png') =
var image = %s'Image::Imlib2'.load(input)
var gscale = tograyscale(image)
|