Transformation matrix of the image of an item with or without DPI scaling.
public LeadMatrix GetItemImageTransformWithDpi(
ImageViewerItem item,
bool useDpi
)
Public Function GetItemImageTransformWithDpi(
ByVal item As ImageViewerItem,
ByVal useDpi As Boolean
) As LeadMatrix
public:
LeadMatrix^ GetItemImageTransformWithDpi(
ImageViewerItem^ item,
bool useDpi
)
item
The reference item, this value cannot be null.
useDpi
true to return the transform with DPI scaling, otherwise; false.
The transformation matrix of the image of an item with DPI scaling if useDpi is true or without DPI scaling if useDpi is false.
GetItemContentTransform returns the transformation used to render the image of an item in relation to the top-left corner of the viewer control.
Each ImageViewerItem can have a ImageViewerItem.Resolution value that can be used to set the resolution (in dots per inch, or DPI) of the item. When the value of the DPI is different than the screen resolution and the viewer is instructed to view items using the true logical size (using UseDpi then the viewer will add the scaling required into the image transformation.
When the value of useDpi is true, then this method will return the same value as GetItemImageTransform. If the value of useDpi is false, then this method will return the transformation excluding the DPI scaling.
For more information refer to Image Viewer Appearance, Image Viewer Transformation, and Image Viewer Bounds and Transform.
Products |
Support |
Feedback: GetItemImageTransformWithDpi Method (ImageViewer) - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.6.20
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.