Packages

final class PpmImageFormat[R, W] extends PpmImageReader[R] with PpmImageWriter[W]

Image format and writer for PGM/PPM files.

Supports reading P2, P3, P5 and P6 PGM/PPM files with a 8 bit color range and stores data as P6 PPM files with a 8 bit color range.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PpmImageFormat
  2. PpmImageWriter
  3. ImageWriter
  4. PpmImageReader
  5. ImageReader
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PpmImageFormat(byteReader: ByteReader[R], byteWriter: ByteWriter[W])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val byteReader: ByteReader[R]
    Definition Classes
    PpmImageFormatPpmImageReader
  6. val byteWriter: ByteWriter[W]
    Definition Classes
    PpmImageFormatPpmImageWriter
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def fromByteArray(data: Array[Byte]): Either[String, RamSurface]

    Loads an image from a byte array.

    Loads an image from a byte array.

    data

    Byte array

    returns

    Either a RamSurface with the image data or an error string

    Definition Classes
    ImageReader
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def loadImage(is: InputStream): Either[String, RamSurface]

    Loads an image from an InputStream.

    Loads an image from an InputStream.

    is

    InputStream with the image data

    returns

    Either a RamSurface with the image data or an error string

    Definition Classes
    PpmImageReaderImageReader
  15. def loadImage(resource: Resource): Try[Either[String, RamSurface]]

    Loads an image from a Resource.

    Loads an image from a Resource.

    resource

    Resource with the image data

    returns

    Either a RamSurface with the image data or an error string, inside a Try capturing the IO exceptions

    Definition Classes
    ImageReader
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. def storeImage(surface: Surface, os: OutputStream): Either[String, Unit]

    Stores a surface to an OutputStream.

    Stores a surface to an OutputStream.

    surface

    Surface to store

    os

    OutputStream where to store the data

    returns

    Either unit or an error string

    Definition Classes
    PpmImageWriterImageWriter
  20. def storeImage(surface: Surface, resource: Resource): Try[Either[String, Unit]]

    Stores a surface to a Resource.

    Stores a surface to a Resource.

    surface

    Surface to store

    resource

    Resource where to store the data

    returns

    Either unit or an error string, inside a Try capturing the IO exceptions

    Definition Classes
    ImageWriter
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toByteArray(surface: Surface): Either[String, Array[Byte]]

    Returns the image data as a byte array.

    Returns the image data as a byte array.

    surface

    Surface to convert

    returns

    Either an array with the image data or an error string

    Definition Classes
    ImageWriter
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from PpmImageWriter[W]

Inherited from ImageWriter

Inherited from PpmImageReader[R]

Inherited from ImageReader

Inherited from AnyRef

Inherited from Any

Ungrouped