45

I need to take some screenshots of an application window. My laptop resolution is low, and I'd like to get high quality images.

Is there a way to grab the screen as vector graphics (e.g. EPS, PDF, SVG)? Alternatively, is there a way to take a screenshot with higher resolution than the native one?

My native resolution is 1366x768, while I'd need at least a resolution of nearly 4000x3000.

Ho1
  • 639
  • 5
  • 11
Alfatau
  • 699

5 Answers5

33

Of course! Yes, you can do that. You will need a UI rendering engine that has vector backend. Gtk+ 3+ has that backend. Please see this project:

But you should know the application should be able to run on Linux using Gtk+. Maybe you can create mockups either with this method, or using Microsoft Visio for having vector output.

See these samples:

If you are a Debian/Ubuntu user, for installation you can simply do

$ sudo apt-get install gtk-vector-screenshot
$ take-vector-screenshot

And then you only need to choose what application you want to take screenshot with your mouse. Curently, the application should be a Gtk+ 3 for a successful vector screenshot. The result will be a PDF file in the current working directory.

take-vector-screenshot application

PS: Good news: Firefox 42 will be using Gtk+3.

Ho1
  • 639
  • 5
  • 11
10

Capture as vector? No of course not. There is no way for the capture program to know anything about the geometry of the shapes on screen without having some sort of hook into the program(s) doing the drawing.

What you can do however is to capture a raster image and then convert that to vector. There are tools like Inkscape that can perform this conversion (though you will usually have to manually do some tweaking, and even then, you will rarely be able to get pixel-perfect results).

As for the resolution, when you perform a capture, it cannot capture more information than is available. You can re-size the resulting image up, and if you use a good scaling algorithm, the interpolated pixels will blend fairly well, but there is no way to invent more pixel information than is present.

Theoretically, it could be possible to implement some sort of system in which everything is rendered internally at a higher resolution and then sent it to the screen at a lesser one, but that would require special support in both the OS and the drive, and is unlikely to be implemented since it has very limited use and would only be a waste of memory in most scenarios.

You may be able to use desktop-panning to achieve a higher resolution desktop than the screen supports, but again, that requires that your drivers support it.

Synetech
  • 69,547
2

Not currently. This should be possible but it not.

Both are native vector UIs, but allow bitmaps to be used as well - this is an excellent fit for SVG. However while tools to export WPF to SVG exist (the same goes for NSView), most of these are aimed at software developers. For example, you would need the XAML source of your application to export that into SVG.

0

If you're talking about webpages, you can use the Print to PDF feature of Safari and then open the PDF in a vector program.

This should make it easy to grab some SVG resources or to make a tutorial in a video editing program where you want to zoom in on some webpages without losing quality - for example.

-1

For UNIX users, you can use either KSnapShot or GIMP. More details are given in graphical screen

To install KSnapShot, you can use this link KSnapShot

GIMP is available for Windows as well.