Hi,
I am looking for a performant way to split one IEBitmap into two IEBitmaps using a Mask/AlphaChannel and a negative of the Mask/AlphaChannel:
AImageEnVectMaskP.IEBitmap.Width := ASourceImage.Width;
AImageEnVectMaskP.IEBitmap.Height := ASourceImage.Height;
AImageEnVectMaskP.Proc.Random(0.8, 0.1);
AImageEnVectMaskP.Proc.ConvertToBWOrdered;
AImageEnVectMaskP.IEBitmap.PixelFormat := ie1g;
AImageEnVectMaskN.IEBitmap.Width := AImageEnVectMaskP.IEBitmap.Width;
AImageEnVectMaskN.IEBitmap.Height := AImageEnVectMaskP.IEBitmap.Height;
AImageEnVectMaskN.IEBitmap.AssignImage(AImageEnVectMaskP.IEBitmap);
AImageEnVectMaskN.Proc.Negative;
{
???
ASourceImage --> ADestImageP (only pixels using positive mask)
--> ADestImageN (only pixels using negative mask)
}
Please help me, I cant't find the the matching methods :-(
Thanks in advance,
Marc