|
From: Thomas J. <ntm...@gm...> - 2005-05-19 20:57:58
|
On 5/18/05, Toby Donaldson <tj...@sf...> wrote:
> public interface Cropped {
> public void cropTop(int numPixels);
> public void cropBottom(int numPixels);
> public void cropLeft(int numPixels);
> public void cropRight(int numPixels);
> }
>=20
> (I've never implemented cropping before, so this might not turn out to be
> the best interface. If you or anyone has other ideas, by all means please
> suggest them.)
Might also be worth adding a "cropToRectangle(upperLeftX, upperLeftY,
lowerRightX, lowerRightY)" for easier photoshop-style cropping, as
well as specifying a default behaviour for the case that numPixels >
MatrixWidth
|