Press on the image to return to the main documentation page.
jGameViewHelper
List of types:
GameViewHelper
Rect
GameViewHelper
Events:
KeyPressed (KeyCode As String) As Boolean
KeyReleased (KeyCode As String) As Boolean
Members:
AddKeyListener
(
EventName
As
String
,
Form
As
Form
)
DrawImageRotateAndFlipped
(
Canvas
As
CanvasWrapper
,
Image
As
javafx
.
scene
.
image
.
Image
,
SrcRect
As
Rect
,
DestRect
As
Rect
,
Degree
As
Double
,
Flip
As
Int
)
FLIP_BOTH
As
Int
FLIP_HORIZONTALLY
As
Int
FLIP_NONE
As
Int
FLIP_VERTICALLY
As
Int
LoadAudioClip
(
Uri
As
String
)
As
Int
PlayAudioClip
(
Id
As
Int
,
Volume
As
Double
)
SetBoxBlur
(
Canvas
As
CanvasWrapper
)
StopAudioClip
(
id
As
Int
)
Members description:
AddKeyListener
(
EventName
As
String
,
Form
As
Form
)
Adds a key listener. The KeyPressed and KeyReleased events will be raised.
Return True to consume the event.
DrawImageRotateAndFlipped
(
Canvas
As
CanvasWrapper
,
Image
As
javafx
.
scene
.
image
.
Image
,
SrcRect
As
Rect
,
DestRect
As
Rect
,
Degree
As
Double
,
Flip
As
Int
)
Draws an image. The image can be rotated and flipped. The Flip value should be one of the FLIP constants.
FLIP_BOTH
As
Int
FLIP_HORIZONTALLY
As
Int
FLIP_NONE
As
Int
FLIP_VERTICALLY
As
Int
LoadAudioClip
(
Uri
As
String
)
As
Int
Loads a short audio file and returns the stored id.
PlayAudioClip
(
Id
As
Int
,
Volume
As
Double
)
Plays a previously loaded audio file. Volume should be between 0 to 1.
SetBoxBlur
(
Canvas
As
CanvasWrapper
)
This method can improve the drawings smoothness.
StopAudioClip
(
id
As
Int
)
Stops playback.
Rect
Events:
None
Members:
Bottom
As
Double
[read
only]
CenterX
As
Double
[read
only]
CenterY
As
Double
[read
only]
Height
As
Double
Initialize
(
Left
As
Double
,
Top
As
Double
,
Width
As
Double
,
Height
As
Double
)
Left
As
Double
Right
As
Double
[read
only]
Top
As
Double
Width
As
Double
Members description:
Bottom
As
Double
[read
only]
CenterX
As
Double
[read
only]
CenterY
As
Double
[read
only]
Height
As
Double
Initialize
(
Left
As
Double
,
Top
As
Double
,
Width
As
Double
,
Height
As
Double
)
Left
As
Double
Right
As
Double
[read
only]
Top
As
Double
Width
As
Double
Top