[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bitmap image offset bug solution
From: |
Pete French |
Subject: |
Bitmap image offset bug solution |
Date: |
Mon, 28 Jan 2002 15:29:57 +0000 |
In DPSimage at line 1758 the origin of the rectangle is set equal to
"point". But the resulting rectangle is passed to viewRectToX: which
takes vew co-oridinates, and as DPSimage is called with the view translated
and scaled such that the image starts at 0,0 then this leads to the offset
being applied twice - which is why the imagescome out in the wrong place.
Simply removing this line fixes the bug as the origin becomes 0,0 from
the initialisation at line 1700.
I think I've got this right, but given the recent discussions about
co-oprdinate transformations on -discuss then I'd like someone to
verify it.
cheers,
-bat.
- Bitmap image offset bug solution,
Pete French <=