plug-in-vinvert

Adam D. Moss (adam@foxbox.org)
Mukund Sivaraman <muks@mukund.org>

Description

Invert the brightness of each pixel

Help

This function takes an indexed/RGB image and inverts its 'value' in HSV space. The upshot of this is that the color and saturation at any given point remains the same, but its brightness is effectively inverted. Quite strange. Sometimes produces unpleasant color artifacts on images from lossy sources (ie. JPEG).


Type

unknown

Parameters

Type Name Description
PF_INT run-mode The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }
PF_IMAGE image Input image (used for indexed images)
PF_DRAWABLE drawable Input drawable

Return

None