UOCL-244: receipts added to main code base
This commit is contained in:
@@ -117,11 +117,14 @@ public abstract class BasicTicket implements PrintItem {
|
||||
|
||||
for(Iterator i$ = this.m_aCommands.iterator(); i$.hasNext(); currenty += pi.getHeight()) {
|
||||
pi = (PrintItem)i$.next();
|
||||
if (pi instanceof PrintItemImage) {
|
||||
((PrintItemImage) pi).setImage(negative(((PrintItemImage) pi).getImage()));
|
||||
}
|
||||
pi.draw(g2d, x, currenty, width);
|
||||
}
|
||||
|
||||
try {
|
||||
ImageIO.write(this.negative(image), "png", new File(System.getProperty("user.home") + "/test.png"));
|
||||
ImageIO.write(this.negative(image), "png", new File(System.getProperty("user.home") + "/receipt.png"));
|
||||
}
|
||||
catch (Exception e) {
|
||||
System.out.println("Error serialising receipt image !!! : " + e);
|
||||
|
||||
Reference in New Issue
Block a user