Forum > BGRABitmap and LazPaint

Updating Only The Changed Part Of A Bitmap

(1/1)

Rails:
Is there any way to repaint only part of a bitmap? I am using BGRAVirtualScreen.Bitmap.PutImage to update the virtual screen, then calling repaint. I would like to somehow mask the process so that only the changed part of the source bitmap is redrawn on the virtual screen. The idea is to speed up the redraw process, hopefully substantially. Can this be done?

Thanks.

circular:
In order to redraw only a part with the PutImage, you can use ClipRect property.

In order to update only a part of the virtual screen to the form, you can use InvalidateRect or something like that.

Rails:
Thanks Circular. I'll give it a try.


Navigation

[0] Message Index

Go to full version