Class DefaultImageContext
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.DefaultImageContext
- All Implemented Interfaces:
ImageContext
Very simple ImageContext implementation that uses the
Toolkit
's screen resolution.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the resolution (in dpi) that is to be used when interpreting pixel sizes where no resolution information is available.
-
Constructor Details
-
DefaultImageContext
public DefaultImageContext()Main constructor.
-
-
Method Details
-
getSourceResolution
public float getSourceResolution()Returns the resolution (in dpi) that is to be used when interpreting pixel sizes where no resolution information is available.- Specified by:
getSourceResolution
in interfaceImageContext
- Returns:
- the source resolution (in dpi)
-