Using .DrawToBitmap - how to change resolution of image?

后端 未结 2 2025
情书的邮戳
情书的邮戳 2021-01-19 17:50

Im using DrawToBitmap to save some labels as image. I would like to know how to change the resolution of these images, is there a way? Say I have a label with a

2条回答
  •  清歌不尽
    2021-01-19 18:22

    you can achieve this by increasing the value of second parameter of System.Drawing.Font.

    this.label1.Font = new System.Drawing.Font("Baskerville Old Face", 1000F);
    

提交回复
热议问题