We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I need to use loadImage to get the image size and then pass the parameters to size. How to do this in PS3?
http://forum.processing.org/two/discussion/12416/can-i-count-on-width-being-a-constant-final
Thank you! So there is no way this would work?
PImage source; // Imagem original PImage destination; // Imagem de destino int algoritmo = Dither.FLOYD_STEINBERG; //Determina o algoritmo Dither dither = new Dither(algoritmo); //Instancia o filtro int tempoTexto = (4 * 30) + 255; String texto = ""; void settings(){ source = loadImage("trabalho.png"); size(source.width, source.height); }
Inside settings() no way! Pay attention to the code examples from the link I've passed to ya! 3:-O
GoToLoop, thank you very much! It's working now, but this is not documented in the reference, right?
I'll just post the code here for future references:
PImage source; // Imagem original PImage destination; // Imagem de destino int algoritmo = Dither.FLOYD_STEINBERG; //Determina o algoritmo Dither dither = new Dither(algoritmo); //Instancia o filtro int tempoTexto = (4 * 30) + 255; String texto = ""; void setup() { //Carrega a imagem original source = loadImage("trabalho.png"); surface.setSize(source.width, source.height);
Anything involving variable surface and the old frame is undocumented! :-& They had even protected surface's access level, dunno why! 8-} In order to access surface's outside its class, we need its getSurface()'s "getter"! X(
protected
Answers
http://forum.processing.org/two/discussion/12416/can-i-count-on-width-being-a-constant-final
Thank you! So there is no way this would work?
Inside settings() no way! Pay attention to the code examples from the link I've passed to ya! 3:-O
GoToLoop, thank you very much! It's working now, but this is not documented in the reference, right?
I'll just post the code here for future references:
Anything involving variable surface and the old frame is undocumented! :-&
They had even
protected
surface's access level, dunno why! 8-}In order to access surface's outside its class, we need its getSurface()'s "getter"! X(