Package com.stimulsoft.base.drawing
Class StiGraphicsHelper
java.lang.Object
com.stimulsoft.base.drawing.StiGraphicsHelper
Graphics helper
Copyright Stimulsoft
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImagegetScaledInstance(BufferedImage img, int targetWidth, int targetHeight, Object hint, boolean higherQuality) static voidsetDefaultRenderingHints(Graphics2D graphics) Set default rendering hintsstatic voidsetRenderingHints(Graphics2D graphics) Set rendering hints to graphics
-
Field Details
-
IMAGE_GRAPHICS
-
GRAPHICS
-
-
Constructor Details
-
StiGraphicsHelper
public StiGraphicsHelper()
-
-
Method Details
-
setRenderingHints
Set rendering hints to graphics- Parameters:
graphics-Graphics2D
-
setDefaultRenderingHints
Set default rendering hints- Parameters:
graphics-Graphics2D
-
getScaledInstance
public static BufferedImage getScaledInstance(BufferedImage img, int targetWidth, int targetHeight, Object hint, boolean higherQuality)
-