←Select platform

GetItemImageTransformWithDpi Method

Summary

Transformation matrix of the image of an item with or without DPI scaling.

Syntax
C#
C++/CLI
public LeadMatrix GetItemImageTransformWithDpi( 
   ImageViewerItem item, 
   bool useDpi 
) 
public:  
   LeadMatrix^ GetItemImageTransformWithDpi( 
      ImageViewerItem^ item, 
      bool useDpi 
   ) 

Parameters

item

The reference item, this value cannot be null.

useDpi

true to return the transform with DPI scaling, otherwise; false.

Return Value

The transformation matrix of the image of an item with DPI scaling if useDpi is true or without DPI scaling if useDpi is false.

Remarks

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 an 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.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.