Uses of Class
org.miaixz.bus.extra.image.Images
Packages that use Images
Package
Description
Encapsulation of image processing-related utility classes.
-
Uses of Images in org.miaixz.bus.extra.image
Methods in org.miaixz.bus.extra.image that return ImagesModifier and TypeMethodDescriptionImages.binary()Converts the image to a binary (black and white) image.Images.cut(int x, int y) Cuts a circular area from the image, with the diameter being the smaller of the image's width and height.Images.cut(int x, int y, int radius) Cuts a circular area from the image with a specified radius.Crops the image to the specified rectangle.Images.flip()Flips the image horizontally.static ImagesCreates anImagesinstance from anImage.static ImagesCreates anImagesinstance from an image file.static ImagesImages.from(InputStream in) Creates anImagesinstance from an input stream.static ImagesCreates anImagesinstance from a URL.static ImagesCreates anImagesinstance from an image file path.static ImagesImages.from(ImageInputStream imageStream) Creates anImagesinstance from anImageInputStream.static ImagesImages.from(org.miaixz.bus.core.io.resource.Resource resource) Creates anImagesinstance from a resource.Images.gray()Converts the image to grayscale.Images.pressImage(Image pressImg, int x, int y, float alpha) Adds an image watermark to the image.Images.pressImage(Image pressImg, Rectangle rectangle, float alpha) Adds an image watermark to the image within a specified rectangle.Images.pressImageFull(Image pressImage, int lineHeight, int degree, float alpha) Adds a full-screen image watermark to the image.Adds a text watermark to the image.Adds a text watermark to the image using anImageTextobject.Images.pressTextFull(String pressText, Color color, Font font, int lineHeight, int degree, float alpha) Adds a full-screen text watermark to the image.Images.rotate(int degree) Rotates the image by a specified angle.Images.round(double arc) Applies rounded corners to the image.Images.scale(float scale) Scales the image by a given ratio.Images.scale(int width, int height) Scales the image to the specified width and height.Images.scale(int width, int height, int scaleType) Scales the image to the specified width and height with a specific scaling algorithm.Scales the image proportionally to fit within the given dimensions, filling blank space with a fixed color.Images.setBackgroundColor(Color backgroundColor) Sets the background color of the image.Images.setPositionBaseCentre(boolean positionBaseCentre) Sets whether to calculate x, y coordinates from the center as the origin.Images.setQuality(double quality) Sets the image output quality for compression (0.0 to 1.0).Images.setQuality(float quality) Sets the image output quality for compression (0.0 to 1.0).Images.setTargetImageType(String imgType) Sets the target image file format for writing.Adds a stroke (border) to the image.Adds a stroke (border) to the image with a specifiedStrokeobject.Writes the processed image to a file.Images.write(OutputStream out) Writes the processed image to anOutputStream.Images.write(ImageOutputStream targetImageStream) Writes the processed image to anImageOutputStream.