![]() |
Markup Image resize |
Post Reply
|
| Author | |
JamesH
Senior Member
Joined: 01 December 2004 Status: Offline Points: 149 |
Post Options
Thanks(0)
Quote Reply
Topic: Markup Image resizePosted: 21 June 2013 at 5:05pm |
|
Could someone please explain how to get an image to resize using markup? If I use the following:
<Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'> <TextBlock Cursor="Hand" VerticalAlignment="Center" HorizontalAlignment="Center">Enter Text Here<Image Width="200" Height="100" Source='file://C:/temp/FOV test/test.JPG'/></TextBlock> </Page> It display the top left corner of the image and then crops it to 200x100 pixels. I want to display the whole image but resized to 200x100 pixels. |
|
![]() |
|
jpbro
Senior Member
Joined: 12 January 2007 Status: Offline Points: 1357 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 June 2013 at 2:17pm |
|
Try adding a Stretch='Uniform' attribute to your Image tag.
|
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
arronlee
Newbie
Joined: 04 September 2013 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 April 2014 at 12:04am |
|
Here are the code I have ever used to resize images:
Imports Yiigo.Image |
|
![]() |
|
drimage
Newbie
Joined: 05 June 2013 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 May 2014 at 11:42pm |
|
thanks for sharing these image resizing codes, these are C# codes? do you have any idea how to crop image with C# sample codes? i'd like to display image with smaller size.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |