Graphic optimisation

Hi all !

I need to optimize the Graphics part of a juce part and i have a question concerning repaint internals.

When a selective repaint is called( repaint(x,y,w,h) ) does the DrawImage functions used in the paint funcion handle the selected zone and proceed to a shrinked blit ?

Thx !

Of the drawing to paint for the paint function handle
Only repaint the last area the parameters in the show repaint.

español: del dibujo a pintar por la función paint
solo repinta el área pasada por los parámetros en la función repaint.

No idea what yosvaniscc was trying to say, but the answer’s yes - of course only the dirty regions are repainted.

Did you know about the JUCE_ENABLE_REPAINT_DEBUGGING flag?

Waow. That’s Handy !

@yosvaniscc :
Which translator do you use ?

I used Google translator on the Spanish string you had posted and got much better result than what you got with your translator.

This is the translation I got for the Spanish text you had posted.

from drawing to painting in the paint function
just repaint the area passed through the repaint function parameters.

You should try Google translator.

español: ¿Qué traductor utiliza?
Yo traductor de Google en la cadena de español que había publicado, pero he resultado mucho mejor que lo que tienes con su traductor.

Esta es la traducción que conseguí en Inglés

from drawing to painting in the paint function
just repaint the area passed through the repaint function parameters.

Usted debe tratar de traductor de Google.

I’m used Word Magic Translator Professional Plus

vishvesh muchas gracias.

Es un gran placer