Hi Michael and all, thanks for your orientation. I did use repaint, I
found I had a bug building sorce rect, now repaint works and dont need
to call any other update for me. Sorry for the inconvenience. I have
not use overlays but I was wondering how to do some kind of masks, I
guess this is like using overlays, so I will check this. Thanks again.
Best regards, Airen
On Fri, Oct 7, 2011 at 11:04 AM, Michael Schmid <
[hidden email]> wrote:
> Hi Airen,
>
> have you tried repaint instead of paint?
> See
>
http://java.sun.com/products/jfc/tsc/articles/painting/index.html>
> By the way, did you consider to use ImageJ overlays? Maybe they provide an
> easier way for doing what you want, e.g. showing the outline of a particle.
>
> Michael
> ________________________________________________________________
>
> On 7 Oct 2011, at 10:56, Airen Zaldívar Peraza wrote:
>
>> Hi all, I have this problem with my application:
>>
>> I need to update ImageCanvas source rect when a particle from my
>> application is choosen. I have tried several options, setImageUpdated,
>> imp.updateImage, updateAndDraw, imp.repaintWindow, but none works
>> well. On my app I inherit from ImageCanvas and on paint call
>> super.paint and afterwords paint some rectangles to highlight my
>> particles.
>>
>> Any help would be appreciated. Best regards, Airen
>