ImageEn, unit imageenproc




procedure ShiftChannel(OffsetX, OffsetY: Integer; channel: TIEChannel; fillValue: Integer);


Move the specified channel by an offset, filling the blank position with a color.

Parameter Description
OffsetX Specifies the horizontal offset in pixels. This can have negative values
OffsetY Specifies the vertical offset in pixels. This can have negative values
channel The channel to shift: iecBlue, iecGreen or iecRed
fillValue The filling color (this is the channel intensity, because ShiftChannel works on a channel at the time)


// shift to -2 in horizontal and -1 in vertical the Blue channel, filling new areas with 0.
ImageEnView1.Proc.ShiftChannel(-2, -1, iecBlue, 0);

Compatibility Notes

In versions prior to v5.2.0, ShiftChannel() used an integer to specify the channel: 0 = iecBlue, 1 = iecGreen and 2= iecRed