1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How can I stretch an image using RadBinaryImage?

How can I stretch an image using RadBinaryImage?

2 posts, 1 answered
  1. Bruno Michels
    Bruno Michels avatar
    125 posts
    Registered:
    16 Apr 2010
    22 Jun 2010
    Link to this post
    How can I strech an image using RadBinaryImage?

    The following is not fitting to 500x100

    <telerik:RadBinaryImage ID="MyImage" runat="server"
        ResizeMode="Fit"
        Width="500px"
        Height="100px"
    />

    The original image is 58x58
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    23 Jun 2010
    Link to this post
    Hi Bruno Michels,

    There is a property AutoAdjustImageControlSize which scales the image based on explicitly set width/height dimensions to avoid stretch or blur effect when its original dimensions do not fit. The default value is true which means that the image should be scaled, so you could try set it to false.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
2 posts, 1 answered