Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
80 views

I am trying to paint in paintComponent strings vertically within a given rectangle, so that the text beginning is at the vertical edge of the rectangle. My idea is to rotate the text around its center....
Alex B.'s user avatar
  • 21
0 votes
0 answers
171 views

I am developing an addon mod that introduces some custom swords that keep track of a killstreak. I want to draw some text on screen that fades out after a few seconds. I can get the text to ...
Jack Bittner's user avatar
1 vote
1 answer
418 views

I need a listview that can support a Column header with two lines of text. I have spent a lot of time trying to use add_DrawColumnHeader to create that 2nd line. I have no issues creating it in c# but ...
OldManWithTime's user avatar
2 votes
1 answer
723 views

This is about Flutter, Dart, Image, specifically drawString function. First of all, what I am trying to do is watermark the picture taken with the text (product name). I mean not just placing text ...
Mayur Sankhla's user avatar
0 votes
1 answer
79 views

I'm trying to draw a rectangle with rounded corners. But when I print the layout there's a problem with the lines like the image below: while the image that I need to print is this: This is the part ...
Francesco Vargas's user avatar
0 votes
1 answer
219 views

I'm trying to draw a string on the screen (attached to the mouse cursor) using C#, and the string value and its location change with the mouse movement. The problem here is when hovering the mouse, ...
Sameh_Saady's user avatar
3 votes
1 answer
329 views

The string is "Hello World " with 10 SPACE chars in the end, but Graphics.DrawString in Right Alignment omits all of SPACE chars, it just draws "Hello World" only. ...
qtg's user avatar
  • 125
-1 votes
1 answer
1k views

I want to use an RGB color instead of default color of C#, but I have no idea how. e.Graphics.DrawString("Order Summary", new Font("Roboto", 15, FontStyle.Bold), Brushes....
xeyon's user avatar
  • 27
0 votes
1 answer
68 views

I removed backColor from the form and added a pictureBox. After that I'm trying to draw a string. But It looks really ugly with these white pixels. Could y'all help me, please? Here is a screenshot of ...
Corpus's user avatar
  • 31
0 votes
1 answer
3k views

This is about Flutter, Dart, Image, specifically drawString function. First of all, what I am trying to do is watermark the picture taken with the address and time. I mean not just placing text over ...
Challey Challey's user avatar
1 vote
0 answers
383 views

I'm using C# DrawString to draw text on an image background which is output as a TIFF for printing. For some fonts at some sizes, the DrawString method is adding a border around the text. Both of ...
AlwaysStuck's user avatar
0 votes
1 answer
182 views

The result of drawString with the same font and size in java The appearance is different when drawn with the same font and size in a painter (or word). Drawing with drawstring in java doesn't look ...
hyunwoo park's user avatar
1 vote
0 answers
982 views

I'm drawing strings on an image and saving it as a TIFF. I need to orient the text like this: desired output I'm using this code to create the string format: formatFlags = (StringFormatFlags.NoClip | ...
AlwaysStuck's user avatar
1 vote
1 answer
980 views

I'm a beginner writing a simple windows desktop form app with a textbox that user types into and then clickbutton converts that text into a bitmap that is shown in a picturebox (that is only 96 x 64 ...
Unwired4's user avatar
0 votes
1 answer
618 views

I am trying to figure out a way to use the StringFormat class to add new line to a given TreeNode text. For example, the string ID1:123456, ID2:789000, can be split by comma and insert a newline in ...
Emory Lu's user avatar
4 votes
0 answers
825 views

I need to convert a text containing Unicode chars into a Bitmap that could have a transparent background as well. I found and tried different posts like this, this, or this, but no one seems to work ...
ilCosmico's user avatar
  • 1,489
2 votes
1 answer
826 views

I'm drawing a graph with two points of each point having a line with a weight. for example graph: point "15" to point "16" line with the weight of 1.872 and point "16" to ...
ATB's user avatar
  • 141
0 votes
0 answers
78 views

I'm trying to draw my text in the center of my (test) rectangle. my (simplified) code: Sub Main() Using x As New Form1() x.ShowDialog() End Using End Sub Imports System.Drawing ...
Eviler's user avatar
  • 39
1 vote
1 answer
295 views

I have a couple of methods that draw outlined text. The details of this are unimportant, but it serves to illustrate the problem: (source code from Graphics DrawPath produces unexpected results when ...
stigzler's user avatar
  • 1,035
1 vote
1 answer
94 views

My ancient application leans heavily on drawString. It's at least 20 times slower in Windows 10. Are there ways to speed up drawing text in Windows? The following code illustrates the difference. ...
orange's user avatar
  • 13
1 vote
1 answer
121 views

I am trying to do the following: user uses some html page where he can upload images and also add text. This is the app for apparel company. So basically we have a t-shirt background picture and we ...
Giorgi Nakeuri's user avatar
0 votes
0 answers
338 views

I have a method which generates images using DrawString(). If I call this method on every machine I tested from any program with an UI or from Console-App every thing is fine. The image shows the ...
FlowOverStack's user avatar
0 votes
1 answer
459 views

I'm writing a simple Trivia game and I ran into a problem where the question string won't display In my frame I'm using border layout with "new game" and "end game" on the bottom (...
Elad Nadav's user avatar
0 votes
0 answers
309 views

I have looked around the site and did not find the answer to my question. So any help is appreciated. I want to use drawString to write individual text strings that each end at the same distance from ...
BostonKevin's user avatar
0 votes
1 answer
1k views

I am running into some issues while wanting to write some text on an image. As I looked, it could be done with following code: package asd; import java.awt.Color; import java.awt.Font; import java....
slomil's user avatar
  • 311
5 votes
1 answer
1k views

I'm using the System.Drawing library in C# to measure a string's size: SizeF size = gfx.MeasureString("Hello", myFont); However, this returns a size with a bit of spacing around the text. ...
Bip901's user avatar
  • 878
2 votes
1 answer
114 views

I have a C# programm, that convert Text to Image by using GDI+ method Graphics.DrawString On my machine with Windows 7 it works good see example image here: But on the Windows Server 2019 it creates ...
Du10's user avatar
  • 67
0 votes
0 answers
970 views

To give an example of what I mean, external FPS counters, that overlay the entire screen or overlay a certain window, it allows for users to click through it, stays visible, and doesn't have a main ...
user6471847's user avatar
4 votes
1 answer
776 views

The below code block which throws System.Runtime.InteropServices.ExternalException: 'A generic error occurred in GDI+. exception when the string passed to draw is too long. public partial class ...
Mohanram Anbukkarasu's user avatar
0 votes
1 answer
150 views

I'm making a 2D card game. In it I have a custom font uses drawString from the Graphics library to draw it in with custom color and size. Problem is that this seems incredibly unoptimized. I can't ...
GooseWithDaGibus's user avatar
4 votes
1 answer
58 views

I have made a game using CardLayout and have one JPanel for the leaderboard. In leaderboard, I read two files (one with names, one with times), sort them and draw the top 5 fastest times like this: ...
Faiq's user avatar
  • 41
0 votes
0 answers
58 views

Working on a private stock chart where I use a rendering rectangle with an origin at lower left and inverted y axis, scale factor y is negative. Y axis ticks render nicely but drawing text (drawstring)...
user3351749's user avatar
0 votes
1 answer
871 views

i want to create a little image containing a logo and multiple lines of text and send it directly to a printer. However im having trouble with textquality. Currently im creating a Bitmap and render ...
madman's user avatar
  • 1
1 vote
3 answers
99 views

I want to display many text in the same windows but only the last text is displayed, there is my 2 class : import Test.Graph; import javax.swing.JFrame; public class InterfaceGraphique extends JFrame ...
Yatsu's user avatar
  • 9
1 vote
1 answer
210 views

Rectangle Location = new Rectangle(X , Y, W, H); var TextFormat = new StringFormat() { Alignment = StringAlignment.Far }; string Text = "RRRR1234567890123456789012345678901234567890RRRR"; e.Cache....
Transportmaster's user avatar
0 votes
1 answer
19k views

I'm getting into graphical stuff in Java and want to display text. As I've read, drawString() is the standard method for this. My code to draw the string is: import java.awt.*; import javax.swing.*; ...
LukasFun's user avatar
  • 229
0 votes
0 answers
448 views

I have an app that prints very small labels. One thing I have noticed is that the printing (using DrawString with a rectangle) aligns text based on the TOP of the font ascender size. So when there ...
Some_Yahoo's user avatar
0 votes
1 answer
587 views

I have a project in which I create an image with rotated text around an invisible circle. The drawing in itself is working just fine. However, it seems that no matter the font I use, I always get the ...
David Brunelle's user avatar
0 votes
0 answers
270 views

I needed to write text left-to-right but each character rotated 90 degrees counter clock wise so that on a print out it would look like the text is written vertically top-to-bottom like this: To ...
Adam Crowe's user avatar
2 votes
3 answers
2k views

I am trying to draw text on an image from top right corner towards the bottom left corner. My code mess up the positioning of drawstring. so far this code drawing like this but I need help to draw ...
aadi1295's user avatar
  • 992
0 votes
1 answer
89 views

private void Side_pictureBox_Paint(object sender, PaintEventArgs e) { if (doubleclicked == true) { Side_pictureBox.Refresh(); for (int ...
user10748500's user avatar
0 votes
1 answer
439 views

I'm making a label printing thing for a candy shop in C#. The label printer stock is narrow and tall, like a portrait style format so I'm printing using System.Drawing.StringFormat drawFormat = new ...
Doug Matthews's user avatar
0 votes
0 answers
335 views

i got a request to change the Font family of a string that im drawing on a rectangle and after in an image , my question is : How? , i know how to add a custom font on the html but this time im ...
Roberto González Moreno's user avatar
3 votes
1 answer
1k views

At first, I used drawString and GraphicsPath.AddString to draw outlined/solid text in the pictureBox. I can change it's font size, style and font-family but I realized that I won't be able to resized/...
TerribleDog's user avatar
  • 1,247
0 votes
0 answers
225 views

I'm new to GDI+ and am trying to modify a program so that it draws a black rectangle over a specified object and then display text describing what the covered object is. I've been able to get the ...
Flannery Currin's user avatar
1 vote
1 answer
3k views

I want to draw the following text on panel: It is a multi-colored text. I found this article about drawing multicolored text. I replaced characters with words but it doesn't work. (I use FillPath/...
Rasool g's user avatar
2 votes
2 answers
2k views

I have an application which at some point draws many circles on a Panel control. Then I want to name each circle (just a letter and a number). And I want the text to be centered, to make it look nice. ...
minecraftplayer1234's user avatar
0 votes
1 answer
358 views

I have got an issue with e.Graphics.DrawString(TextToPrint, Font, Brush, New RectangleF(StartPositionX, StartPositionY, Width, Height)) Let's say I want to print "Hello World" in Arial-20pt at 25mm ...
DerIgelJohnWo's user avatar
0 votes
1 answer
2k views

I am trying to print a receipt on 58mm thermal printing with the use of vb.net and Graphics.DrawString of vb.net but it is leaving some space at the beginning. I have also tried by giving the x ...
Bhaumik Vyas's user avatar
2 votes
0 answers
482 views

I created a simple WinForm Form and tested a custom font file. Basically I just add several chinese characters (which do not exist) to a existing font file. Strange thing is that the font only works ...
YongSeung  Kim's user avatar

1
2 3 4 5
7