Skip to content
Open
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
28 changes: 28 additions & 0 deletions src/eu/finwe/obrazki/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,34 @@ public Point2D getPoint2D(Point2D srcPt, Point2D dstPt)



}

static private class FiltrDodajacyNapis extends Filtr
{
private final typFiltra typ;

public FiltrDodajacyNapis(typFiltra typ) {
this.typ = typ;
}

@Override
public BufferedImage filter(BufferedImage src, BufferedImage dest) {
int odLewej=0;
int odGory=1;
BufferedImage tmp = Util.drukujNapisLG(src, "aa", null, Color.yellow, odLewej, odGory);
return tmp;
}

@Override
public Rectangle2D getBounds2D(BufferedImage src) {
return src.getRaster().getBounds();
}

@Override
public Point2D getPoint2D(Point2D srcPt, Point2D dstPt) {
return Filtr.getPoint2D_same(srcPt, dstPt);
}

}


Expand Down