drawstring
How can I print a text file with tabs in it?
I am trying to print a text file with tab characters in it. The problem is that these tabs are not shown when printing. Here is my code:[详细]
2023-02-26 15:09 分类:问答How does Affine Transform really work in Java?
I have been using Affine Transform to rotate a String in my java project, and I am not an experienced programmer yet, so it has taking me a long time to do a seemingly small task.. To rotate a string.[详细]
2023-02-24 16:44 分类:问答How to draw a rotated string as an image with System.Drawing?
I am drawing strings to images. The size of the images is dynamic, or in other words, the images are as large as necessary to display the strings. To achieve that I am measuring the size with Graphics[详细]
2023-02-22 14:42 分类:问答Popping up a TextBox on mouse click over a PictureBox for adding custom note to picture
In my C# winforms application, I have a picturebox which some bitmap images can be loaded into it. What I want to do is if user clicks somewhere within picturebox, at the mouse location a small textbo[详细]
2023-02-21 22:18 分类:问答GDI+: Draw underlined space with DrawString
Hallo, i want to draw a justified text in GDI+. When this text is underlined I have a problem, with the DrawString method:[详细]
2023-02-16 17:58 分类:问答JTextArea Printing
I have an JTextArea with some lines of text in it.I want to print that lines of text, here i am using the method getText() and storing the whole data into a string variable. I am passing that string t[详细]
2023-02-13 10:58 分类:问答Determining the number of lines in a text string?
As part of a printing class, I want to be able to print long strings over multiple pages, but I don\'t know how to calculate the height of the entire string, which I will determine by first counting t[详细]
2023-02-11 02:19 分类:问答Rotated text align in C#
I need to be able to rotate text in a label and align it to the left, right or center. So far I am able to do rotation with this code in the derived label\'s onPaint method:[详细]
2023-01-31 10:11 分类:问答Determining bitmap size to hold text string
What I am trying to do is use the DrawString() method to draw a string to a bitmap. To do this, I need to create a bitmap and get a Graphics object from the bitmap, then call DrawString() on that Grap[详细]
2023-01-27 21:34 分类:问答Ugly rendering of image with DrawString-Method (ASP.NET)
I want to render some text as image in ASP.NET. It is working well, but the text is rendered very ugly (w开发者_JAVA技巧ith grey pixels around the text) even if I turn on AntiAlias (or ClearType) by c[详细]
2023-01-24 14:43 分类:问答