Click here to Skip to main content
15,914,165 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: O.o help hehe beginner [some what have an answer] Pin
nerra21-Oct-09 15:12
nerra21-Oct-09 15:12 
Questionupload a file using a batch file Pin
monu nair18-Oct-09 20:53
monu nair18-Oct-09 20:53 
AnswerRe: upload a file using a batch file Pin
Pete O'Hanlon18-Oct-09 23:12
mvePete O'Hanlon18-Oct-09 23:12 
AnswerRe: upload a file using a batch file Pin
Christian Graus18-Oct-09 23:53
protectorChristian Graus18-Oct-09 23:53 
GeneralRe: upload a file using a batch file Pin
Pete O'Hanlon19-Oct-09 1:05
mvePete O'Hanlon19-Oct-09 1:05 
QuestionWPF datagrid row mouse double click event Pin
Viji Raj18-Oct-09 19:32
Viji Raj18-Oct-09 19:32 
QuestionWhat is a good learning path for WPF? Pin
Brady Kelly18-Oct-09 3:31
Brady Kelly18-Oct-09 3:31 
AnswerRe: What is a good learning path for WPF? Pin
Pete O'Hanlon18-Oct-09 3:41
mvePete O'Hanlon18-Oct-09 3:41 
AnswerRe: What is a good learning path for WPF? Pin
Richard MacCutchan18-Oct-09 6:23
mveRichard MacCutchan18-Oct-09 6:23 
AnswerRe: What is a good learning path for WPF? Pin
whitnell18-Oct-09 11:05
whitnell18-Oct-09 11:05 
QuestionDataGrid displays lengths of strings instead of the actual strings Pin
Nick Alexeev17-Oct-09 17:49
professionalNick Alexeev17-Oct-09 17:49 
AnswerRe: DataGrid displays lengths of strings instead of the actual strings Pin
Mark Salsbery18-Oct-09 15:47
Mark Salsbery18-Oct-09 15:47 
GeneralRe: DataGrid displays lengths of strings instead of the actual strings [modified] Pin
Nick Alexeev18-Oct-09 18:48
professionalNick Alexeev18-Oct-09 18:48 
GeneralRe: DataGrid displays lengths of strings instead of the actual strings Pin
Mark Salsbery19-Oct-09 7:01
Mark Salsbery19-Oct-09 7:01 
QuestionWCF is showing lists as arrays? Pin
AndyASPVB16-Oct-09 9:43
AndyASPVB16-Oct-09 9:43 
AnswerRe: WCF is showing lists as arrays? Pin
Pete O'Hanlon16-Oct-09 10:12
mvePete O'Hanlon16-Oct-09 10:12 
AnswerRe: WCF is showing lists as arrays? Pin
Ravi Bhavnani16-Oct-09 10:58
professionalRavi Bhavnani16-Oct-09 10:58 
GeneralRe: WCF is showing lists as arrays? Pin
AndyASPVB16-Oct-09 11:30
AndyASPVB16-Oct-09 11:30 
GeneralRe: WCF is showing lists as arrays? Pin
Ravi Bhavnani16-Oct-09 11:44
professionalRavi Bhavnani16-Oct-09 11:44 
GeneralRe: WCF is showing lists as arrays? Pin
Mark Salsbery16-Oct-09 11:46
Mark Salsbery16-Oct-09 11:46 
GeneralRe: WCF is showing lists as arrays? Pin
AndyASPVB20-Oct-09 9:47
AndyASPVB20-Oct-09 9:47 
GeneralRe: WCF is showing lists as arrays? Pin
Mark Salsbery20-Oct-09 10:39
Mark Salsbery20-Oct-09 10:39 
GeneralRe: WCF is showing lists as arrays? Pin
Mark Salsbery16-Oct-09 11:44
Mark Salsbery16-Oct-09 11:44 
QuestionDrawing Geometries to RenderTargetBitmap is being anti-aliased, can it be turned off ? Pin
sfogarasi16-Oct-09 4:49
sfogarasi16-Oct-09 4:49 
I just had a surprise from WPF in that the drawing functions are anti-aliasing (or something similar) my drawing.
Im not doing naything fancy :

....
RenderTargetBitmap renderBitmap = new RenderTargetBitmap (
PixelWidth,
PixelHeight,
DpiX,
DpiY,
PixelFormats.Pbgra32 );

foreach ( DrawingVisual aVisual in visuals )
{
//blah blah, get dc for each visual in my list, draw geomtry to visual
...
renderBitmap.Render ( aVisual );
...
}

Image img = new Image ( );
img.Source = renderBitmap;

///blah blah encode and save stream to file


all the geometries are simple pens of single color, but the final image has been antialiased, edge colors 'smoothed'.

As this is is an imaging app where every pixel value must be specific, I cant tolerate any kind of 'smart' smoothing.

What am I doing wrong wrong ? How can I guarantee that ONLY those colours that I specify will be displayed ? There must be someway to turn off this ant-aliasing.

thanks for your help, any suggestions or alternative would be appreciated.
QuestionRe: Drawing Geometries to RenderTargetBitmap is being anti-aliased, can it be turned off ? Pin
Mark Salsbery16-Oct-09 7:50
Mark Salsbery16-Oct-09 7:50 

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.