MCPcopy Create free account
hub / github.com/KLayout/klayout / initialize

Method initialize

testdata/ruby/interactive/screenshots.rb:5–15  ·  view source on GitHub ↗
( index, view )

Source from the content-addressed store, hash-verified

3class Screenshot
4
5 def initialize( index, view )
6
7 @index = index
8 @small_file = "screenshot.small.#{@index}.png"
9 @large_file = "screenshot.large.#{@index}.png"
10
11 view.save_image( @small_file, 80, 60 )
12 view.save_image( @large_file, 800, 600 )
13 @box = view.box
14
15 end
16
17 def box
18 return @box

Callers

nothing calls this directly

Calls 2

save_imageMethod · 0.80
boxMethod · 0.45

Tested by

no test coverage detected