class Vips::TargetCustom

A target you can attach action signal handlers to to implememt custom output types.

For example:

“‘ruby file = File.open “some/file/name”, “wb” target = Vips::TargetCustom.new target.on_write { |bytes| file.write bytes } image.write_to_target target, “.png” “`

(just an example – of course in practice you’d use {Target#new_to_file} to write to a named file)