I have implemented the inversion this way:
alpha = 255 - pixel.GetChannel(3);
and it works perfect now :-)
Is there a way to identify what each channel is reprecenting Red/Green/Blue/Alpha/Cyan and so on?
alpha = 255 - pixel.GetChannel(3);
and it works perfect now :-)
Is there a way to identify what each channel is reprecenting Red/Green/Blue/Alpha/Cyan and so on?