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.

CreateCompatibleBitmap and CreateDIBSection (Memory DC's)

from what I've read here it seems that most of the Windows GDI functions are accelerated. So for instance a …

c++ winapi memory gdi
SetPixel is too slow. Is there a faster way to draw to bitmap?

I have a small paint program that I am working on. I am using SetPixel on a bitmap to do …

c# graphics bitmap gdi layer
DrawText VS TextOut Win32

I find have used both these functions before, but I don't quite see the the difference between them. Well, I …

c++ winapi gdi
Printing on roll paper

I am using C# with Winforms. I am trying to print bills on a paper roll. The width of the …

c# .net printing crystal-reports gdi
How to avoid flicker while handling WM_ERASEBKGND in Windows dialog

I have a dialog that resizes. It also has a custom background which I paint in response to a WM_…

windows dialog resize gdi flicker
Win32 GDI Drawing a circle?

I am trying to draw a circle and I am currently using the Ellipse() function. I have the starting mouse …

c++ gdi win32gui
Graphics.DrawString vs TextRenderer.DrawText?Which can Deliver Better Quality

TextRenderer is based on GDI and Graphics.DrawString is based on GDI+.Which of these functions can deliver better quality …

c# .net text gdi+ gdi
How to measure the pixel width of a digit in a given font / size (C#)

I am trying to calculate the pixel width of Excel columns, as described in this post, using the official formula …

c# gdi+ gdi pixel font-size
How to draw text with transparent background using c++/WinAPI?

How to draw text with transparent color using WinAPI? In usual way I used SetBkMode(hDC, TRANSPARENT), but now I …

c++ winapi gdi
c# radial gradient brush effect in GDI and winforms

I have created a c# windows application and written 75% of the code. The program allows the user to create a …

c# winforms gdi brush