Code samples for Threshold.
Automatically generated by the Every Method demo.
// Automated test of Threshold - Typical Values
// Threshold - Black if < 64, White if > 255
ImageEnView1.Proc.Threshold( CreateRGB( 64, 64, 64 ), CreateRGB( 255, 255, 255 ), CreateRGB(0, 0, 0), CreateRGB(255, 255, 255) );

// Automated test of Threshold - Alpha Channel - Typical Values
// Threshold - Black if < 64, White if > 255
ImageEnView1.Proc.Threshold( CreateRGB( 64, 64, 64 ), CreateRGB( 255, 255, 255 ), CreateRGB(0, 0, 0), CreateRGB(255, 255, 255) );

// Automated test of Threshold - 32-Bit RGBA - Typical Values
// Threshold - Black if < 64, White if > 255
ImageEnView1.Proc.Threshold( CreateRGB( 64, 64, 64 ), CreateRGB( 255, 255, 255 ), CreateRGB(0, 0, 0), CreateRGB(255, 255, 255) );

// Automated test of Threshold - Random Values
// Threshold - Black if < 0, White if > 10
ImageEnView1.Proc.Threshold( CreateRGB( 0, 0, 0 ), CreateRGB( 10, 10, 10 ), CreateRGB(0, 0, 0), CreateRGB(255, 255, 255) );

// Automated test of Threshold - Alpha Channel - Random Values
// Threshold - Black if < 0, White if > 10
ImageEnView1.Proc.Threshold( CreateRGB( 0, 0, 0 ), CreateRGB( 10, 10, 10 ), CreateRGB(0, 0, 0), CreateRGB(255, 255, 255) );

// Automated test of Threshold - 32-Bit RGBA - Random Values
// Threshold - Black if < 0, White if > 10
ImageEnView1.Proc.Threshold( CreateRGB( 0, 0, 0 ), CreateRGB( 10, 10, 10 ), CreateRGB(0, 0, 0), CreateRGB(255, 255, 255) );
