com
.
sksamuel
.
scrimage
.
canvas
Canvas
case class
Canvas
(
image:
Image
,
painter:
Painter
=
X11Colorlist.Black
,
font:
Font
=
new Font(Font.SERIF, 0, 24)
,
aliasing:
Boolean
=
false
)
extends
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
Canvas
Serializable
Serializable
Product
Equals
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
Canvas
(
image:
Image
,
painter:
Painter
=
X11Colorlist.Black
,
font:
Font
=
new Font(Font.SERIF, 0, 24)
,
aliasing:
Boolean
=
false
)
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
val
aliasing
:
Boolean
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
drawImage
(
x:
Int
,
y:
Int
,
imageToDraw:
Image
)
:
Canvas
def
drawLine
(
x1:
Int
,
y1:
Int
,
x2:
Int
,
y2:
Int
)
:
Canvas
def
drawOval
(
x:
Int
,
y:
Int
,
width:
Int
,
height:
Int
)
:
Canvas
def
drawPoly
(
polygon:
Polygon
)
:
Canvas
def
drawRect
(
x:
Int
,
y:
Int
,
w:
Int
,
h:
Int
)
:
Canvas
def
drawRoundedRect
(
x:
Int
,
y:
Int
,
width:
Int
,
height:
Int
,
arcWidth:
Int
,
arcHeight:
Int
)
:
Canvas
def
drawString
(
x:
Int
,
y:
Int
,
text:
String
)
:
Canvas
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
fill
:
Canvas
def
fillOval
(
x:
Int
,
y:
Int
,
width:
Int
,
height:
Int
)
:
Canvas
def
fillPoly
(
polygon:
Polygon
)
:
Canvas
def
fillRect
(
x:
Int
,
y:
Int
,
w:
Int
,
h:
Int
)
:
Canvas
def
fillRoundedRect
(
x:
Int
,
y:
Int
,
width:
Int
,
height:
Int
,
arcWidth:
Int
,
arcHeight:
Int
)
:
Canvas
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
val
font
:
Font
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
val
image
:
Image
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
painter
:
Painter
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
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
(
...
)
def
watermark
(
text:
String
,
alpha:
Double
)
:
Canvas
def
watermark
(
text:
String
)
:
Canvas
def
withAliasing
(
aliasing:
Boolean
)
:
Canvas
def
withFont
(
font:
Font
)
:
Canvas
def
withPainter
(
color:
Color
)
:
Canvas
def
withPainter
(
painter:
Painter
)
:
Canvas
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
AnyRef
Inherited from
Any
Ungrouped