Re: Writing text to an ATL::CImage?
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Joachim <Joachim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
How can I write some text to an ATL::CImage? I'm using VS .NET 2003
and I'm NOT using MFC.
Use CImage::GetDC to obtain an HDC from the image, draw on it using the
regular GDI API (see TextOut, DrawText et al), finally call
CImage::ReleaseDC
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
Relevant Pages
- Re: 16 bit to 32 bit ?
... > and destroy the original DIBSection and select the new 32-bit version back ... I figured out a way to tel the ShockwaveFlash player to draw its animation ... The Flash player draws its animation using the current screen resolution. ... If the screen is set to 32, Flash draws in my HDC with a 32 bit depth and ... (microsoft.public.win32.programmer.gdi) - Re: Is it possible to draw lines between two froms?
... public extern static IntPtr ReleaseDC ... To draw on the desktop use ... IntPtr hDC = GetDC; ... Form1 and Form2 needs to be MDIChildren. ... (microsoft.public.dotnet.languages.csharp) - Windowless control draws wrongly in IE
... if I draw it to a large region then it seems to clip the line (but not the ... HDC hdc = di.hdcDraw; ... HBRUSH hOldBrush, hBrush; ... (microsoft.public.vc.atl) - StretchDIBits fails on turning image upside down when drawing to E
... I'm attempting to draw an image using StretchDIBits with an Enhanced Meta ... File handle as the HDC to my OnDraw function using C++ and Visual Studio ... HOWEVER, when I attempt to draw the bitmap upside down, to the EMF file I ... (microsoft.public.win32.programmer.gdi) - Re: why old text with textOut cleared !!
... TextOut just writes the text. ... It doesn't clear any part of the window. ... how you are choosing to update the window; presumably you have done an Invalidate(). ... TextOut (hdc, 90, 0, ... (microsoft.public.vc.mfc) |
|