←Select platform

ConversionResizeRatio Property

Summary

The conversion ratio being used when converting raster image to WriteableBitmap before viewing it

Syntax

C#
VB
C++
public double ConversionResizeRatio { get; set; } 
Public Property ConversionResizeRatio() As Double 
   Get 
   Set 
public:  
   property double ConversionResizeRatio 
   { 
      double get() 
      void set(double value) 
   } 

Property Value

A value that controls the resizing raster image befor converting it to WriteableBitmap.

The defualt value is 1.0, which means no resizing.

Remarks

-Wpf has some restriction for large WriteableBitmap so when converting raster image to the WriteableBitmap thise causes some memory issues. We added this property to resize the raster image before converting it to WriteableBitmap, the image quality will decrease but we will improve the memory consumbtion for WriteableBitmap.

-You have to use suitable ratio to balance between image quality and the memory usage for image (WriteableBitmap), being viewed.

-The default value is 1.0 which means no resizing, 0.5 means resize to the half.

-The values range should be from 0 to 1.0.

-You have to set this value before setting viewer image to take effect.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Controls Assembly