[Gmsh] change exported image resolution

Christophe Geuzaine cgeuzaine at uliege.be
Wed Mar 20 08:04:40 CET 2019



> On 19 Mar 2019, at 23:13, andre bianchessi <andrebianchessi at googlemail.com> wrote:
> 
> Hi!
> 
> I have a script that saves an image using
> Print Sprintf("image.png");
> 
> I wanted to know if there's a way to increase the exported image's resolution.

Yes, you can set e.g.

Print.Width = 2000;

before your print command, to print the image with the same aspect ratio, but with a width of 2000 pixels. Note that the maximum size depends on the capabilities of your graphics hardware.

Christophe


> 
> Thanks in advance!
> 
> -- 
> André Bianchessi
> Mechatronics Engineering Student - Polytechnic School of the University of São Paulo
> +55 11 997667070
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list