Click here to Skip to main content
15,887,214 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: ScaleTransform sometimes produces glaring artifacts Pin
fjparisIII9-Dec-09 7:20
fjparisIII9-Dec-09 7:20 
GeneralRe: ScaleTransform sometimes produces glaring artifacts Pin
fjparisIII9-Dec-09 9:20
fjparisIII9-Dec-09 9:20 
GeneralRe: ScaleTransform sometimes produces glaring artifacts Pin
Insincere Dave9-Dec-09 9:48
Insincere Dave9-Dec-09 9:48 
GeneralRe: ScaleTransform sometimes produces glaring artifacts Pin
fjparisIII9-Dec-09 10:01
fjparisIII9-Dec-09 10:01 
GeneralRe: ScaleTransform sometimes produces glaring artifacts SOLVED!!! Pin
fjparisIII9-Dec-09 11:05
fjparisIII9-Dec-09 11:05 
GeneralRe: ScaleTransform sometimes produces glaring artifacts SOLVED!!! Pin
Insincere Dave9-Dec-09 14:58
Insincere Dave9-Dec-09 14:58 
GeneralRe: ScaleTransform sometimes produces glaring artifacts SOLVED!!! Pin
fjparisIII9-Dec-09 15:16
fjparisIII9-Dec-09 15:16 
GeneralRe: ScaleTransform sometimes produces glaring artifacts SOLVED!!! Pin
Insincere Dave9-Dec-09 15:29
Insincere Dave9-Dec-09 15:29 
There is a recent update for WIC for xp that might contain the fix.
This code might still cause the artifact you could try setting the BitmapScalingMode if it does.
void ScaleUsingRTB(string inFile, string outFile, double scale)
{
	Uri uri = new Uri(inFile);
	BitmapImage bitmapImage = new BitmapImage(uri);
	var image = new Image
	            	{
	            		Source = bitmapImage, Width = bitmapImage.PixelWidth*scale, Height = bitmapImage.PixelHeight*scale
	            	};
	image.Measure(new Size(image.Width,image.Height));
	image.Arrange(new Rect(0,0,image.Width,image.Height));
	RenderTargetBitmap rtb = new RenderTargetBitmap((int) image.Width, (int) image.Height, 96, 96, PixelFormats.Pbgra32);
	rtb.Render(image);

	Save(outFile,rtb);
}

GeneralRe: ScaleTransform sometimes produces glaring artifacts SOLVED!!! Pin
fjparisIII10-Dec-09 7:35
fjparisIII10-Dec-09 7:35 
GeneralRe: ScaleTransform sometimes produces glaring artifacts SOLVED!!! Pin
Insincere Dave10-Dec-09 8:27
Insincere Dave10-Dec-09 8:27 
GeneralRe: ScaleTransform sometimes produces glaring artifacts SOLVED!!! Pin
fjparisIII10-Dec-09 12:07
fjparisIII10-Dec-09 12:07 
QuestionTreeview padding in WPF ? Pin
Mohammad Dayyan4-Dec-09 21:29
Mohammad Dayyan4-Dec-09 21:29 
AnswerRe: Treeview padding in WPF ? Pin
Mark Salsbery5-Dec-09 7:15
Mark Salsbery5-Dec-09 7:15 
GeneralRe: Treeview padding in WPF ? Pin
Mohammad Dayyan5-Dec-09 7:18
Mohammad Dayyan5-Dec-09 7:18 
QuestionMedia Player - export Pin
john john mackey4-Dec-09 9:17
john john mackey4-Dec-09 9:17 
AnswerRe: Media Player - export Pin
Mark Salsbery4-Dec-09 10:15
Mark Salsbery4-Dec-09 10:15 
AnswerRe: Media Player - export Pin
Abhinav S4-Dec-09 22:10
Abhinav S4-Dec-09 22:10 
QuestionHow to call javascript functions in silverlight. Pin
Nekkantidivya3-Dec-09 23:44
Nekkantidivya3-Dec-09 23:44 
AnswerRe: How to call javascript functions in silverlight. Pin
Abhinav S4-Dec-09 0:08
Abhinav S4-Dec-09 0:08 
AnswerRe: How to call javascript functions in silverlight. Pin
Mark Salsbery4-Dec-09 10:17
Mark Salsbery4-Dec-09 10:17 
AnswerRe: How to call javascript functions in silverlight. Pin
Kunal Chowdhury «IN»11-Dec-09 3:36
professionalKunal Chowdhury «IN»11-Dec-09 3:36 
QuestionUsing WPF C# dll in vc++ Pin
Anu_Bala3-Dec-09 18:30
Anu_Bala3-Dec-09 18:30 
AnswerRe: Using WPF C# dll in vc++ Pin
dan!sh 3-Dec-09 19:21
professional dan!sh 3-Dec-09 19:21 
QuestionAccess to a public object on a mainpage from a navigation page Pin
javi.ys2-Dec-09 12:24
javi.ys2-Dec-09 12:24 
AnswerRe: Access to a public object on a mainpage from a navigation page Pin
Mark Salsbery2-Dec-09 17:53
Mark Salsbery2-Dec-09 17:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.