mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-18 11:28:51 +08:00
89a5284c69
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@148 d0cd1f9f-072b-0410-8dd7-cf729c803f20
23 lines
830 B
Lua
Executable File
23 lines
830 B
Lua
Executable File
svmain = luajava.bindClass('com.google.scrollview.ScrollView')
|
|
w1 = luajava.newInstance('com.google.scrollview.ui.SVWindow','1',1,200,100,0,0,640,480)
|
|
w1:brush(255,128,0)
|
|
w1:drawEllipse(140,280,40,20)
|
|
w1:pen(0,255,0)
|
|
w1:drawRectangle(20,40,120,240)
|
|
w1:drawRectangle(1,1,10,10)
|
|
w1:drawLine(100,200,140,280)
|
|
w1:pen(255,0,0)
|
|
w1:textAttributes('Times',20,0,0,0)
|
|
w1:drawText(20,20,'Plain with Publicité')
|
|
w1:drawText(200,20,'Russian:??? Traditional Chinese:????')
|
|
w1:textAttributes('Times',20,1,0,0)
|
|
w1:drawText(20,40,'Bold with Publicité')
|
|
w1:textAttributes('Times',20,0,1,0)
|
|
w1:drawText(20,60,'Italic with Publicité')
|
|
w1:textAttributes('Times',20,0,0,1)
|
|
w1:drawText(20,80,'UL with Publicité')
|
|
w1:textAttributes('Times',20,1,1,0)
|
|
w1:drawText(20,100,'Bold italic with Publicité')
|
|
w1:pen(0,0,255)
|
|
w1:drawRectangle(4,4,11,11)
|
|
w1:update() |