com.sksamuel.scrimage

Image

object Image

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Image
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val CANONICAL_DATA_TYPE: Int

  7. def apply(width: Int, height: Int): Image

    Create a new Image that is the given width and height with no initialization.

    Create a new Image that is the given width and height with no initialization. This will usually result in a default black background (all pixel data defaulting to zeroes) but that is not guaranteed.

    width

    the width of the new image

    height

    the height of the new image

    returns

    the new Image with the given width and height

  8. def apply(image: Image): Image

    Creates a new Image which is a copy of the given image.

    Creates a new Image which is a copy of the given image. Any operations to the new object do not affect the original image.

    image

    the image to copy

    returns

    a new Image object.

  9. def apply(awt: java.awt.Image): Image

    Create a new Scrimage Image from an AWT Image.

    Create a new Scrimage Image from an AWT Image.

    awt

    the source AWT Image

    returns

    a new Scrimage Image

  10. def apply(file: File): Image

    Create a new Image from a file.

  11. def apply(in: InputStream): Image

    Create a new Image from an input stream.

    Create a new Image from an input stream. This is intended to create an image from an image format eg PNG, not from a stream of pixels.

    in

    the stream to read the bytes from

    returns

    a new Image

  12. def apply(bytes: Array[Byte]): Image

    Create a new Image from an array of bytes.

    Create a new Image from an array of bytes. This is intended to create an image from an image format eg PNG, not from a stream of pixels.

    bytes

    the bytes from the format stream

    returns

    a new Image

  13. def apply(w: Int, h: Int, pixels: Array[Pixel]): Image

    Create a new Image from an array of pixels.

    Create a new Image from an array of pixels. The specified width and height must match the number of pixels.

    returns

    a new Image

  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def filled(width: Int, height: Int, color: Color = Color.White): Image

    Return a new Image with the given width and height, with all pixels set to the supplied colour.

    Return a new Image with the given width and height, with all pixels set to the supplied colour.

    width

    the width of the new Image

    height

    the height of the new Image

    color

    the color to set all pixels to

    returns

    the new Image

  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def fromResource(path: String): Image

  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped