Packages

class MarvinImage extends Cloneable

Image object with many operations. This class is the image representation used for the other classes in the framework.

Version

1.0 02/13/08

Linear Supertypes
Cloneable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MarvinImage
  2. Cloneable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MarvinImage(w: Int, h: Int, cm: Int)
  2. new MarvinImage(w: Int, h: Int)

    Constructor to blank image, passing the size of image

  3. new MarvinImage(img: BufferedImage, fmtName: String)

    Constructor using a image in memory

    Constructor using a image in memory

    img

    Image

    fmtName

    Image format name

  4. new MarvinImage(img: BufferedImage)

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. def Multi8p(x: Int, y: Int, masc: Array[Array[Int]]): Array[Int]

    Convolution operator

    Convolution operator

    returns

    int[]

  5. def allocColorArray(): Unit
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def boundRGB(rgb: Int): Int
  8. def clearImage(color: Int): Unit
  9. def clone(): MarvinImage

    Clones the thirdparty.marvin.image.MarvinImage

    Definition Classes
    MarvinImage → AnyRef
  10. def crop(x: Int, y: Int, w: Int, h: Int): MarvinImage
  11. def drawLine(x0: Int, y0: Int, x1: Int, y1: Int, c: Color): Unit

    Bresenham�s Line Drawing implementation

  12. def drawRect(x: Int, y: Int, w: Int, h: Int, c: Color): Unit

    Draws a rectangle in the image.

    Draws a rectangle in the image. It�s useful for debugging purposes.

    x

    rect�s start position in x-axis

    y

    rect�s start positioj in y-axis

    w

    rect�s width

    h

    rect�s height

    c

    rect�s color

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(obj: Any): Boolean

    Compare two MarvinImage objects

    Compare two MarvinImage objects

    obj

    object to be compared. MarvinImage object is expected.

    Definition Classes
    MarvinImage → AnyRef → Any
  15. def fillRect(x: Int, y: Int, w: Int, h: Int, c: Color): Unit

    Fills a rectangle in the image.

    Fills a rectangle in the image.

    x

    rect�s start position in x-axis

    y

    rect�s start positioj in y-axis

    w

    rect�s width

    h

    rect�s height

    c

    rect�s color

  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def getAlphaComponent(x: Int, y: Int): Int

    returns

    alpha component

  18. def getBinaryColor(x: Int, y: Int): Boolean
  19. def getBinaryColorArray(): Array[Boolean]
  20. def getBufferedImage(width: Int, height: Int, type: Int): BufferedImage

    Resize and return the image passing the new height and width, but maintains width/height factor

  21. def getBufferedImage(width: Int, height: Int): BufferedImage

    Resize and return the image passing the new height and width

  22. def getBufferedImage(): BufferedImage

  23. def getBufferedImageNoAlpha(): BufferedImage
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def getColorModel(): Int
  26. def getComponents(): Int
  27. def getFormatName(): String
  28. def getHeight(): Int

    Returns the height

    Returns the height

    returns

    int height

  29. def getIntColor(x: Int, y: Int): Int

    Gets the integer color composition for x, y position

    Gets the integer color composition for x, y position

    returns

    int color

  30. def getIntColorArray(): Array[Int]

    returns

    integer color array for the entire image.

  31. def getIntComponent0(x: Int, y: Int): Int

    Gets the integer color component 0 in the x and y position

    Gets the integer color component 0 in the x and y position

    returns

    int color component 0

  32. def getIntComponent1(x: Int, y: Int): Int

    Gets the integer color component 1 in the x and y position

    Gets the integer color component 1 in the x and y position

    returns

    int color component 1

  33. def getIntComponent2(x: Int, y: Int): Int

    Gets the integer color component 2 in the x and y position

    Gets the integer color component 2 in the x and y position

    returns

    int blue color

  34. def getNewImageInstance(): BufferedImage

    Return a new instance of the BufferedImage

    Return a new instance of the BufferedImage

    returns

    BufferedImage

  35. def getType(): Int

    Gets the type

  36. def getWidth(): Int

    Returns the width

    Returns the width

    returns

    int width

  37. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. def isValidPosition(x: Int, y: Int): Boolean
  40. def limit8bitsColor(color: Int): Int

    Limits the color value between 0 and 255.

    Limits the color value between 0 and 255.

    returns

    int - the color value

  41. def multi8p(x: Int, y: Int, masc: Double): Double

    Multiple of gradient windwos per masc relation of x y

    Multiple of gradient windwos per masc relation of x y

    returns

    int[]

  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. def resize(w: Int, h: Int): Unit

    Resize the image passing the new height and width

  46. def setBinaryColor(x: Int, y: Int, value: Boolean): Unit
  47. def setBufferedImage(img: BufferedImage): Unit

    Sets a new image

  48. def setColorModel(cm: Int): Unit
  49. def setDimension(w: Int, h: Int): Unit
  50. def setIntColor(x: Int, y: Int, alpha: Int, c0: Int, c1: Int, c2: Int): Unit

    Sets the integer color in X an Y position

    Sets the integer color in X an Y position

    x

    position

    y

    position

    c0

    component 0

    c1

    component 1

    c2

    component 2

  51. def setIntColor(x: Int, y: Int, c0: Int, c1: Int, c2: Int): Unit

    Sets the integer color in X an Y position

    Sets the integer color in X an Y position

    x

    position

    y

    position

    c0

    component 0

    c1

    component 1

    c2

    component 2

  52. def setIntColor(x: Int, y: Int, color: Int): Unit

    Sets the integer color composition in X an Y position

    Sets the integer color composition in X an Y position

    x

    position

    y

    position

    color

    color value

  53. def setIntColor(x: Int, y: Int, alpha: Int, color: Int): Unit
  54. def setIntColorArray(arr: Array[Int]): Unit

    Set the integer color array for the entire image.

  55. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  56. def toString(): String
    Definition Classes
    AnyRef → Any
  57. def update(): Unit
  58. def updateColorArray(): Unit
  59. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Cloneable

Inherited from AnyRef

Inherited from Any

Ungrouped