diff --git a/_0_-odbicieV.jpg b/_0_-odbicieV.jpg new file mode 100644 index 0000000..d224d0e Binary files /dev/null and b/_0_-odbicieV.jpg differ diff --git a/_1_-odbicieV-odbicieH.jpg b/_1_-odbicieV-odbicieH.jpg new file mode 100644 index 0000000..5f8b7fb Binary files /dev/null and b/_1_-odbicieV-odbicieH.jpg differ diff --git a/_2_-odbicieV-odbicieH-skala.jpg b/_2_-odbicieV-odbicieH-skala.jpg new file mode 100644 index 0000000..91cbda0 Binary files /dev/null and b/_2_-odbicieV-odbicieH-skala.jpg differ diff --git a/_3_-odbicieV-odbicieH-skala-wygladzanie.jpg b/_3_-odbicieV-odbicieH-skala-wygladzanie.jpg new file mode 100644 index 0000000..7f4112c Binary files /dev/null and b/_3_-odbicieV-odbicieH-skala-wygladzanie.jpg differ diff --git a/_4_-odbicieV-odbicieH-skala-wygladzanie-znieksztalcenie.jpg b/_4_-odbicieV-odbicieH-skala-wygladzanie-znieksztalcenie.jpg new file mode 100644 index 0000000..c3134ea Binary files /dev/null and b/_4_-odbicieV-odbicieH-skala-wygladzanie-znieksztalcenie.jpg differ diff --git a/_5_-odbicieV-odbicieH-skala-wygladzanie-znieksztalcenie-odbicieNIC.jpg b/_5_-odbicieV-odbicieH-skala-wygladzanie-znieksztalcenie-odbicieNIC.jpg new file mode 100644 index 0000000..c3134ea Binary files /dev/null and b/_5_-odbicieV-odbicieH-skala-wygladzanie-znieksztalcenie-odbicieNIC.jpg differ diff --git a/_odbicieHp1.jpg b/_odbicieHp1.jpg new file mode 100644 index 0000000..0c1c05e Binary files /dev/null and b/_odbicieHp1.jpg differ diff --git a/_odbicieHp2.jpg b/_odbicieHp2.jpg new file mode 100644 index 0000000..fc36b0a Binary files /dev/null and b/_odbicieHp2.jpg differ diff --git a/_odbicieNICp1.jpg b/_odbicieNICp1.jpg new file mode 100644 index 0000000..c181bf2 Binary files /dev/null and b/_odbicieNICp1.jpg differ diff --git a/_odbicieNICp2.jpg b/_odbicieNICp2.jpg new file mode 100644 index 0000000..c181bf2 Binary files /dev/null and b/_odbicieNICp2.jpg differ diff --git a/_odbicieVp1.jpg b/_odbicieVp1.jpg new file mode 100644 index 0000000..d224d0e Binary files /dev/null and b/_odbicieVp1.jpg differ diff --git a/_odbicieVp2.jpg b/_odbicieVp2.jpg new file mode 100644 index 0000000..156b21a Binary files /dev/null and b/_odbicieVp2.jpg differ diff --git a/_skalap1.jpg b/_skalap1.jpg new file mode 100644 index 0000000..4c95e67 Binary files /dev/null and b/_skalap1.jpg differ diff --git a/_skalap2.jpg b/_skalap2.jpg new file mode 100644 index 0000000..0c22cde Binary files /dev/null and b/_skalap2.jpg differ diff --git a/_wygladzaniep1.jpg b/_wygladzaniep1.jpg new file mode 100644 index 0000000..bce6e1c Binary files /dev/null and b/_wygladzaniep1.jpg differ diff --git a/_wygladzaniep2.jpg b/_wygladzaniep2.jpg new file mode 100644 index 0000000..353477f Binary files /dev/null and b/_wygladzaniep2.jpg differ diff --git a/_znieksztalceniep1.jpg b/_znieksztalceniep1.jpg new file mode 100644 index 0000000..3707adf Binary files /dev/null and b/_znieksztalceniep1.jpg differ diff --git a/_znieksztalceniep2.jpg b/_znieksztalceniep2.jpg new file mode 100644 index 0000000..9b7ebc5 Binary files /dev/null and b/_znieksztalceniep2.jpg differ diff --git a/src/eu/finwe/obrazki/Util.java b/src/eu/finwe/obrazki/Util.java index 056d790..9d3157d 100644 --- a/src/eu/finwe/obrazki/Util.java +++ b/src/eu/finwe/obrazki/Util.java @@ -178,6 +178,13 @@ public static BufferedImage odbijPoziomo(final BufferedImage src) return ret; } + public static BufferedImage odbijNic(final BufferedImage src) + { + BufferedImage ret = czystyObraz(src); + + return ret; + } + /** * Tworzy obraz odbity względem poziomej osi obrazu oryginalnego. * Zwraca wynik jako nowy obraz. @@ -378,7 +385,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, ODBIJ_NIC, OPISZ, MNOZ; } @@ -418,6 +425,7 @@ public static BufferedImageOp dajFiltr(typFiltra typ, HashMap pa switch(typ) { case ODBIJ_PIONOWO: + case ODBIJ_NIC: case ODBIJ_POZIOMO: // te filtry się nie zmieniają, więc za każdym razem, jak ktoś // poprosi, to dostanie ten sam @@ -658,7 +666,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 ODBIJ_NIC: case ODBIJ_PIONOWO: case ODBIJ_POZIOMO: throw new UnsupportedOperationException("Destination " + @@ -709,7 +717,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("odbicieNIC", Util.dajFiltr(Util.typFiltra.ODBIJ_NIC, null)); // 4. NASZE skalowanie HashMap param = new HashMap();