gdi
How to tell if Image.FromStream is complete
i have the following code: var request = (HttpWebRequest)HttpWebRequest.Create(url); var response = request.GetResponse();[详细]
2023-04-05 12:49 分类:问答Drawing lines with GDI - Invalidate() / onPaint problem
I\'ve been learning how to use GDI but am having difficulty understanding how Invalidate() and overriding the onPaint event work and seem to be going round in circles.[详细]
2023-04-05 03:21 分类:问答C# saving an image from PictureBox
i have a code like this: private void Load_Button_Click(object sender, EventArgs e) { OpenFileDialog dialog = new OpenFileDialog();[详细]
2023-04-04 11:11 分类:问答Cairo linear gradient with Win32 double buffering
I\'m trying to make Cairo work in a Win32 window. The idea is just to make it render flicker-free. If I create a Cairo surface directly with the window\'s HDC, then the window will flicker on resizin[详细]
2023-04-03 23:44 分类:问答shadow getting darker drawn on bitmap
I\'m trying to create a shadow to a rectangle drawn dynamically on a bitmap. The problem is the shadow gets darker each time I draw a new rectangle (please see screenshot). I suspect that the same bit[详细]
2023-04-03 22:36 分类:问答How much memory should be allocated for the DIB data received from HBITMAP using GetDIBits function?
How much memory should be allocated for the DIB data received from HBITMAP using GetDIBits function? The GetDIBits function is described in MSDN as follow:[详细]
2023-04-03 04:13 分类:问答How to use GDI functions to draw on a DC which is being used by OpenGL?
How to use GDI functions to dr开发者_JS百科aw on a device context (DC) which is being used by OpenGL?[详细]
2023-04-02 12:28 分类:问答How to render a SlimDX scene directly to a GDI bitmap
Is there a way to set the render target to a GDI bitmap in SlimDX so that as soon as the scene is rendered I can immediately BitBlt the render out of there for processing in another thread and continu[详细]
2023-04-02 09:43 分类:问答Getting image from clipboard - black when screenshots appear?
I am using WPF to display the image in the clipboard. This works fine when going to Paint and copying something there, but when I hit \"Print screen\" to take a screenshot, the output there is just a[详细]
2023-03-31 18:24 分类:问答C# /GDI Graphics Scaling (Drawline)
I\'m writing something to create small bitmap previews from a vector format file. From the file I have a (large) list of line coordinates. What I want to do is scale it to make it fit in a fixed-width[详细]
2023-03-30 20:51 分类:问答