I need to sraw a string to a bitmap with full justified. I know that StringFormat.Alignment doesn’t support full justified alignment. So, I’m looking for a solution to draw a string on a bitmap with full-justify. RictTextBox has full justify but I think it uses WinAPI to justify the text. Maybe I can draw the text with RichTextBox but I don’t know how to get the controls bitmap(screenshot) without displaying in the form.
Is there any trick or an alternative 3rd party library to System.Drawing.Graphics?
I need to sraw a string to a bitmap with full justified. I know
Share
I used a method to draw
RichTextBoxon a bitmap.You can find WinApi implementations on pinvoke website. But you can take here too:
And here is the example of using.