Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added _0_-odbicieV.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _1_-odbicieV-odbicieH.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _2_-odbicieV-odbicieH-skala.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _3_-odbicieV-odbicieH-skala-wygladzanie.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _odbicieHp1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _odbicieHp2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _odbicieVp1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _odbicieVp2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _skalap1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _skalap2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _wygladzaniep1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _wygladzaniep2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _znieksztalceniep1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _znieksztalceniep2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
654 changes: 501 additions & 153 deletions nbproject/build-impl.xml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions nbproject/genfiles.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
build.xml.data.CRC32=49fdb6cc
build.xml.script.CRC32=c6acc839
build.xml.stylesheet.CRC32=8064a381@1.80.1.48
build.xml.stylesheet.CRC32=f85dc8f2@1.90.1.48
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=49fdb6cc
nbproject/build-impl.xml.script.CRC32=03312df5
nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
nbproject/build-impl.xml.script.CRC32=aeb8e2f3
nbproject/build-impl.xml.stylesheet.CRC32=3a2fa800@1.90.1.48
12 changes: 12 additions & 0 deletions nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
debug.modulepath=\
${run.modulepath}
debug.test.modulepath=\
${run.test.modulepath}
#Wed Apr 05 20:49:43 CEST 2017
excludes=
javac.deprecation=false
build.test.results.dir=${build.dir}/test/results
javac.modulepath=
javac.processormodulepath=
javac.test.modulepath=\
${javac.modulepath}
run.classpath=${javac.classpath}\:${build.classes.dir}
javadoc.nonavbar=false
run.modulepath=\
${javac.modulepath}
run.test.classpath=${javac.test.classpath}\:${build.test.classes.dir}
javac.processorpath=${javac.classpath}
javac.target=1.6
javadoc.noindex=false
javadoc.additionalparam=
includes=**
build.classes.dir=${build.dir}/classes
run.test.modulepath=\
${javac.test.modulepath}
source.encoding=UTF-8
javadoc.author=false
test.src.dir=test
Expand Down
21 changes: 18 additions & 3 deletions src/eu/finwe/obrazki/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,20 @@ public static BufferedImage odbijPoziomo(final BufferedImage src)
return ret;
}

public static BufferedImage odbijNic(final BufferedImage src)
{
BufferedImage ret = czystyObraz(src);
// int w = src.getWidth();
// int h = src.getHeight();
//
// Graphics2D g = ret.createGraphics();
// g.drawImage(src, 0, 0, w, h,
// w, 0, 0, h, null);

return ret;
}


/**
* Tworzy obraz odbity względem poziomej osi obrazu oryginalnego.
* Zwraca wynik jako nowy obraz.
Expand Down Expand Up @@ -378,7 +392,7 @@ public static BufferedImage drukujNapisPD(BufferedImage im, String napis,
*/
public static enum typFiltra
{
SKALUJ, ODBIJ_POZIOMO, ODBIJ_PIONOWO, OPISZ, MNOZ;
SKALUJ, ODBIJ_POZIOMO, ODBIJ_PIONOWO, NIC, OPISZ, MNOZ;
}


Expand Down Expand Up @@ -417,6 +431,7 @@ public static BufferedImageOp dajFiltr(typFiltra typ, HashMap<String, String> pa

switch(typ)
{
case NIC:
case ODBIJ_PIONOWO:
case ODBIJ_POZIOMO:
// te filtry się nie zmieniają, więc za każdym razem, jak ktoś
Expand Down Expand Up @@ -658,7 +673,7 @@ public Point2D getPoint2D(Point2D srcPt, Point2D dstPt)
// BufferedImageOp x = new FiltrOdbijajacy(..., BufferedImage obraz);
//
// ale w tym [laboratoryjnym] przypadku nie ma większego sensu

case NIC:
case ODBIJ_PIONOWO:
case ODBIJ_POZIOMO:
throw new UnsupportedOperationException("Destination " +
Expand Down Expand Up @@ -709,7 +724,7 @@ public static void main(String args[])
// 3. NASZE odbicia
op.put("odbicieV", Util.dajFiltr(Util.typFiltra.ODBIJ_PIONOWO, null));
op.put("odbicieH", Util.dajFiltr(Util.typFiltra.ODBIJ_POZIOMO, null));

op.put("odbicieH", Util.dajFiltr(Util.typFiltra.NIC, null));

// 4. NASZE skalowanie
HashMap<String, String> param = new HashMap<String, String>();
Expand Down