Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
79 views

We use FastReports and its ImageExporter in a .NET 8 / C# WinForms application to generate images that are then printed in specific locations on a PrintDocument. We are using Metafile as the image ...
Excelcius's user avatar
  • 1,710
3 votes
1 answer
167 views

(I am aware using windows forms for this kind of project is stupid and inefficient but it is a requirement for the college course I'm doing so I'm stuck using this) in windows forms you can draw an ...
Halbear gameZ's user avatar
2 votes
1 answer
119 views

I am trying to render some kind of a picture using GDI+ with dynamically loaded fonts. Here is a minimal example (.NET 8.0): private void Form1_Load(object sender, EventArgs e) { ...
AndrewR's user avatar
  • 642
0 votes
0 answers
74 views

This is a continuation of a previous discussion here... I'm trying to convert an existing GDI+ practice program to use for the various GDI+ objects... So the existing (working) code is this: ...
Gorlash's user avatar
  • 81
3 votes
1 answer
184 views

I am using the GDI+ function Bitmap::FromStream() to load a PNG resource, following the example provided in this article. The Bitmap::FromStream() function requires an IStream as its first argument. ...
semicolon's user avatar
  • 135
1 vote
0 answers
43 views

It seems that information about resolution and DPI that I get from printer are not correct. I want the picture that I send to the printer is always maximized in width. Horizontal resolution for ...
look_up's user avatar
  • 73
0 votes
1 answer
40 views

I have defined the class Intersection as: // ******************************************** class Intersection public class Intersection { public string name { get; set; } public ...
Gus's user avatar
  • 1,612
1 vote
0 answers
66 views

The following code: Graphics g(hdc); Pen pen1(Color(0, 0, 0), 1.0f); pen1.SetAlignment(PenAlignmentCenter); Pen pen10(Color(0, 0, 0), 10.0f); pen10.SetAlignment(...
Damir Tenishev's user avatar
0 votes
0 answers
41 views

The following code gets weird results: Graphics g(hdc); Pen pen(Color(0, 0, 0), 50.0f); std::vector<PointF> line; line.push_back({ 200, 200 }); line.push_back({ 200, 100 });...
Damir Tenishev's user avatar
0 votes
1 answer
155 views

GDI+ Color class has functions Get* which return the values of specific colors and alpha channel (like GetR and GetRed; two of them for the same thing!) and at the same time lacks functions Set for ...
Damir Tenishev's user avatar
7 votes
0 answers
148 views

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 ...
Carlos's user avatar
  • 71
0 votes
0 answers
127 views

I installed Windows 11 and Visual Studio 2019 Professional to build our application, but the build always fails with a "Generic GDI+ error" when compiling the resources. If I remove the PNG ...
James Huntington's user avatar
0 votes
1 answer
85 views

I am trying to recreate a 1996 program, that barely anyone knows. It is called Identibacter Interactus. I am using C++ and Gdiplus to recreate it, and it was originally created with Macromedia ...
TheComputerGeek101YT's user avatar
0 votes
1 answer
56 views

When saving the image in C# WinForm, I encountered the following error: System.Runtime.InteropServices.ExternalException: 'A generic error occurred in GDI+.' Here is the updated code with the ...
m. Aref's user avatar
2 votes
0 answers
118 views

I'm trying to draw a rounded rectangle with anti-aliased corners, however the entire rectangle is being aliased, resulting in blured edges of the rectangle. I'd like to only have the rounded corners ...
user20716902's user avatar
  • 1,434
-1 votes
1 answer
160 views

I am trying to load an Gdiplus bitmap of 8 bit depth to an opencv mat. the image is in greyscale. Greyscale Image of 8bit: . this is the VC++ code snippet I am using to convert it into cv::mat. But ...
Jishnu JK's user avatar
0 votes
1 answer
123 views

I want to programmatically create indexed bitmaps in formats other than PixelFormat.Format8bppIndexed and need help in understanding why my current implementation is causing heap corruption. I've ...
sbridewell's user avatar
  • 1,210
2 votes
1 answer
109 views

In my WM_PAINT handler, I create a Gdiplus::Graphics object and I can make it from either an HWND or the HDC supplied by BeginPaint(). Is there any reason to choose one over the other?
poby's user avatar
  • 1,786
0 votes
1 answer
247 views

I found this answer showing how to create a bitmap using PixelFormat.Format8bppIndexed and wanted to adapt it to cover the other indexed formats (Format1bppIndexed and Format4bppIndexed) and to use a ...
sbridewell's user avatar
  • 1,210
0 votes
1 answer
228 views

I've made an AutoHotkey script to click some banners, and it sends me the photos on Telegram of the clicks it makes. Of course, my x1,y1,x2,y2 coordinates to crop the screenshot are variables and ...
user23704875's user avatar
1 vote
2 answers
150 views

I wrote a program that creates a window with the WS_POPUP attribute, in order to load a PNG image for background with transparent part, first of all in the code contained in case WM_MOUSEMOVE: I use ...
hacktooth's user avatar
0 votes
1 answer
85 views

Hi I am trying to create a Screen Capturing class in c++ (since python screenshots are slow as heck). I created this class but I can't create screenshots with odd resolutions like 101x101. I get a ...
Nur1's user avatar
  • 480
0 votes
0 answers
90 views

I'm compiling the GDI+ library in my code: #include <gdiplus.h> It works fine with the MSVC compiler but when using the Intel DPC++ 2024 compiler, I get the compilation error 'EmfPlusRecordType'...
BullyWiiPlaza's user avatar
1 vote
0 answers
94 views

Lately i have been working on a small project that reads information from SVG file and then using GDI+ to draw, but im having trouble with text drawing position, because what i draw is not the same as ...
Tran_Duc_Tung_HCMUS 's user avatar
0 votes
0 answers
59 views

I'm building a module for an application and, this module should take a print from the screen and show it into a QGraphicsView. This is my Print Screen code that saves the taken photo into a jpg file: ...
user avatar

1
2 3 4 5
59