DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Zoom Property






In This Topic
    Zoom Property
    In This Topic
    Controls the magnification of an image display
    Syntax
    'Declaration
     
    
    Public Property Zoom As System.Single
    'Usage
     
    
    Dim instance As DicomImage
    Dim value As System.Single
     
    instance.Zoom = value
     
    value = instance.Zoom
    public System.float Zoom {get; set;}
    public read-write property Zoom: System.Single; 
    public function get,set Zoom : System.float
    public: __property System.float get_Zoom();
    public: __property void set_Zoom( 
       System.float value
    );
    public:
    property System.float Zoom {
       System.float get();
       void set (    System.float value);
    }
    Remarks

    Together with Scroll, this property determines the display of an image, which is magnified by 'Zoom' relative to an original size which is defined as 1 pixel = 1 screen pixel. This property is ignored if the image's StretchMode property is True.

    In order to find the values used at any given time, even if StretchToFit is true, use the Matrix method to get the ActualZoom which is used in the COM version.

    This property is over-ridden if a PresentationState is applied.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also