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
- Alphabetic
- By Inheritance
- MarvinImage
- Cloneable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MarvinImage(w: Int, h: Int, cm: Int)
-
new
MarvinImage(w: Int, h: Int)
Constructor to blank image, passing the size of image
-
new
MarvinImage(img: BufferedImage, fmtName: String)
Constructor using a image in memory
Constructor using a image in memory
- img
Image
- fmtName
Image format name
- new MarvinImage(img: BufferedImage)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
Multi8p(x: Int, y: Int, masc: Array[Array[Int]]): Array[Int]
Convolution operator
Convolution operator
- returns
int[]
- def allocColorArray(): Unit
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def boundRGB(rgb: Int): Int
- def clearImage(color: Int): Unit
-
def
clone(): MarvinImage
Clones the
thirdparty.marvin.image.MarvinImage
Clones the
thirdparty.marvin.image.MarvinImage
- Definition Classes
- MarvinImage → AnyRef
- def crop(x: Int, y: Int, w: Int, h: Int): MarvinImage
-
def
drawLine(x0: Int, y0: Int, x1: Int, y1: Int, c: Color): Unit
Bresenham�s Line Drawing implementation
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
-
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
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAlphaComponent(x: Int, y: Int): Int
- returns
alpha component
- def getBinaryColor(x: Int, y: Int): Boolean
- def getBinaryColorArray(): Array[Boolean]
-
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
-
def
getBufferedImage(width: Int, height: Int): BufferedImage
Resize and return the image passing the new height and width
- def getBufferedImage(): BufferedImage
- def getBufferedImageNoAlpha(): BufferedImage
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getColorModel(): Int
- def getComponents(): Int
- def getFormatName(): String
-
def
getHeight(): Int
Returns the height
Returns the height
- returns
int height
-
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
-
def
getIntColorArray(): Array[Int]
- returns
integer color array for the entire image.
-
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
-
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
-
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
-
def
getNewImageInstance(): BufferedImage
Return a new instance of the BufferedImage
Return a new instance of the BufferedImage
- returns
BufferedImage
-
def
getType(): Int
Gets the type
-
def
getWidth(): Int
Returns the width
Returns the width
- returns
int width
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isValidPosition(x: Int, y: Int): Boolean
-
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
-
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[]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
resize(w: Int, h: Int): Unit
Resize the image passing the new height and width
- def setBinaryColor(x: Int, y: Int, value: Boolean): Unit
-
def
setBufferedImage(img: BufferedImage): Unit
Sets a new image
- def setColorModel(cm: Int): Unit
- def setDimension(w: Int, h: Int): Unit
-
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
-
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
-
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
- def setIntColor(x: Int, y: Int, alpha: Int, color: Int): Unit
-
def
setIntColorArray(arr: Array[Int]): Unit
Set the integer color array for the entire image.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def update(): Unit
- def updateColorArray(): Unit
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()