drawstring
Fill text inside rectangle
I\'m using GDI+ to draw a string on a开发者_JAVA技巧 Graphics object. I want the string to fit inside a pre-defined rectangle (without breaking any lines)[详细]
2023-01-24 07:03 分类:问答How to draw unicode string using C# graphics.DrawString
I\'m trying to send khmer script(unicode) string to printer using PrintDocument provided by the .NET framework.[详细]
2023-01-23 16:58 分类:问答User Placed Text on a picturebox in c#
I am trying to make a tool that allows me to choose a certain location on a picturebox to put text from a textbox on. It will need to be able to place multiple different texts on the picturebox and th[详细]
2023-01-23 11:19 分类:问答Compact Framework: drawing multi-line string with ellipses
I\'m creating an owner-drawn control inherited from ListView for a Windo开发者_开发百科ws Mobile application. I\'m using Graphics.DrawString to write out a two-line text string (using .NET CF 3.5). Pr[详细]
2023-01-15 17:57 分类:问答C# Graphics.DrawString not rendering special characters?
I\'m trying to write some arbitrary text to a custom control.My code works, but when I try to draw characters such as ü, it displays an empty square where the character would be.I need this to work a[详细]
2023-01-11 20:02 分类:问答DrawString with character wrapping
I\'m creating a fatal error dialog for a Windows Mobile Application using C#. The problem is when I try to draw the stacktrace using DrawString, half of my stacktrace is getting clipped off because Dr[详细]
2023-01-02 06:01 分类:问答Fix text stretching when printing to a receipt printer with Java
I am printing to some Epson receipt printers by implementing the Java Printable and placing my code into the print method. To draw the text to the printer I use Graphics2D.drawString. I am also drawin[详细]
2023-01-01 13:53 分类:问答Resize Rectangle based on text
I am working on a custom control where I am using Rectangle to show some data. Now, lets say the width and height of the rectangle is set to 100.[详细]
2022-12-30 02:08 分类:问答Graphics.MeasureCharacterRanges giving wrong size calculations
I\'m trying to render some text into a specific part of an image in a Web Forms app. The text will be user entered, so I want to vary the font size to make sure it fits within the bounding box.[详细]
2022-12-28 04:36 分类:问答Graphics DrawString with controlled Word Wrap
Basically my issue is that I need to word wrap a string when I want to. Not when .NET wants to. I und开发者_JS百科erstand that the DrawString method will automatically word wrap if I give it a rectang[详细]
2022-12-21 16:44 分类:问答