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. val SCALE_THREADS: Int

  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

  10. def apply(file: File): Image

  11. def apply(in: InputStream): Image

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

    Create a new Image from a byte stream.

    Create a new Image from a byte stream. 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[Int]): 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. def empty(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

  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. 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

  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  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