trichview.com

trichview.support




Re: change a picture inside richview


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/17/2004 21:00:10


It depends on what you call "redraw image".

If it's about redrawing RichView's window part where these images are

located, it must not happen. Only the rectangle specified in InvalidateRect

is redrawn.

If it's about calling drawing methods for pictures - yes, it's possible. On

each redrawing, RichView determines a range of items to redraw, including

all items inside the area to redraw, some items below and some items above

it.

If you want to implement something like image animation directly in RichView

canvas, without using inserted components, this method (calling

InvalidateRect) is not efficient.

You can try to draw directly on TRichView.Canvas, to avoid calling

TRichView.Paint procedure.



> Kind Sergey,

>

> I put all images as RvBlendPng extension,

> Png's take cpu time to draw (take from packet zlib stream and unpack to

> bitmap32bit memory).

>

> Also if I use InvalidateRect over 1 single image, then richview redraw all

> the images!

>

> How to avoid this behavior?

>

> Perhaps a screenshot sent to you will be useful?

>

> Thanks

> Roberto





Powered by ABC Amber Outlook Express Converter