This is a migrated thread and some comments may be shown as answers.

RadBinaryImage: ResizeMode="Fit" doesn't enlarge picture

1 Answer 175 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Sérgio
Top achievements
Rank 1
Sérgio asked on 12 Mar 2012, 12:11 PM
I don't know if it's a bug or it's designed to behave like this.

I've a RadBinaryImage defined like this:
<telerik:RadBinaryImage ID="radBinaryImageTester" runat="server" Width="600px" Height="600px" ResizeMode="Fit" AutoAdjustImageControlSize="true" />

On code-behind I populate the control with a byte array image:
byte[] foto = ....; // image bytes

radBinaryImageTester.DataValue = foto;
radBinaryImageTester.DataBind();


My goal is to fill the maximum area of the RadBinaryImage. When the foto is larger than 600x600, the control resizes it to fit in. But when the image with smaller (example: 300x200), it shows only the original size. There's a way to enlarge it to 600x400?

1 Answer, 1 is accepted

Sort by
0
Sérgio
Top achievements
Rank 1
answered on 14 Mar 2012, 11:45 AM
Resolved (my mistake).
It was a HTML problem.
Tags
BinaryImage
Asked by
Sérgio
Top achievements
Rank 1
Answers by
Sérgio
Top achievements
Rank 1
Share this question
or