[Gimp-developer] PixelRegions?
Frédéric
frederic.mantegazza at gbiloba.org
Fri Jun 16 13:52:09 PDT 2006
On Friday 16 June 2006 21:41, Michael Thaler wrote:
> Can someone explain to me why the code iterates over all pixels in a
> region and then over all regions and not just over all pixels in a
> layer? What are PixelRegions actually, what are they used for and why
> they are needed here? (I had a look at
> http://developer.gimp.org/api/2.0/app/app-pixel-region.html but this
> doesn't explain what they are for)
As far as I understand, a region can be what you want; it can cover a
entire layer, or just a small part (like the preview for plug-ins. Have a
look here:
http://developer.gimp.org/writing-a-plug-in/2/index.html
When you have initialized a region, you can access it pixel by pixel, row
by row, or tile by tile, depending what you want to do (I guess each
method has advantages, according to the filter you want to write).
--
Frédéric
http://www.gbiloba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /lists/gimp-developer/attachments/20060616/3ee82e77/attachment.bin
More information about the Gimp-developer
mailing list