ImageEn, unit imageenproc |
|
TImageEnProc Alpha and Painting Method Testing
Testing of TImageEnProc Alpha and Painting Methods
These images were generated using the demo:
\Demos\InputOutput\EveryMethod\EveryMethod.dpr
All Test Results-
Analysis Methods-
Color Adjustment Methods-
Color Depth Methods- Alpha and Painting Methods-
Effects Methods-
Geometric Methods-
Filter Methods-
Smoothing Methods-
Other Methods
// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.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));

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) );

PaintPenMarker
// Draw a pointer over the image (where background is close to white)
// Set PaintPenMarker_Background_Tolerance to MAXINT to force pointer drawing
ImageEnView1.Proc.PaintPenMarker( ImageEnView1.IEBitmap.Width div 5,
ImageEnView1.IEBitmap.Height div 8,
30,
clRed, clWhite, PaintPenMarker_Background_Tolerance );

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

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- Alpha and Painting Methods-
Effects Methods-
Geometric Methods-
Filter Methods-
Smoothing Methods-
Other Methods