gdi Questions

0

I'm trying to visualize on memory GDI+ images using the Image Watch extension. I requested support on this feature long time ago directly on the developercommunity it got a lot of upvotes but MSFT ...
Swill asked 18/9, 2024 at 7:12

4

I am trying to draw some text using TextRenderer (since this is favorable to using Graphics.DrawString) to a Bitmap, however it is having some very undesirable effects. Example Code using (Bitmap...
Generalization asked 16/9, 2013 at 22:1

6

Solved

I've got a JPEG image which was taken on an iphone. On my desktop PC (Windows Photo Viewer, Google Chrome, etc) the orientation is incorrect. I'm working on an ASP.NET MVC 3 web application where ...
Cannonball asked 3/6, 2011 at 1:15

3

Solved

I have a task to draw a specific graphic. As part of this task I need to rotate some dot's on 45 degrees. I've spent already 2 days trying to calculate a formula, but just couldn't get it right. I...
Catlin asked 4/12, 2012 at 2:47

6

I want a window without title bar but with resizable frames and shadow. This can easily be achieved by removing WS_CAPTION and adding WS_THICKFRAME, however, since Windows 10, there's a 6px white n...
Godfree asked 27/9, 2016 at 18:5

7

Solved

Let's say I have a handle to device context (naturally, in Windows environment): HDC hdc; How can I get the width and height of it?
Amalberga asked 1/7, 2010 at 1:45

4

Solved

We have an application where we use both GDI and OpenGL to draw to the same HWND, but exclusively. Example: initially we are in 2d mode, so we draw on it using GDI then we switch to 3d mode and ...
Enteron asked 29/5, 2018 at 14:49

2

Solved

I'm new to graphics programming and I'm wondering why I would ever prefer GDI over the hardware accelerated graphics of DirectX/OpenGL? Are there still good reasons to use GDI?
Juliennejuliet asked 28/11, 2011 at 22:29

4

First, sorry if I sound arrogant/rude here. All right, so everyone has run into this by now (I hope); I just haven't found any adequate answer anywhere. We start with a Common Controls 6 manifest ...
Destruct asked 15/8, 2014 at 1:13

2

Solved

I've created a basic program that renders sprites in a windows console using the SetPixel() method, and it works fine, but there is massive overhead. I've made some optimizations to this, which hel...
Preciado asked 28/12, 2018 at 12:35

10

Solved

I use ffmpeg to record a window using this code: ffmpeg.exe -f dshow -y -i video="screen-capture-recorder":audio="virtual-audio-capturer":audio="Microphone (USB Audio Device)" -framerate 15 -v...
Complicity asked 20/8, 2014 at 4:33

4

Solved

Is it possible to screen capture a specific window (also possibly of another process)? Currently I am capturing the entire desktop of a specific monitor, however what I truly want is to capture th...
Chant asked 1/7, 2012 at 14:59

2

Solved

Can you get the RGB value from HBRUSH or from brush id? for example: I'm looking for GRAY_BRUSH in RGB value.
Emmieemmit asked 31/8, 2010 at 18:26

2

Solved

As a relative newcomer to MFC, I see Device Contexts (DCs) a lot. I vaguely understand that it's something to do with drawing, but the specifics are not very well explained anywhere that I can find...
Schmit asked 6/5, 2010 at 1:8

11

[ExternalException (0x80004005): A generic error occurred in GDI+.] IpitchitImageHandler.Data.ImageRepository.AddNewTempImage(Stream image, String extension, Guid PageId, Guid ImageId, ImageTransf...
Elana asked 25/6, 2009 at 13:56

3

Solved

I'm creating a c++ project using Embarcadero RAD Studio (10.2 Tokyo starter) and the Windows GDI to draw text, via the DrawText() function. I recently saw that Windows 10 provides a new "Segoe...
Cory asked 23/10, 2017 at 15:15

6

Solved

It seems that .NET can't open JP2 (Jpeg 2000) files using the GDI library. I've searched on google but can't find any libraries or example code to do this. Anybody got any ideas? I don't really wa...
Lynching asked 26/2, 2009 at 13:11

4

Solved

Whenever I install a new font on a Windows 2003 server, I can't use it immediately in my asp.net web application. The application gets the font through the CreateFontIndirect gdi32.dll win api, and...
Sigman asked 3/6, 2010 at 7:49

2

How do I get correct DPI scaling factor? What I need is the percentage shown in the screenshot, in this case it is 200%. The code below gives SCALE_180_PERCENT. I would expect the code below should...
Ambassador asked 1/9, 2020 at 17:44

0

I am developing a module for Windows 10 that manages and applies configuration to connected monitors. With the code below I can clone and extend monitors connected via HDMI, VGA, DP and DVI but I'm...
Palmary asked 30/4, 2021 at 11:5

5

Solved

Is it possible to load a PNG from a file into an HBITMAP using Win32 GDI functions? If not, what would be the lightest solution without using external libraries (like libpng)?
Wive asked 31/12, 2010 at 3:26

1

Solved

I wrote a program to draw some string on an image. I use graphics.DrawString() but as you can see in this post, it has some problems. TextRenderer.DrawText() solved that problem but the rendered te...
Ac asked 21/9, 2020 at 7:11

5

Solved

I am using C# with Winforms. I am trying to print bills on a paper roll. The width of the paper is 3in but the length of the paper is dynamic (its a roll paper). The length depends on how many item...
Vanda asked 6/12, 2010 at 10:20

3

Solved

I have an application which loads some blob data out of a database which can represent png formatted or raw binary data for various bitmaps and icons. This is being stored in a std::vector<unsig...
Polyploid asked 4/1, 2011 at 21:56

2

I need to generate an image from a string in my WPF application, and show it. Here is my code: // Create Image and generate string on it System.Windows.Controls.Image img = new System.Windows.Cont...
Retrorse asked 25/12, 2018 at 11:47

© 2022 - 2025 — McMap. All rights reserved.