Thank you for the clarification. Based on your feedback I have changed my design slightly. I now want to create a plugin that loads in an image from a file, then loads another image from a seperate file, and then overlays the second image over part of the first, then loads it into the current layer.
My first issue is I do not know how to open the files from within the code. I can use a dialog box when the plug in is called where the users enters "C:\..../myfile.jpg" (the address of each file). This is no problem using the CodeLab plugin. However, I do not know the commands I need to then open each file into my plugin, so I can manipulate the image file and add it it to my current image. Can you point me in the direction of some example code please?
The second issue is resizing the images. Again, do you know of any examples of code or in-built functions that I can call to resize an image once loaded into memory?
Thanks in advance for any help.
Paul