How to set bitmap dpi using ImageExporter
Yusuke
8/8/2023 3:00 AM
|
---|
Hi Wout &c,
How can I use ImageExporter.CreateAutoSizedBitmap below to output an image with a specified DPI? Does GraphicsConfig's DotsPerInch have no effect on image resolution?
The purpose is to insert the generated image into an Excel file and print it at a resolution of 300DPI.
C# Code: var widthxx = bounds3D. |
Wout
8/8/2023 9:12 AM
|
---|
Hi,
The GraphicsConfig.DotsPerInch currently does not set the bitmap's dpi (it will change this in the next release). It currently only affects the calculation of the number of pixels for a certain line width, so it should indeed ideally by equal to the bitmap's dpi.
Try the following just after you create the bitmap:
C# Code: / |
Yusuke
8/8/2023 10:22 AM
|
---|
Hi,
thank you.
I would like to purchase the Windows version.
Yusuke
|
Wout
8/8/2023 10:28 AM
|
---|
Hi Yusuke,
You can order the 6.0 for windows version here.
- Wout
|
Yusuke
8/8/2023 10:52 AM
|
---|
Hi,
And I'm sorry many times. Let me ask you one more question.
Do I need .NET Desktop Runtime 6.0 to use the Windows version? Desktop Runtime 6.0 is not installed because it is assumed to run on WindowsServer.
Yusuke
|
Wout
8/8/2023 11:02 AM
|
---|
Hi,
I'm not entirely sure, there is an option to build a self-contained application, there's a bit more info here. I haven't tried this myself, so you will have to try this on your end to see if it works.
- Wout
|