开发者

Generating Text to a PNG File with Transparent Background

I need to Export some PNG Images with Transparent Background from a C# Application . But that is not a Huge Concern . What make's it complicated and beyond my knowledge is ,how am i able to Export to PNG Image File With Transparent Background with Some Text i开发者_运维百科n it,like a Label only without Background so in that way i can export as many images i want with Different Text into it. And that PNG should had the Size of the Label ,or if there is a way it should FIT the Font Size and Text Length ,so it Height and Width should be same as Font one .

Bests.


You're looking for the Bitmap and Graphics classes, along with the Font class and the TextRenderer.MeasureText method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜