ImageEn

TImageEnView.SelectShape Code Samples


Code samples for SelectShape.
Automatically generated by the Every Method demo.
// Automated test of SelectShape - Typical Values
// Add a "Heart" shape selection and clear
ImageEnView1.SelectionBase := iesbBitmap;
ImageEnView1.SelectShape( 80, 80, ImageEnView1.IEBitmap.Width - 80, ImageEnView1.IEBitmap.Height - 80, iesHeart );
ImageEnView1.InvertSelection( True );
ImageEnView1.Proc.ClearSel( True );



// Automated test of SelectShape - Alpha Channel - Typical Values
// Add a "Heart" shape selection and clear
ImageEnView1.SelectionBase := iesbBitmap;
ImageEnView1.SelectShape( 80, 80, ImageEnView1.IEBitmap.Width - 80, ImageEnView1.IEBitmap.Height - 80, iesHeart );
ImageEnView1.InvertSelection( True );
ImageEnView1.Proc.ClearSel( True );



// Automated test of SelectShape - 32-Bit RGBA - Typical Values
// Add a "Heart" shape selection and clear
ImageEnView1.SelectionBase := iesbBitmap;
ImageEnView1.SelectShape( 80, 80, ImageEnView1.IEBitmap.Width - 80, ImageEnView1.IEBitmap.Height - 80, iesHeart );
ImageEnView1.InvertSelection( True );
ImageEnView1.Proc.ClearSel( True );



// Automated test of SelectShape - 1-bit - Typical Values
// Add a "Heart" shape selection and clear
ImageEnView1.SelectionBase := iesbBitmap;
ImageEnView1.SelectShape( 80, 80, ImageEnView1.IEBitmap.Width - 80, ImageEnView1.IEBitmap.Height - 80, iesHeart );
ImageEnView1.InvertSelection( True );
ImageEnView1.Proc.ClearSel( True );



// Automated test of SelectShape - Random Values
// Add a "Dinosaur" shape selection and discard red and green channels
ImageEnView1.SelectionBase := iesbBitmap;
ImageEnView1.SelectShape( 80, 80, ImageEnView1.IEBitmap.Width - 80, ImageEnView1.IEBitmap.Height - 80, iesDinosaur );
ImageEnView1.MakeSelectionFeather( 15 );
ImageEnView1.Proc.Proc.DisposeChannels( 'B00' );



// Automated test of SelectShape - Alpha Channel - Random Values
// Add a "Dinosaur" shape selection and discard red and green channels
ImageEnView1.SelectionBase := iesbBitmap;
ImageEnView1.SelectShape( 80, 80, ImageEnView1.IEBitmap.Width - 80, ImageEnView1.IEBitmap.Height - 80, iesDinosaur );
ImageEnView1.MakeSelectionFeather( 15 );
ImageEnView1.Proc.Proc.DisposeChannels( 'B00' );



// Automated test of SelectShape - 32-Bit RGBA - Random Values
// Add a "Dinosaur" shape selection and discard red and green channels
ImageEnView1.SelectionBase := iesbBitmap;
ImageEnView1.SelectShape( 80, 80, ImageEnView1.IEBitmap.Width - 80, ImageEnView1.IEBitmap.Height - 80, iesDinosaur );
ImageEnView1.MakeSelectionFeather( 15 );
ImageEnView1.Proc.Proc.DisposeChannels( 'B00' );



// Automated test of SelectShape - 1-bit - Random Values
// Add a "Dinosaur" shape selection and clear
ImageEnView1.SelectionBase := iesbBitmap;
ImageEnView1.SelectShape( 80, 80, ImageEnView1.IEBitmap.Width - 80, ImageEnView1.IEBitmap.Height - 80, iesDinosaur );
ImageEnView1.MakeSelectionFeather( 15 );
ImageEnView1.Proc.ClearSel( True );