Re: Drawing Text on Image object with GDI+

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On 5 Mar, 23:59, "Mark Salsbery [MVP]"
<MarkSalsbery[MVP]@newsgroup.nospam> wrote:
<marcusadel...@xxxxxxxxx> wrote in message

news:b8251c3e-6284-4303-aabc-2f45e18bbef6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi,

How do I Draw Text on Image object with GDI+?

1)  Use the Graphics constructor that takes an Image* as a param (or use
Graphics::FromImage()) to create a Graphics object.

2)  Draw on that Graphics object

Mark

--
Mark Salsbery
Microsoft MVP - Visual C++





Thanks,

Marcus- Hide quoted text -

- Show quoted text -

Yes, that's what I did, but when I saved the bitmap to the hard drive
there is no text. Is there anything else I have to do to save the
image after I draw on it and keep it?
.



Relevant Pages

  • Re: Drawing a string
    ... why don't you ditch the picturebox and do all the painting in the ... OnPaint method of your form, get the graphics object you are passed, draw ... > like the picture box is in front of the string I've drawn. ...
    (microsoft.public.dotnet.framework.compactframework)
  • text in gdi+
    ... I have a position BasePoson a graphics object that I would like to ... that it is draw at to be rotated/scaled. ... required transformations to, then draw my text to that. ... you can then rotate/scale these groups. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Whats the swing equivalent for Canvas?
    ... ensure all materials at my site/s are ... For that reason, ... declare a Graphics object as a class attribute. ... it will only draw the complex bit once. ...
    (comp.lang.java.gui)
  • Re: Inverting or flipping a GraphicsPath
    ... You can apply any transform to a path or draw a path to any transformed ... Graphics object. ... To flip the graphics path you would need to invert one or other of the axes ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: DrawImage with High DPI Still Pixelated?
    ... what is the original DPI of the image you are recieving? ... Their text that they draw into the Bitmap ... Please note that its not blury when I ... >>> text with the DrawString method into the received graphics object, ...
    (microsoft.public.dotnet.framework.drawing)