Questions tagged [drawtext]

340 questions
0
votes
3 answers

Android: DrawText with background contrast

How to "set up" a paint to accomplish the "second" image above? paint.setColor(Color.BLACK); canvas.drawText(strValue, x, y, paint); First Image: text all in black as result of that code above. Second Image: better constrat to backgroud colors…
Christian
  • 7,062
  • 9
  • 53
  • 79
-1
votes
1 answer

FFmpeg timestamp watermark beginning at a specified offset

I am trying to extract a portion of video from another video file. I want the second video file to be timestamped with the time in the original file from which the excerpt was extracted. Here is the command so far. #FILE TIME WATERMARK ffmpeg…
-1
votes
1 answer

Python Wand text - "€"Symbol

I'm looking for a way to display the Euro symbol (€) in a text drawing. It's currently been displayed as shown below: Code: from wand.drawing import Drawing as WandDrawing from wand.image import Image as WandImage with WandDrawing() as draw: …
Nickelza
  • 41
  • 1
  • 4
-1
votes
1 answer

Merging\Joining three FFMPEG Commands (Drawtext / -filter_complex overlay / anullsrc=channel_layout)

Currently I am using three different commands to create three mp4s only to delete the two "temporary" videos using this code. @ECHO OFF ffmpeg -f lavfi -i color=size=1280x720:duration=5:rate=25:color=Black -vf…
roar
  • 53
  • 6
-1
votes
1 answer

Need to set Multiple drawtext in same line one after the other. but unable to do so via FFMPEG command

Hi Am trying to create a FFMPEG command for Text overlay on video that has partially text as bold. I am using the following command. but am unable to figure out how to pass the x position of 1st ending part. ffmpeg -i b.mp4 -vf…
-1
votes
1 answer

Draw Text using Canvas without using TextView object

I want to create a custom view. That view will be having a Text which is drawn using canvas. The text drawn does not uses any TextView object. I tried to draw a text using canvas. Here is my code : class MainActivity : AppCompatActivity() { …
-1
votes
1 answer

How to stop DrawText from underlining alt characters?

I'm using DrawText to draw text onto a DBGrid canvas. The text comes from the database. But when the string contains an ampersand (&) it treats it as an alt shortcut and underlines it. For example, what should be Wool & Silk winds up being Wool…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
-2
votes
1 answer

Qt Get String from C++ Method and DrawText in Widget?

i'm very newbie and lost! I have a .cpp file in my qt project and my own widget.cpp wich has drawings! Now i want to get the data from the other .cpp file, from a class called, outputtext..which has a method add(name,value) both std string! Know i…
-2
votes
1 answer

How to use %d in C++, particularly in DrawText()

so ive heard of %d, but i dont know how to use it. here is what i want to do: DrawText (hdcWindow, "PLACE IN QUESTION" , -1, &rc, DT_SINGLELINE); at the "PLACE IN QUESTION" i want to display text and a variable like "text %d" or something, but I…
-3
votes
2 answers

C++ - two times DrawText()

I'm currently experiencing an error with my program. My program has two rectangles, each of them surrounded by a groupbox. Currently I'm trying two place text in each of them. I've already got text in the first rectangle - fine (with DrawText()). If…
Daniel
  • 83
  • 1
  • 2
  • 13
1 2 3
22
23