Re: [Gimp-developer] Double tile iterators?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 04, 2002 at 07:06:36PM +0200, Simon Budig wrote:

> This is not correct. Please note that the data pointer still points
> inside the complete tile. By simply accessing the pixel data linearily
> you might leave the region indicated by the pixel region. To do this
> properly you have to iterate over the rows separately (select_rgn.w *
> select_rgn.bpp bytes) and then add select_rgn.rowstride to the adress
> where line starts. Have a look at
>  http://www.home.unix-ag.org/simon/gimp/guadec2002/gimp-plugin/html/efficientaccess.html
> 
> there is a small graphics illustrating this. Sample code is also there.

Thanks 1e6 for that Simon!  This is a very useful resource - so useful in
fact that I decided to scrap my existing plug-in and use the example as a
new starting point.  It's now progressing quite nicely.

Thanks again.  Best wishes,
			Bill.


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux