How to change image DPI
Image-Pro Premier doesn’t expose UI to change the image DPI, however it is possible at the low level or with the following macro:
Public Sub SetActiveImageDPI Dim i As Integer, s As String If ThisApplication.ActiveImage IsNot Nothing Then With ThisApplication.ActiveImage i = .DotsPerInchX s = InputBox("Enter new DPI value:", "Set DPI", i.ToString) If Not String.IsNullOrEmpty(s) Then If Integer.TryParse(s, i) AndAlso i > 0 Then .DotsPerInchX = i .DotsPerInchY = i Else MsgBox("Invalid DPI value!") End If End If End With End If End Sub
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions