Hi All
After i debug the file i found the PixelAspectratio is 0.3125.
The scaleX is calculated in the following way in the function CalculateScaleToFit() of ImageSpatialTransform.cs
if (clientAspectRatio >= imageAspectRatio)
{
scaleX = (float)destinationWidth / (float)this.SourceWidth;
scaleY = (float)destinationWidth / (float)this.SourceWidth * this.PixelAspectRatio;
}
For this particular file imageAspectRatio is 0.5 . So the ScaleX is 2.09375 and ScaleY is 0.6542969
While i zoom the function CalculateScaleXY of ImageSpatialTransform is called
In the function CalculateScaleXY
if (this.PixelAspectRatio >= 1)
{
scaleX = this.Scale;
scaleY = this.Scale * this.PixelAspectRatio;
}
else
{
scaleX = this.Scale / (this.PixelAspectRatio);//
scaleY = this.Scale;
}
For this particular file it is going in else part ScaleX become 6.7 and ScaleY becomes 2.09375.
I feel this calculation makes the big difference while i move a mouse little when i zoom.
Is there any problem with Dcm File like Pixel spacing etc..? Pleas help me regarding this issue