|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcore.SubImage
public class SubImage
Instances of this class represent an clipped image from a original larger image and gives the possibility to transform a path drawn in the clipped image into it's equivalent relative to a smaller version of the original large image.
| Constructor Summary | |
|---|---|
SubImage(java.awt.image.BufferedImage smallImage,
java.awt.geom.Rectangle2D.Double clipping,
int zoom,
java.awt.image.BufferedImage largeImage)
Creates a new instance of this class given the small image to compute the transformations needed to be made to the path created in the clipped image, the clipping rectangle, the zoom level and the larger (higher quality) image from where the small image was created |
|
| Method Summary | |
|---|---|
void |
dispose()
|
java.awt.geom.GeneralPath |
getSmallPath(java.awt.geom.GeneralPath generalPath)
Converts a given path to it's equivalent relative to the small (not zoomed) image |
java.awt.image.BufferedImage |
getSubImage()
Returns the clipped image |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubImage(java.awt.image.BufferedImage smallImage,
java.awt.geom.Rectangle2D.Double clipping,
int zoom,
java.awt.image.BufferedImage largeImage)
smallImage - the desired image dimensionsclipping - the rectangle used to do the clippingzoom - how many times the small image to be zoomedlargeImage - a higher quality image from where the small image was created| Method Detail |
|---|
public java.awt.image.BufferedImage getSubImage()
public java.awt.geom.GeneralPath getSmallPath(java.awt.geom.GeneralPath generalPath)
generalPath - the path to convert
public void dispose()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||