Class SimpleImageSizeRenderPredicate
- java.lang.Object
-
- com.atlassian.confluence.content.render.image.SimpleImageSizeRenderPredicate
-
- All Implemented Interfaces:
Predicate<ImageDimensions>
@Immutable public class SimpleImageSizeRenderPredicate extends Object implements Predicate<ImageDimensions>
A predicate that decides whether or not an image stream should be rendered as a raster, depending on the size of the resulting raster.- Since:
- 7.0.1
-
-
Constructor Summary
Constructors Constructor Description SimpleImageSizeRenderPredicate(int rasterSizeThresholdPx)
-
-
-
Method Detail
-
test
public boolean test(ImageDimensions input)
- Specified by:
test
in interfacePredicate<ImageDimensions>
-
-