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

WPF

 
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 
GeneralRe: ScaleTransform sometimes produces glaring artifacts SOLVED!!! Pin
fjparisIII10-Dec-09 7:35
fjparisIII10-Dec-09 7:35 
The code you supplied does work and at least superficially (without "pixel-peeping") provides good quality. Of course the following line does not compile:

Insincere Dave wrote:
Save(outFile,rtb);


but can be replaced with code that does and the scaled image file does not contain artifacts, even on an XP system.

In Googling, I was surprised by how many people can't get RenderTargetBitmap to work, complaining of blank images. I tried some of the code posted that supposedly works and I also got blank images, and solutions posted that supposedly fixed the blank images did not work. But your code works, and I never saw anyone post that solution. Where did you get it, or did you just figure it out? The code I've seen posted is also considerably more complicated than what you posted.

In any case, I now have software rendering code that I can use for XP systems and Vista systems not up to SP2. Once again, thank you very much.

I'm not even going to try the WIC solution because I don't want to contaminate my application with COM code.
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 
GeneralRe: Access to a public object on a mainpage from a navigation page Pin
javi.ys2-Dec-09 21:37
javi.ys2-Dec-09 21:37 

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.