perl - How to save entire scrollable canvas as PNG? -


i have scrollable canvas who's content want png image.

the problem photo of canvas, missing non visible part of canvas @ given time.

how whole scrollable canvas png image?

my current code following:

my $canvas_to_get_photo=$mw->photo(-format=>'window', -data=>oct($canvas_to_get->id)); $canvas_to_get_photo->write('somepath/image.png', -format=>'png'); 

there isn't native way it; tk paints windows, not image-based surfaces. options therefore either:

  1. scroll canvas, taking snapshots, , stitch them together
  2. generate encapsulated postscript (which does support going on whole canvas, provided use right options) , generate image tool ghostscript.

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -