Hey there,
got a private message today about the Jabaco Picturebox.
Since it was a forewarded and not logged in message I don't have any other way to answer anonymously but to use the forum!
People, please use the forum to ask questions that may be of value to others!
@ cristian....@...oo.com.br
Are you using the latest Jabaco.jar ?
Find more about that in the forum...
Here is a snippet of how to load a picture in the Picturebox:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Option Explicit
Private imgIn As java#awt#image#BufferedImage
Public Sub cmdLoadPicture_Click()
picTemp.Cls
readImage("C:\test.jpg")
picTemp.PaintPicture(imgIn, 10, 10)
End Sub
Public Sub readImage(fileName As String)
On Error Goto ErrHandler
Dim file As java#io#File
file = New java#io#File(fileName)
imgIn = javax#imageio#ImageIO.read(file)
Exit Sub
ErrHandler:
imgIn = New java#awt#image#BufferedImage(1024, 1024, java#awt#image#BufferedImage.TYPE_INT_RGB)
End Sub
|
Have fun...
Dani
(code is taken from this forum somewhere)