Package org.hipparchus.samples
Class ExampleUtils
java.lang.Object
org.hipparchus.samples.ExampleUtils
Graphics utilities for examples.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImage
resizeImage
(BufferedImage originalImage, int width, int height, int type) Resize an image.static void
Display example.
-
Constructor Details
-
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
-