ImageEn

Preview of Painting and Alpha Methods


The "Every Method" editing demo allows you to preview over 250 editing, analysis and effects methods.

Image Editing Methods
 Analysis Methods
 Color Adjustment Methods
 Color Depth Methods
 Detection Methods
 Effects Methods
 Filter Methods
 Geometric Methods
 Painting and Alpha Methods
 Smoothing Methods
 Other Methods
 Interactive Tools

 Test Images

ImageEnView1.IO.LoadFromFile( 'D:\ImageTest1.jpg' );

  


 AlphaFill

// Gradient fill the alpha channel with fully transparent on the left to fully opaque on the right
ImageEnView1.Proc.AlphaFill( 0, 255, gdHorizontal );

  


 CastAlpha

// Flood file transparency from the top-left of the image
ImageEnView1.Proc.CastAlpha( 0, 0, 0, 50 );

  


 CastColor

// Perform a red flood fill starting at 0,0 (with a tolerance of 10)
ImageEnView1.Proc.CastColor( 0, 0, clRed, 10 );

  


 CastColorRange

// Change all dark values (from dark gray to black) to black
ImageEnView1.Proc.CastColorRange( CreateRGB(0, 0, 0),
                                  CreateRGB(100, 100, 100),
                                  CreateRGB(0, 0, 0));

  


 FeatherAlphaEdges

// Make colors similar to white transparent and then feather the alpha edges
ImageEnView1.Proc.SetTransparentColors( CreateRGB( 156, 156, 156 ), CreateRGB( 255, 255, 255 ), 0 );
ImageEnView1.Proc.FeatherAlphaEdges( 10 );

  


 Fill

// Fill selection with red
ImageEnView1.Proc.Fill( clRed );

  


 GradientFill

// Fill selection with a yellow to red vertical gradient
ImageEnView1.Proc.GradientFill( clYellow, clRed, gdVertical );

  


 PaintMark

// Draw a black pixel every 10 pixels horizontally and vertically
ImageEnView1.Proc.PaintMark( 10, CreateRGB(0, 0, 0) );

  


 inPaint

// Inpaint an area of the image (to fill missing areas of image or erase blemishes)
ImageEnView1.IEBitmap.GetIEVisionImage().InPaint( selRect.Width, selRect.Height, ipRect, rangeSize, ievINPAINT_TELEA );
ImageEnView1.Update();



 Random

// Fill with pixels of random values (Gaussian distribution)
ImageEnView1.Proc.Random();

  


 RemoveChromaKey

// Load Chroma-Key image
ImageEnView1.IO.LoadFromFile( C:\ChromaKey.jpg );



// Guess the background color
KeyColorRGB := ImageEnView1.Proc.GuessChromaKeyColor();

// Remove Chromakey from the image (will become transparent)
ImageEnView1.Proc.RemoveChromaKey( KeyColorRGB, 0.21, 30, 2, 0 );




 SetTransparentColors

// Make colors similar to white transparent
ImageEnView1.Proc.SetTransparentColors( CreateRGB(255, 255, 255), 50, 0 );

  



See Also

 Analysis Methods
 Color Adjustment Methods
 Color Depth Methods
 Detection Methods
 Effects Methods
 Filter Methods
 Geometric Methods
 Painting and Alpha Methods
 Smoothing Methods
 Other Methods
 Interactive Tools