mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-18 11:28:51 +08:00
23 lines
830 B
Lua
23 lines
830 B
Lua
|
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<69>')
|
|||
|
w1:drawText(200,20,'Russian:??? Traditional Chinese:????')
|
|||
|
w1:textAttributes('Times',20,1,0,0)
|
|||
|
w1:drawText(20,40,'Bold with Publicit<69>')
|
|||
|
w1:textAttributes('Times',20,0,1,0)
|
|||
|
w1:drawText(20,60,'Italic with Publicit<69>')
|
|||
|
w1:textAttributes('Times',20,0,0,1)
|
|||
|
w1:drawText(20,80,'UL with Publicit<69>')
|
|||
|
w1:textAttributes('Times',20,1,1,0)
|
|||
|
w1:drawText(20,100,'Bold italic with Publicit<69>')
|
|||
|
w1:pen(0,0,255)
|
|||
|
w1:drawRectangle(4,4,11,11)
|
|||
|
w1:update()
|