Class Image
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.graphic.image.Image
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImagefromAnyImage(IImage image) static ImagefromBytes(byte[] bytes) static Imagestatic ImagefromResource(String path) static ImagefromSpecification(INode<?> specification) IContainer<INode<?>> intgetPixel(int xPosition, int yPosition) intgetSection(int xPosition, int yPosition, int width, int height) intgetWidth()byte[]toJpg()byte[]toPng()toRepeatedImage(int width, int height) toScaledImage(double factor) toScaledImage(double widthFactor, double heightFactor) withAlphaValue(double alphaValue) static ImagewithPixels(Matrix<IColor> pixels) withWidthAndHeight(int width, int height) Methods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface IElement
getSpecification, toFormatedString, toXml
-
Method Details
-
fromAnyImage
-
fromBytes
-
fromFile
-
fromResource
-
fromSpecification
-
withPixels
-
getAttributes
- Specified by:
getAttributesin interfaceIElement- Returns:
- the attributes of the current
IElement.
-
getBottomLeftPixel
- Specified by:
getBottomLeftPixelin interfaceIImage
-
getBottomRightPixel
- Specified by:
getBottomRightPixelin interfaceIImage
-
getHeight
-
getPixel
-
getPixelCount
public int getPixelCount()- Specified by:
getPixelCountin interfaceIImage
-
getPixels
-
getSection
- Specified by:
getSectionin interfaceIImage
-
getTopLeftPixel
- Specified by:
getTopLeftPixelin interfaceIImage
-
getTopRightPixel
- Specified by:
getTopRightPixelin interfaceIImage
-
getWidth
-
toBase64Jpg
- Specified by:
toBase64Jpgin interfaceIImage
-
toBase64Png
- Specified by:
toBase64Pngin interfaceIImage
-
toBufferedImage
- Specified by:
toBufferedImagein interfaceIImage
-
toImmutableImage
- Specified by:
toImmutableImagein interfaceIImage
-
toJpg
-
toLeftRotatedImage
- Specified by:
toLeftRotatedImagein interfaceIImage
-
toMutableImage
-
toPng
-
toRepeatedImage
- Specified by:
toRepeatedImagein interfaceIImage
-
toRightRotatedImage
- Specified by:
toRightRotatedImagein interfaceIImage
-
toScaledImage
- Specified by:
toScaledImagein interfaceIImage
-
toScaledImage
- Specified by:
toScaledImagein interfaceIImage
-
withAlphaValue
- Specified by:
withAlphaValuein interfaceIImage
-
withWidthAndHeight
- Specified by:
withWidthAndHeightin interfaceIImage
-