12-16-2017, 04:15 PM
Hi everyone.
I'm writing a plugin to automate some processes. I'm sticking to Python because I've had issues with C and Scheme.
Consider an image opened in GIMP with a zoom large enough to cause only part of the image to be seen. So, you can scroll the viewport around to see other parts of the image.
I want to know what code I have to use to know which pixels are visible, so I can add a layer to the image to a position where it will be visible in my current zoom setting.
I'm using GIMP 2.8.20 on Windows 7 Ultimate x64.
Thanks in advance.
I'm writing a plugin to automate some processes. I'm sticking to Python because I've had issues with C and Scheme.
Consider an image opened in GIMP with a zoom large enough to cause only part of the image to be seen. So, you can scroll the viewport around to see other parts of the image.
I want to know what code I have to use to know which pixels are visible, so I can add a layer to the image to a position where it will be visible in my current zoom setting.
I'm using GIMP 2.8.20 on Windows 7 Ultimate x64.
Thanks in advance.