Class ImmutableImage
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.graphic.image.ImmutableImage
- All Implemented Interfaces:
AttributesRepresentable, Element, SpecificationRepresentable, Image
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableImagefromAnyImage(Image image) static ImmutableImagefromBytes(byte[] bytes) static ImmutableImagestatic ImmutableImagefromResource(String path) static ImmutableImagefromSpecification(Node<?> specification) ExtendedIterable<Node<?>> 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 ImmutableImagewithPixels(MutableMatrix<IColor> pixels) withWidthAndHeight(int width, int height) Methods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedString
-
Method Details
-
fromAnyImage
-
fromBytes
-
fromFile
-
fromResource
-
fromSpecification
-
withPixels
-
getAttributes
- Specified by:
getAttributesin interfaceAttributesRepresentable- Returns:
- the attributes of the current
AttributesRepresentable
-
getBottomLeftPixel
- Specified by:
getBottomLeftPixelin interfaceImage
-
getBottomRightPixel
- Specified by:
getBottomRightPixelin interfaceImage
-
getHeight
-
getPixel
-
getPixelCount
public int getPixelCount()- Specified by:
getPixelCountin interfaceImage
-
getPixels
-
getSection
- Specified by:
getSectionin interfaceImage
-
getTopLeftPixel
- Specified by:
getTopLeftPixelin interfaceImage
-
getTopRightPixel
- Specified by:
getTopRightPixelin interfaceImage
-
getWidth
-
toBase64Jpg
- Specified by:
toBase64Jpgin interfaceImage
-
toBase64Png
- Specified by:
toBase64Pngin interfaceImage
-
toBufferedImage
- Specified by:
toBufferedImagein interfaceImage
-
toImmutableImage
- Specified by:
toImmutableImagein interfaceImage
-
toJpg
-
toLeftRotatedImage
- Specified by:
toLeftRotatedImagein interfaceImage
-
toMutableImage
-
toPng
-
toRepeatedImage
- Specified by:
toRepeatedImagein interfaceImage
-
toRightRotatedImage
- Specified by:
toRightRotatedImagein interfaceImage
-
toScaledImage
- Specified by:
toScaledImagein interfaceImage
-
toScaledImage
- Specified by:
toScaledImagein interfaceImage
-
withAlphaValue
- Specified by:
withAlphaValuein interfaceImage
-
withWidthAndHeight
- Specified by:
withWidthAndHeightin interfaceImage
-