Having a bit of trouble with the resize mode on the BinaryImage. I have specified the Width and Height in the aspx attributes and set the ResizeMode to fit, however it's just setting every image to the sizes that I specified rather than fitting them as it should be. This results in images being stretched rather than fit as if it's actually set to fill instead.
I'm using an httphandler to serve the image from a database and this is the relevant code:
Is there something that I'm missing here? Simply setting the ResizeMode to fit and setting a max height and width should be enough, right?
<
asp:Panel
runat
=
"server"
Style
=
"text-align:center;"
>
<
telerik:RadBinaryImage
runat
=
"server"
ID
=
"imgStu"
ResizeMode
=
"Fit"
Width
=
"1050"
Height
=
"700"
/>
</
asp:Panel
>
imgStu.ImageUrl =
"~/frm/ShowImage.ashx?id="
+ strImageID;