ImageEn, unit imageenproc

TImageEnProc.DisposeChannels

TImageEnProc.DisposeChannels


Declaration

procedure DisposeChannels(const newDispo: String);


Description

Changes the channel order from BGR to the specified one.
Parameter Description
newDispo A string of three characters, one for each channel ('RGB', 'RBG', etc). Can contain also '0' to set a channel to zero. You can also replicate the same channel: 'RRR' or 'GGG', etc.

The default disposition is 'BGR'.

Note: If the image PixelFormat is not ie24RGB or ie48RGB, it will be converted


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Examples

// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

  

 // Set Blue and Green channels to 0, leaving only Red
ImageEnView1.Proc.DisposeChannels( '00R' );

  

// Invert the Red and Blue channels
ImageEnView1.Proc.DisposeChannels( 'RGB' );