Package org.hipparchus.samples
Class ExampleUtils
java.lang.Object
org.hipparchus.samples.ExampleUtils
Graphics utilities for examples.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImage
resizeImage
(BufferedImage originalImage, int width, int height, int type) Resize an image.static void
Display example.
-
Constructor Details
-
ExampleUtils
public ExampleUtils()Empty constructor.This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.
- Since:
- 3.0
-
-
Method Details
-
showExampleFrame
Display example.- Parameters:
frame
- frame to display
-
resizeImage
public static BufferedImage resizeImage(BufferedImage originalImage, int width, int height, int type) Resize an image.- Parameters:
originalImage
- original imagewidth
- desired widthheight
- desired heighttype
- type of the create image- Returns:
- resized image
-