Sha256: b3b318a31564d7d306e2bc1ab0adf380e511a1e1e384072d8c4d806c7dc7e2e1
Contents?: true
Size: 636 Bytes
Versions: 34
Compression:
Stored size: 636 Bytes
Contents
proc_name = "title-slide-background-image" if @title_slide_background_image.nil? theme_exit("must specify @title_slide_background_image!!") end match(TitleSlide) do |slides| loader = ImageLoader.new(find_file(@title_slide_background_image)) resized = false slides.delete_pre_draw_proc_by_name(proc_name) slides.add_pre_draw_proc(proc_name) do |slide, canvas, x, y, w, h, simulation| unless simulation unless loader.nil? unless resized loader.resize(canvas.width, canvas.height) resized = true end loader.draw(canvas, 0, 0) end end [x, y, w, h] end end
Version data entries
34 entries across 34 versions & 1 rubygems