Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - Wrong behavior of image scaling
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Wrong behavior of image scaling

 Post Reply Post Reply
Author
Message
BerntK View Drop Down
Groupie
Groupie
Avatar

Joined: 15 September 2008
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote BerntK Quote  Post ReplyReply Direct Link To This Post Topic: Wrong behavior of image scaling
    Posted: 20 November 2008 at 4:15am
Hi,

The Stretch-Attribute is not supported like:

<Image
Source="filename"
Stretch="None|Uniform|UniformFill|Fill"
/>

Default behavior should be "Unifom" whitch means:
Resizes the original content to fit the destination and preserves the native aspect ratio.

You always show the full image.

.) Is there a way to scale the image?
.) Do you plan to implement "Stretch"?

Thanks,
Bernt

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2008 at 7:40am
Hi,
 
Thanks, good note. We will add it. Send email to support, I will attach modified file.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cryimage View Drop Down
Newbie
Newbie


Joined: 06 May 2013
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote cryimage Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2013 at 11:13pm
image scale methods

public static void ScaleImageDemo()
{
string fileName = "c:/Sample.png";

REImage reImage = REFile.OpenImageFile(fileName);

ImageProcessing.ApplyResize(reImage, 0.5f);

REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());
}

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.145 seconds.