<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 14: add cropping to TheMatrix</title><link href="https://sourceforge.net/p/csjava/feature-requests/14/" rel="alternate"/><link href="https://sourceforge.net/p/csjava/feature-requests/14/feed.atom" rel="self"/><id>https://sourceforge.net/p/csjava/feature-requests/14/</id><updated>2005-05-19T07:28:09Z</updated><subtitle>Recent changes to 14: add cropping to TheMatrix</subtitle><entry><title>add cropping to TheMatrix</title><link href="https://sourceforge.net/p/csjava/feature-requests/14/" rel="alternate"/><published>2005-05-19T07:28:09Z</published><updated>2005-05-19T07:28:09Z</updated><author><name>Toby Donaldson</name><uri>https://sourceforge.net/u/tobydonaldson/</uri></author><id>https://sourceforge.net972bcfa218b7e1d21e0d4b919c345852fc8f6beb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;As we discussed, I'll assign the "cropping" functions&lt;br /&gt;
to you.&lt;/p&gt;
&lt;p&gt;To do this, you could:&lt;/p&gt;
&lt;p&gt;- create a new sub-package in the developers package&lt;br /&gt;
with your SFU&lt;br /&gt;
username as the title&lt;br /&gt;
- make a new interface in this package:&lt;/p&gt;
&lt;p&gt;public interface Cropped {&lt;br /&gt;
public void cropTop(int numPixels);&lt;br /&gt;
public void cropBottom(int numPixels);&lt;br /&gt;
public void cropLeft(int numPixels);&lt;br /&gt;
public void cropRight(int numPixels);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;(I've never implemented cropping before, so this might&lt;br /&gt;
not turn out to be&lt;br /&gt;
the best interface. If you or anyone has other ideas,&lt;br /&gt;
by all means please&lt;br /&gt;
suggest them.)&lt;/p&gt;
&lt;p&gt;- create a new version of TheMatrix in your package&lt;br /&gt;
and call it, say,&lt;br /&gt;
TheCroppedMatrix, and have it extend TheMatrix, e.g.&lt;/p&gt;
&lt;p&gt;class TheCroppedMatrix extends TheMatrix implements&lt;br /&gt;
Cropped {&lt;br /&gt;
// ...&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;To get an idea of how to approach this, Daryl's&lt;br /&gt;
TheButtonMatrix (in&lt;br /&gt;
developers.dvanhumb) does the same sort of thing for a&lt;br /&gt;
different feature.&lt;/p&gt;
&lt;p&gt;- make a demo program that shows how to use the&lt;br /&gt;
cropping features in a&lt;br /&gt;
typical way, e.g. cropping a photo&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>