Support Center

the current image is not fitting to the ImageMan control

Basavsagar Jul 29, 2015 09:23AM EDT

we have a ImageMan control inside a VB .NET form , while using the scaling we specify the height and width of the current image same as that of the ImageMan control , but the image is getting cropped at right and bottom sides.

Here is the code snippet use:

Dim scale As New ScaleCommand

scale.Height = pobjImageControl.Height
scale.Width = pobjImageControl.Width
scale.ScaleOption = ScaleOptions.PreserveBlackPixels
pobjImageControl.Images.CurrentImage = scale.Process(pobjImageControl.Images.CurrentImage)

where pobjImageControl is our imageman control.
we are facing this issue for screens with resolution of 1280*1024

We also noted that Image man control's size and Image size are same after scale processing is executed.

Please suggest us to fix the issue since this is urgent production issue.

1 Data Techniques Response

Up 0 Rated Down
DTI Support  Data Techniques Employee Jul 29, 2015 09:39AM EDT


You can use the AutoScaleMode property of the viewier control set to Fit which which will automatically scale the image into the control without any code on your part.

Thanks for your interest in our products and please let us know if you have any questions.

Data Techniques Support

This question is closed to new answers.

Contact Us