Questions tagged [drawtext]

340 questions
0
votes
1 answer

I3D3XFont::DrawTextW - Expanding tabs wrong?

I'm wondering if it's an issue with I3D3XFont::DrawTextW, I pass it a string with \t in it, which it expands. However, it doesn't always do it correctly. If I print the same string that I pass to it, the tabs are expanded correctly. For example,…
0
votes
1 answer

FFMPEG: how can I properly add a text overlay to my video and save it to a thumbnail?

I have a ffmpeg command that goes to a url and successfully creates thumbnails at specified intervals. What I would like to do is add the time (eg: 03:45:20) to the bottom-left corner of the video in white text with a black shadow. I have seen a few…
AWainb
  • 868
  • 2
  • 13
  • 27
0
votes
2 answers

How to draw Text with Timer?

I used DrawText function within WM_TIMER, but it dont work. How to fix this? Thank you! LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) { PAINTSTRUCT ps; HDC hdc; switch (message) { case…
NoName
  • 7,940
  • 13
  • 56
  • 108
0
votes
0 answers

Android Clip drawText to Paint over that text

I am new to 2d graphics.. I create a text using drawText method. I have to paint over the drawtext area.. how can i clip the area of the text and paint over the surface package com.example.testingcanvas; import android.app.Activity; import…
karthik
  • 123
  • 13
0
votes
1 answer

How can I use DrawText() to display a variable?

I can draw a string literal via DrawText(): DrawText (hdcWindow, "abc123", -1, &rc, DT_SINGLELINE); However, this doesn't work with anything else. Specifically, I can't output the value stored in a variable, such as an int: int variable =…
0
votes
1 answer

Nexus 7 4.2.2 canvas drawtext letters f and j wont display

I have odd behaviour on my Nexus 7 I have been using Sassoon Primary ttf to draw a single letter using drawText on the center of a canvas in my own view. This has been working fine on all models I have tested except my nexus 7. all letters still…
RuAware
  • 979
  • 1
  • 9
  • 26
0
votes
1 answer

How do I use DrawText DT_CALCRECT properly?

I am generating a report that has a caption in the footer. I use DrawText to find out the caption's dimensions. The problem is the text is always clipped, but when I have a carriage return at the end of the text, all the text appears perfectly.…
Jeeva
  • 4,585
  • 2
  • 32
  • 56
0
votes
1 answer

Qt, Getting the text when QPainter::drawText() is called

I have a QPainter object and would like to obtain the string that is drawn whenever QPainter::drawText is called, as I would if I could connect a slot to that signal (which doesn't exist, so I can't). What would be the best way to do this? I have…
David Menard
  • 2,261
  • 3
  • 43
  • 67
0
votes
3 answers

Python : any ideas without using PIL to draw the text on a image

i m using Python 3.3,and i have installed(just excute the downloaded file .exe,no need any setting?) aspell PIL from below link,unfortunately i import PIL are error unresolved PIL. why? http://www.lfd.uci.edu/~gohlke/pythonlibs/ import PIL from…
user2040602
0
votes
5 answers

text color too dark when drawing text on view canvas

I used the following code to draw text on a view canvas: Paint paint = new Paint(); paint.setTextSize(14); paint.setColor(0xFFFFFFFF); paint.setAntiAlias(true); @Override public void onDraw(Canvas canvas){ super.onDraw(canvas); …
Anne Droid
  • 3,151
  • 4
  • 16
  • 15
0
votes
1 answer

Canvas.drawText leading to overlapping of text

I am trying draw different text at the same position .I am creating the typeface and paint object in the following code and drawing the text.It works fine till here.It draws the text with the typeface which i have specified.But when i drawtext…
sankettt
  • 2,387
  • 4
  • 23
  • 31
0
votes
1 answer

DLL Injection: DrawText and TextOut doesn't return all text

I successfully inject my DLL into the program. However I would like to get the information from a ListBox. WM_GETTEXT is not working so I had to do the dll injection. I am receiving a lof of text but from the desired control I have got nothing. Here…
stomseven
  • 157
  • 1
  • 2
  • 8
0
votes
1 answer

How to custom go newline when calling drawtext()?

This is a listfield. public class Custom_ListField extends ListField { private String[] title, category, date, imagepath; private int[] newsid, catsid; private List_News newslist; private Bitmap imagebitmap[], localimage = Bitmap …
Alan Lai
  • 1,296
  • 2
  • 12
  • 16
0
votes
1 answer

Trying to terminate the text drawn by drawText(Win32) if there is not enough height in the rect

I am trying to draw a multiline text using drawText. I am able to keep the width constant by passing DT_WORD_ELLIPSIS | DT_WORDBREAK flags but if the string is long the text is getting cut vertically in the last line. How to ensure that drawText…
deovrat singh
  • 1,220
  • 2
  • 17
  • 33
0
votes
1 answer

Use wxpython DrawText function to add text in a Bitmap

I'm trying to made a little graphic with a nice colour gradient and a text the colour gradient works now fine (only testing so code still messy) but the text doesn't show up up can someone please tell me what's wrong with my…
Christian Kaiser
  • 160
  • 1
  • 1
  • 10
1 2 3
22
23