Package org.hipparchus.samples
Class ExampleUtils
- java.lang.Object
-
- org.hipparchus.samples.ExampleUtils
-
public class ExampleUtils extends Object
Graphics utilities for examples.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExampleUtils.ExampleFrameDisplay frame.
-
Constructor Summary
Constructors Constructor Description ExampleUtils()Empty constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferedImageresizeImage(BufferedImage originalImage, int width, int height, int type)Resize an image.static voidshowExampleFrame(ExampleUtils.ExampleFrame frame)Display example.
-
-
-
Method Detail
-
showExampleFrame
public static void showExampleFrame(ExampleUtils.ExampleFrame frame)
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
-
-