I have an app where you can resize an image with your fingers. At the moment, the resizing is a bit slow. im using the standard Juce `Image.rescaled’ method.
My question is how to do this as efficiently (quickly) as possible. Firstly, is there some way to make OpenGL do the scaling for me. If I make my component use the OpenGL renderer (ie attach to an OGL context), i believe it’s using openGL for some things, however, there appears to be no difference in performance. Also, `paint’ is now called twice, is this normal?
For example, for OGL, should i be creating the image as a `OpenGLImageType’ for this to work. It feels like it’s using software to scale then using OGL to render. am i right, and is there a way to use opengl to scale.
thanks for any tips.