CopyRect from one Bitmap to another
Posted on 2004-08-04
I have got a camera image 240x320 px which comes 6 times
per second. I need to copy a specific part out of the image
into another one. This must be really fast !!! I tried using
the canvas.CopyRect function (code below) but this is extremely
slow and makes my CPU going up to 100%.
I need a working solution (code) very fast.
Thanks a lot
My code example:
b.Width := 320;
b.Height := 240;
n := TBitmap.Create;
n.width := 190;
n.height := 100;
//THIS IS SO SLOW !!!
image1.Picture.Bitmap := b;