Class MutableImage
java.lang.Object
ch.nolix.system.element.mutableelement.AbstractMutableElement
ch.nolix.system.graphic.image.MutableImage
- All Implemented Interfaces:
Copyable<MutableImage>, Resettable, IElement, IMutableElement, IImage, IMutableImage<MutableImage>
public final class MutableImage
extends AbstractMutableElement
implements IMutableImage<MutableImage>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionstatic MutableImagefromAnyImage(IImage image) static MutableImagefromBufferedImage(BufferedImage bufferedImage) static MutableImagefromBytes(byte[] bytes) static MutableImagestatic MutableImagefromResource(String path) static MutableImagefromSpecification(INode<?> specification) static MutableImagefromString(String string) getCopy()intgetPixel(int xPosition, int yPosition) intgetSection(int xPosition, int yPosition, int width, int height) intgetWidth()voidreset()Resets the currentResettable.voidsetPixelArray(IContainer<IColor> pixelArray) voidsetPixelArray(INode<?> pixelArray) byte[]toJpg()byte[]toPng()toRepeatedImage(int width, int height) toScaledImage(double factor) toScaledImage(double widthFactor, double heightFactor) withAlphaValue(double alphaValue) static MutableImagewithPixels(IMatrix<IColor> pixels) withWidthAndHeight(int width, int height) static MutableImagewithWidthAndHeightAndColor(int width, int height, IColor color) static MutableImagewithWidthAndHeightAndWhiteColor(int width, int height) Methods inherited from class AbstractMutableElement
addOrChangeAttribute, addOrChangeAttribute, equals, getAttributes, getSpecification, hashCode, resetFromFileWithFilePath, toStringMethods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXmlMethods inherited from interface IMutableElement
addOrChangeAttributes, addOrChangeAttributes, addOrChangeAttributes, resetFromAttributes, resetFromSpecification
-
Method Details
-
fromAnyImage
-
fromBytes
-
fromBufferedImage
-
fromFile
-
fromResource
-
fromSpecification
-
fromString
-
withPixels
-
withWidthAndHeightAndColor
-
withWidthAndHeightAndWhiteColor
-
getBottomLeftPixel
- Specified by:
getBottomLeftPixelin interfaceIImage
-
getBottomRightPixel
- Specified by:
getBottomRightPixelin interfaceIImage
-
getCopy
- Specified by:
getCopyin interfaceCopyable<MutableImage>- Returns:
- a new copy of the current
Copyable.
-
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
-
reset
-
setPixel
- Specified by:
setPixelin interfaceIMutableImage<MutableImage>
-
setPixelArray
-
setPixelArray
-
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
-
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
-