Determine visible part of figure [message #65264] |
Tue, 18 February 2003 09:25 |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
I have big and complex figure. Figure is so big, that user can see only
small part of it in scrolled window. I would like to optimize drawing by
drawing only visible part of figure. Of course, Graphics clips invisible
parts, but I don't want even try to draw them, because this is waste of
CPU. How can I determine visible part of figure?
--
SY, Kosta.
|
|
|
Re: Determine visible part of figure [message #65285 is a reply to message #65264] |
Tue, 18 February 2003 13:24 |
Eclipse User |
|
|
|
Originally posted by: ondrej.chylik.disnet-software.com
Hi,
graphics.getClipRect(aRectangle) called in your paintFigure(graphics) should give you the area that actually gets painted.
Regards,
Ondrej
"Konstantin Scheglov" <scheglov_ke@nlmk.ru>:
> I have big and complex figure. Figure is so big, that user can see only
> small part of it in scrolled window. I would like to optimize drawing by
> drawing only visible part of figure. Of course, Graphics clips invisible
> parts, but I don't want even try to draw them, because this is waste of
> CPU. How can I determine visible part of figure?
>
> --
> SY, Kosta.
|
|
|
Powered by
FUDForum. Page generated in 0.02987 seconds