Top "Gdi" questions

Graphics Device Interface (GDI) is a device-independent, pure software graphics API under the Windows operating system for drawing graphic primitives and text.

Alphablend and TransparentBlt

This question is related to my earlier question on SO. I want to combine two layers with alpha applied only …

delphi canvas gdi alphablending ownerdrawn
Drawing text to a Bitmap with TextRenderer

I am trying to draw some text using TextRenderer (since this is favorable to using Graphics.DrawString) to a Bitmap, …

c# bitmap gdi+ gdi text-rendering
c++ DrawText() font color and background color

How do I change the text color and font background color that is displayed when I use the DrawText() function? …

c++ winapi colors gdi drawtext
Copying a bitmap from another HBITMAP

I'm trying to write a class to wrap bitmap functionality in my program. One useful feature would be to copy …

c++ windows bitmap gdi atl
How to handle WM_ERASEBKGND to avoid flickering?

I have on a form some custom progress bars which are updated/refreshed twice per second and they are flickering. …

delphi winapi delphi-7 gdi flicker
How to use GDI+ in C?

Disclaimer: I'm only getting started in C, so it's likely that I'm missing something obvious, or not thinking the right …

c winapi gdi+ gdi
MemDC in OnPaint()-function

My OnPaint() function calls several other drawing functions. void CGraph::OnPaint () { CPaintDC dc(this); // CMemDC DC(&dc); dc.SetViewportOrg (0, 400); …

visual-c++ mfc gdi onpaint
Convert CFF fonts into OpenType fonts programmatically

Does anyone have any pointers where I can find extra information on how to create an opentype wrapper around a …

windows fonts gdi opentype compact-font-format
Specifying DPI of a GDI Device Context

I have an application that generates metafiles (EMFs). It uses the reference device (aka the screen) to render these metafiles, …

gdi rounding-error metafile
How to convert bitmap to grayscale by pixel intensity using GDI?

I'm looking for the simple solution of how to convert the 32-bit bitmap to grayscale using GDI (not GDI+). Is …

delphi winapi bitmap gdi grayscale