i add canvas into mine form and want to draw an image which i read from file. but when i run the program my canvas draws nothing. this is how i read the image file: if i do it like this than it draws me something
but if i change generatePixels function like this, i get empty window:
I can't understand what is wrong. I would be really glad if tou helped me
posted 12 years ago
Do you have an old version of generatePixels() hanging around? You call generatePixels(width, height) but the only method we can see declared is
Is this just an error in the typing or do you have another method in your component that matches that signature?