koffice/krita/core
Casper Boemann
cbr at boemann.dk
Mon Mar 28 16:35:50 CEST 2005
On Monday 28 March 2005 16:11, Casper Boemann wrote:
> On Monday 28 March 2005 15:41, Boudewijn Rempt wrote:
> > > regarding mirroring: was that function really needed? I would have
> > > thought taking the layeroffset and image dimensions and calculating a
> > > new layeroffset would be enough.
> >
> > I explicitly didn't want the image dimensions to come into play; if a
> > layer is bigger than an image, I want it mirrored completely, not just
> > the bits inside the image dimensions.
>
> I agree, but still if you just mirror the normal extent
>
> then the change in x offset would be = imagewidth - pre_extent.x - extent.w
sorry, that would give you what the new extent.x should be
but then the change in offset would be:
imagewidth - 2 *pre_extent.x - extent.w
--
best regards / venlig hilsen
Casper Boemann
More information about the kimageshop
mailing list