ImageProcessing::Processor(Acc)
Abstract class inherited by individual processors. Acc is the
accumulator class the processor works with (e.g. Vips::Image or
MiniMagick::Tool) — the Crystal equivalent of the Ruby version's
accumulator macro and ACCUMULATOR_CLASS constant.
Constructors
Class methods
Loads the image from source (a path or accumulator object) into the processor's accumulator. Implemented by subclasses.
Writes the accumulator to the destination path. Implemented by subclasses.
Instance methods
Calls the operation to perform the processing. If the operation is defined on the processor (macro), calls the method (dispatch table generated at compile time from the subclass's public methods). Otherwise calls the operation directly on the accumulator object via #run_operation. This provides a common umbrella above defined macros and direct operations.
Calls the given block with the accumulator object. Useful for when you want to access the accumulator object directly.