Passing argument to function #2441
-
Hello Everone, I am trying to modify the function, to pass the argument (xpos, ypos) to the function to be able to write the multiple images on display without defining the multiple functions.
Here is the code with modified function
Am I missing something here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The functions you are trying to adapt are part of the PNGdec library. You would need to modify the source code in that library. The simplest option is to use the original example sketch approach and just set xpos and ypos variables to the desired position before calling png.openFLASH. |
Beta Was this translation helpful? Give feedback.
The functions you are trying to adapt are part of the PNGdec library. You would need to modify the source code in that library.
The simplest option is to use the original example sketch approach and just set xpos and ypos variables to the desired position before calling png.openFLASH.