<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 14: add cropping to TheMatrix</title><link>https://sourceforge.net/p/csjava/feature-requests/14/</link><description>Recent changes to 14: add cropping to TheMatrix</description><atom:link href="https://sourceforge.net/p/csjava/feature-requests/14/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 19 May 2005 07:28:09 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/csjava/feature-requests/14/feed.rss" rel="self" type="application/rss+xml"/><item><title>add cropping to TheMatrix</title><link>https://sourceforge.net/p/csjava/feature-requests/14/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Toby Donaldson</dc:creator><pubDate>Thu, 19 May 2005 07:28:09 -0000</pubDate><guid>https://sourceforge.net972bcfa218b7e1d21e0d4b919c345852fc8f6beb</guid></item></channel></rss>