Changeset 606


Ignore:
Timestamp:
12/12/13 09:38:11 (11 years ago)
Author:
jts21
Message:

Fix WebParser image cropping, TODO: Add tiling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/WebParser.java

    r603 r606  
    473473                Picture pic = ItemUtils.CreatePicture(text, frame);
    474474               
    475                 pic.setCrop(cropStartX, cropStartY, cropEndX, cropEndY);
    476                
    477                 // pic.setPosition(x, y);
     475                float invScale = 1 / pic.getScale();
     476               
     477                pic.setCrop((int)(cropStartX * invScale), (int)(cropStartY * invScale), (int)(cropEndX * invScale), (int)(cropEndY * invScale));
    478478               
    479479                System.out.println("width = " + width + "  source = " + pic.getSource().getText() + "  scale = " + pic.getScale());
Note: See TracChangeset for help on using the changeset viewer.